12 const unsigned int theta_module,
13 const unsigned int phi_module
18 if (
barrel_ec > BARREL_EC_MAX )
return false;
21 if (
phi_module > PHI_BARREL_MAX )
return false;
33 unsigned int pos = (
id.get_value() & EmcID::BARREL_EC_MASK) >> EmcID::BARREL_EC_INDEX;
39 return ((
id.get_value() & EmcID::BARREL_EC_MASK) >> EmcID::BARREL_EC_INDEX);
44 return (
id.get_value() & EmcID::THETA_MASK) >> EmcID::THETA_INDEX;
49 return (
id.get_value() & EmcID::PHI_MASK) >> EmcID::PHI_INDEX;
55 return THETA_BARREL_MAX;
57 return THETA_ENDCAP_MAX;
64 return PHI_BARREL_MAX;
72 const unsigned int theta_module,
73 const unsigned int phi_module
82 const unsigned int theta_module,
83 const unsigned int phi_module
93 return THETA_BARREL_MAX;
97 return THETA_BARREL_MIN;
101 return THETA_ENDCAP_MAX;
105 return THETA_ENDCAP_MIN;
109 return PHI_BARREL_MAX;
113 return PHI_BARREL_MIN;
117 if(theta==0 || theta==1) {
118 return PHI_ENDCAP_MAX1;
120 if(theta==2 || theta==3) {
121 return PHI_ENDCAP_MAX2;
123 if(theta==4 || theta==5) {
124 return PHI_ENDCAP_MAX3;
130 return PHI_ENDCAP_MIN;
134 return BARREL_EC_MAX;
138 return BARREL_EC_MIN;
static const unsigned int EMC_INDEX
static const unsigned int EMC_ID
static unsigned int getPHI_BARREL_MAX()
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 getENDCAP_WEST()
static bool values_ok(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
static unsigned int getBARREL_EC_MIN()
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 getENDCAP_EAST()
static unsigned int getBARREL_EC_MAX()
static unsigned int getTHETA_ENDCAP_MIN()
static unsigned int getTHETA_ENDCAP_MAX()
static unsigned int getBARREL()
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 getTHETA_BARREL_MIN()
static unsigned int getIntID(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
static unsigned int getTHETA_BARREL_MAX()
static unsigned int theta_module(const Identifier &id)
static unsigned int getPHI_ENDCAP_MAX(const unsigned int theta)
static unsigned int getPHI_ENDCAP_MIN()
static unsigned int getPHI_BARREL_MIN()
static unsigned int phi_module(const Identifier &id)