4#include "Identifier/BesDetectorID.h"
64 static const unsigned int BARREL_EC_INDEX = 16;
65 static const unsigned int BARREL_EC_MASK = 0x000F0000;
67 static const unsigned int THETA_INDEX = 8;
68 static const unsigned int THETA_MASK = 0x00003F00;
70 static const unsigned int PHI_INDEX = 0;
71 static const unsigned int PHI_MASK = 0x000000FF;
73 static const unsigned int THETA_BARREL_MAX = 43;
74 static const unsigned int THETA_BARREL_MIN = 0;
75 static const unsigned int THETA_ENDCAP_MAX = 5;
76 static const unsigned int THETA_ENDCAP_MIN = 0;
78 static const unsigned int PHI_BARREL_MAX = 119;
79 static const unsigned int PHI_BARREL_MIN = 0;
80 static const unsigned int PHI_ENDCAP_MAX1 = 63;
81 static const unsigned int PHI_ENDCAP_MAX2 = 79;
82 static const unsigned int PHI_ENDCAP_MAX3 = 95;
83 static const unsigned int PHI_ENDCAP_MIN = 0;
85 static const unsigned int BARREL_EC_MAX = 2;
86 static const unsigned int BARREL_EC_MIN = 0;
87 static const unsigned int ENDCAP_EAST = 0;
88 static const unsigned int BARREL = 1;
89 static const unsigned int ENDCAP_WEST = 2;
Identifier::size_type size_type
static unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static unsigned int getIntID(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
static unsigned int getPHI_BARREL_MIN()
Identifier::value_type value_type
static unsigned int getBARREL_EC_MIN()
static unsigned int getTHETA_BARREL_MIN()
static unsigned int getPHI_ENDCAP_MIN()
static unsigned int getPHI_ENDCAP_MAX(const unsigned int theta)
static Identifier crystal_id(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
For a single crystal.
static unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static bool is_barrel(const Identifier &id)
Test for barrel.
static unsigned int getPHI_BARREL_MAX()
static unsigned int theta_module(const Identifier &id)
unsigned int theta_module_max(const Identifier &id)
Max/Min values for each field (error returns -999)
unsigned int phi_module_max(const Identifier &id)
static unsigned int phi_module(const Identifier &id)
static unsigned int getTHETA_BARREL_MAX()
static unsigned int getBARREL_EC_MAX()
static unsigned int getENDCAP_EAST()
static unsigned int theta_module(const Identifier &id)
static unsigned int getBARREL()
static unsigned int getTHETA_ENDCAP_MAX()
static bool values_ok(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
static unsigned int getTHETA_ENDCAP_MIN()
static unsigned int getENDCAP_WEST()
static unsigned int phi_module(const Identifier &id)