51 const unsigned int layer,
80 typedef std::vector<Identifier> id_vec;
81 typedef id_vec::const_iterator id_vec_it;
83 static const unsigned int BARREL_EC_INDEX = 16;
84 static const unsigned int BARREL_EC_MASK = 0x000F0000;
86 static const unsigned int SEGMENT_INDEX = 12;
87 static const unsigned int SEGMENT_MASK = 0x0000F000;
89 static const unsigned int LAYER_INDEX = 8;
90 static const unsigned int LAYER_MASK = 0x00000F00;
92 static const unsigned int CHANNEL_INDEX = 0;
93 static const unsigned int CHANNEL_MASK = 0x000000FF;
95 static const unsigned int BARREL_EC_NUM = 3;
97 static const unsigned int LAYER_BARREL_NUM = 9;
98 static const unsigned int LAYER_ENDCAP_NUM = 8;
100 static const unsigned int SEGMENT_BARREL_NUM = 8;
101 static const unsigned int SEGMENT_ENDCAP_NUM = 4;
103 static const unsigned int CHANNEL_BARREL_NUM_MAX = 112;
104 static const unsigned int CHANNEL_ENDCAP_NUM_MAX = 64;
106 static const unsigned int CHANNEL_BARREL_LAYER_NUM[LAYER_BARREL_NUM];
108 static const unsigned int BARREL_EC_MAX = 2;
109 static const unsigned int BARREL_EC_MIN = 0;
static int barrel_ec(const Identifier &id)
Values of different levels.
static value_type getStripMax()
static value_type getIntID(int barrel_ec, int segment, int layer, int channel)
static int layer(const Identifier &id)
static bool values_ok(const unsigned int barrel_ec, const unsigned int segment, const unsigned int layer, const unsigned int channel)
static int channel(const Identifier &id)
static value_type getSEGMENT_BARREL_MAX()
int segment_max(const Identifier &id)
Max/Min values for each field.
static int part(const Identifier &id)
static value_type getGapMax()
static int segment(const Identifier &id)
static value_type getBARREL_EC_MAX()
static value_type getPartNum()
static Identifier channel_id(int barrel_ec, int segment, int layer, int channel)
For a single crystal.
Identifier::value_type value_type
Identifier::size_type size_type
int layer_max(const Identifier &id)
static value_type getSegMax()
static value_type getSEGMENT_ENDCAP_MAX()
static value_type getLAYER_BARREL_MAX()
static bool is_barrel(const Identifier &id)
Test for barrel.
static int gap(const Identifier &id)
static int seg(const Identifier &id)
static value_type getLAYER_ENDCAP_MAX()
static value_type getBARREL_EC_MIN()
static value_type getSegNum(int part)
static value_type getStripNum(int part, int seg, int gap)
static value_type getCHANNEL_BARREL_MAX()
static int strip(const Identifier &id)
static value_type getGapNum(int part)
int channel_max(const Identifier &id)
static value_type getCHANNEL_ENDCAP_MAX()