19 enum DetectorRegion {outsideAcceptance = 0, FWD = 1, BRL = 2, BWD = 3, FWDGap = 11, BWDGap = 13};
22 DetectorRegion getDetectorRegion(
const double theta)
24 if (theta < 0.2164208)
return DetectorRegion::outsideAcceptance;
25 if (theta < 0.5480334)
return DetectorRegion::FWD;
26 if (theta < 0.561996)
return DetectorRegion::FWDGap;
27 if (theta < 2.2462387)
return DetectorRegion::BRL;
28 if (theta < 2.2811453)
return DetectorRegion::BWDGap;
29 if (theta < 2.7070057)
return DetectorRegion::BWD;
30 return DetectorRegion::outsideAcceptance;
Abstract base class for different kinds of events.