14 const unsigned int layer,
15 const unsigned int phi_module,
24 if (
barrel_ec > BARREL_EC_MAX)
return false;
27 if (
layer > LAYER_ENDCAP_MAX )
return false;
31 if (
layer > LAYER_BARREL_MAX )
return false;
41 if(partID<3 || partID>6)
return false;
42 if(scinNum<26 || scinNum>474)
return false;
43 if(scinNum%25==0)
return false;
51 if(partID<3 || partID>6)
return false;
52 if(scinNum<25 || scinNum>474)
return false;
82 if(
is_mrpc==
true){
return false;}
85 unsigned int pos = (
id.get_value() & TofID::BARREL_EC_MASK) >> TofID::BARREL_EC_INDEX;
86 return (pos == BARREL_EC_MAX || pos == BARREL_EC_MIN) ?
false :
true;
101 if(
is_mrpc==
true){
return ((
id.get_value() & TofID::PARTID_MASK) >> TofID::PARTID_INDEX); }
102 else {
return ((
id.get_value() & TofID::BARREL_EC_MASK) >> TofID::BARREL_EC_INDEX);}
113 else {
return ((
id.get_value() & TofID::LAYER_MASK) >> TofID::LAYER_INDEX);}
124 if(
is_mrpc==
true){
return ((
id.get_value() & TofID::SCINNUM_MASK));}
125 else {
return ((
id.get_value() & TofID::PHI_MASK) >> TofID::PHI_INDEX); }
132 else {
return ((
id.get_value() & TofID::END_MASK) >> TofID::END_INDEX);}
140 return LAYER_BARREL_MAX;
142 return LAYER_ENDCAP_MAX;
149 return PHI_BARREL_MAX;
151 return PHI_ENDCAP_MAX;
182 (partID << PARTID_INDEX) |
194 (partID << PARTID_INDEX) |
220 (partID << PARTID_INDEX) |
229 return LAYER_BARREL_MAX;
234 return LAYER_ENDCAP_MAX;
239 return PHI_BARREL_MAX;
244 return PHI_ENDCAP_MAX;
248 return BARREL_EC_MAX;
253 return BARREL_EC_MIN;
static const unsigned int MRPC_ID
static const unsigned int MRPC_INDEX
bool is_mrpc(const Identifier &id) const
static const unsigned int TOF_ID
static const unsigned int TOF_INDEX
static Identifier cell_id(int barrel_ec, int layer, int phi_module, int end)
For a single crystal.
static value_type getIntID_mrpc(int partID, int scinNum)
static bool values_ok_mrpc(const unsigned int partID, const unsigned int scinNum)
static int end(const Identifier &id)
static value_type getPHI_BARREL_MAX()
static value_type getPHI_ENDCAP_MAX()
static bool values_ok_mrpc_mc(const unsigned int partID, const unsigned int scinNum)
static value_type getBARREL_EC_MIN()
static value_type getBARREL_EC_MAX()
static bool is_barrel(const Identifier &id)
Test for barrel.
static Identifier cell_id_mrpc(int partID, int scinNum)
static int phi_module(const Identifier &id)
static int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static bool values_ok(const unsigned int barrel_ec, const unsigned int layer, const unsigned int phi_module, const unsigned int)
int phi_module_max(const Identifier &id)
Max/Min values for each field (error returns -999)
static value_type getLAYER_ENDCAP_MAX()
static value_type getIntID(int barrel_ec, int layer, int phi_module, int end)
static bool is_mymrpc(const Identifier &id)
static Identifier cell_id_mrpc_mc(int partID, int scinNum)
static int layer(const Identifier &id)
int layer_max(const Identifier &id)
static value_type getLAYER_BARREL_MAX()