43 const unsigned int layer,
63 typedef std::vector<Identifier> id_vec;
64 typedef id_vec::const_iterator id_vec_it;
66 static const unsigned int BARREL_EC_INDEX = 16;
67 static const unsigned int BARREL_EC_MASK = 0x000F0000;
69 static const unsigned int SEGMENT_INDEX = 12;
70 static const unsigned int SEGMENT_MASK = 0x0000F000;
72 static const unsigned int LAYER_INDEX = 8;
73 static const unsigned int LAYER_MASK = 0x00000F00;
75 static const unsigned int CHANNEL_INDEX = 0;
76 static const unsigned int CHANNEL_MASK = 0x000000FF;
78 static const unsigned int LAYER_BARREL_MAX = 8;
79 static const unsigned int LAYER_ENDCAP_MAX = 7;
81 static const unsigned int SEGMENT_BARREL_MAX = 7;
82 static const unsigned int SEGMENT_ENDCAP_MAX = 3;
84 static const unsigned int CHANNEL_BARREL_MAX = 95;
85 static const unsigned int CHANNEL_ENDCAP_MAX = 63;
87 static const unsigned int BARREL_EC_MAX = 2;
88 static const unsigned int BARREL_EC_MIN = 0;
static value_type getLAYER_BARREL_MAX()
static value_type getSEGMENT_ENDCAP_MAX()
static int barrel_ec(const Identifier &id)
Values of different levels.
Identifier::size_type size_type
int segment_max(const Identifier &id)
Max/Min values for each field.
int channel_max(const Identifier &id)
Identifier::value_type value_type
int layer_max(const Identifier &id)
static value_type getCHANNEL_ENDCAP_MAX()
static value_type getLAYER_ENDCAP_MAX()
static value_type getBARREL_EC_MAX()
static value_type getSEGMENT_BARREL_MAX()
static int segment(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 value_type getIntID(int barrel_ec, int segment, int layer, int channel)
static Identifier channel_id(int barrel_ec, int segment, int layer, int channel)
For a single crystal.
static bool is_barrel(const Identifier &id)
Test for barrel.
static int channel(const Identifier &id)
static value_type getBARREL_EC_MIN()
static int layer(const Identifier &id)
static value_type getCHANNEL_BARREL_MAX()