4#include "Identifier/BesDetectorID.h"
46 const unsigned int module,
const unsigned int strip,
47 const unsigned int end );
76 typedef std::vector<Identifier> id_vec;
77 typedef id_vec::const_iterator id_vec_it;
79 static const unsigned int BARREL_EC_INDEX = 14;
80 static const unsigned int BARREL_EC_MASK = 0x0000C000;
82 static const unsigned int LAYER_INDEX = 8;
83 static const unsigned int LAYER_MASK = 0x00000100;
85 static const unsigned int PHI_INDEX = 1;
86 static const unsigned int PHI_MASK = 0x000000FE;
88 static const unsigned int END_INDEX = 0;
89 static const unsigned int END_MASK = 0x00000001;
91 static const unsigned int LAYER_BARREL_MAX = 1;
92 static const unsigned int LAYER_ENDCAP_MAX = 0;
94 static const unsigned int PHI_BARREL_MAX = 87;
95 static const unsigned int PHI_ENDCAP_MAX = 47;
97 static const unsigned int BARREL_EC_MAX = 2;
98 static const unsigned int BARREL_EC_MIN = 0;
101 static const unsigned int ENDCAP_INDEX = 11;
102 static const unsigned int ENDCAP_MASK = 0x00000800;
104 static const unsigned int MODULE_INDEX = 5;
105 static const unsigned int MODULE_MASK = 0x000007E0;
107 static const unsigned int STRIP_INDEX = 1;
108 static const unsigned int STRIP_MASK = 0x0000001E;
110 static const unsigned int BARREL_EC_MRPC = 3;
111 static const unsigned int ENDCAP_MRPC_MAX = 1;
112 static const unsigned int MODULE_MRPC_MAX = 35;
113 static const unsigned int STRIP_MRPC_MAX = 11;
static int endcap(const Identifier &id)
static int strip(const Identifier &id)
static Identifier cell_id(int barrel_ec, int layer, int phi_module, int end)
For a single crystal.
static value_type getENDCAP_MRPC_MAX()
Identifier::size_type size_type
static bool is_scin(const Identifier &id)
static value_type getMODULE_MRPC_MAX()
static bool values_ok(const unsigned int barrel_ec, const unsigned int layer, const unsigned int phi_module, const unsigned int end)
static int end(const Identifier &id)
static value_type getPHI_BARREL_MAX()
static value_type getPHI_ENDCAP_MAX()
static value_type getSTRIP_MRPC_MAX()
static value_type getBARREL_EC_MIN()
static value_type getBARREL_EC_MAX()
static bool is_barrel(const Identifier &id)
Test for barrel.
static bool is_mrpc(const Identifier &id)
static int phi_module(const Identifier &id)
static int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0).
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 getBARREL_EC_MRPC()
static value_type getIntID(int barrel_ec, int layer, int phi_module, int end)
Identifier::value_type value_type
static int layer(const Identifier &id)
int layer_max(const Identifier &id)
static int module(const Identifier &id)
static value_type getLAYER_BARREL_MAX()