Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ enum KindOfCorrType {
kFT0AFT0C
};

static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c"};
static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c/"};
static constexpr std::string_view kEvntType[] = {"SE/", "ME/"};

auto static constexpr kMinFt0cCell = 96;
AxisSpec axisEvent{10, 0.5, 9.5, "#Event", "EventAxis"};

struct LongrangeCorrelation {
Expand Down Expand Up @@ -274,6 +274,8 @@ struct LongrangeCorrelation {
auto x = chPos.X() + (*offsetFT0)[i].getX();
auto y = chPos.Y() + (*offsetFT0)[i].getY();
auto z = chPos.Z() + (*offsetFT0)[i].getZ();
if (chno >= kMinFt0cCell)
z = -z;
auto r = std::sqrt(x * x + y * y);
auto theta = std::atan2(r, z);
return -std::log(std::tan(0.5 * theta));
Expand Down
Loading