Belle II Software
release-05-01-25
utilityFunctions.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2018 - Belle II Collaboration *
4
* *
5
* Calculation of shower positions using lists of digits and weights. *
6
* *
7
* Author: The Belle II Collaboration *
8
* Contributors: Alon Hershenhorn (hershen@physics.ubc.ca) *
9
* *
10
* This software is provided "as is" without any warranty. *
11
**************************************************************************/
12
13
#pragma once
14
15
namespace
Belle2
{
20
namespace
ECL {
21
22
//** Enumurate ECL detector regions */
23
enum
DetectorRegion {outsideAcceptance = 0, FWD = 1, BRL = 2, BWD = 3, FWDGap = 11, BWDGap = 13};
24
26
DetectorRegion getDetectorRegion(
const
double
theta)
27
{
28
if
(theta < 0.2164208)
return
DetectorRegion::outsideAcceptance;
// < 12.4deg
29
if
(theta < 0.5480334)
return
DetectorRegion::FWD;
// < 31.4deg
30
if
(theta < 0.561996)
return
DetectorRegion::FWDGap;
// < 32.2deg
31
if
(theta < 2.2462387)
return
DetectorRegion::BRL;
// < 128.7deg
32
if
(theta < 2.2811453)
return
DetectorRegion::BWDGap;
// < 130.7deg
33
if
(theta < 2.7070057)
return
DetectorRegion::BWD;
// < 155.1deg
34
return
DetectorRegion::outsideAcceptance;
35
}
36
37
}
// namespace ECL
39
}
// namespace Belle2
40
41
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
ecl
utility
include
utilityFunctions.h
Generated on Fri Nov 5 2021 03:51:43 for Belle II Software by
1.8.17