Belle II Software development
utilityFunctions.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11namespace Belle2 {
16 namespace ECL {
17
18 //** Enumurate ECL detector regions */
19 enum DetectorRegion {outsideAcceptance = 0, FWD = 1, BRL = 2, BWD = 3, FWDGap = 11, BWDGap = 13};
20
22 DetectorRegion getDetectorRegion(const double theta)
23 {
24 if (theta < 0.2164208) return DetectorRegion::outsideAcceptance; // < 12.4deg
25 if (theta < 0.5480334) return DetectorRegion::FWD; // < 31.4deg
26 if (theta < 0.561996) return DetectorRegion::FWDGap; // < 32.2deg
27 if (theta < 2.2462387) return DetectorRegion::BRL; // < 128.7deg
28 if (theta < 2.2811453) return DetectorRegion::BWDGap; // < 130.7deg
29 if (theta < 2.7070057) return DetectorRegion::BWD; // < 155.1deg
30 return DetectorRegion::outsideAcceptance;
31 }
32
33 } // namespace ECL
35} // namespace Belle2
36
37
Abstract base class for different kinds of events.