12 uint32_t subid=
id&(HltID::DETECTOR_MASK|HltID::ID_SUB_MASK);
40 if ( id_in_sub > ID_HLT_MAX )
return false;
43 if ( id_in_sub > ID_MDC_MAX )
return false;
46 if ( id_in_sub > ID_TOF_MAX )
return false;
49 if ( id_in_sub > ID_EMC_MAX )
return false;
52 if ( id_in_sub > ID_MUC_MAX )
return false;
67 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
72 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
73 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
78 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
79 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
84 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
85 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
90 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
91 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
96 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
97 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
102 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
103 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
108 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
109 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
114 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
119 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
124 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
129 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
134 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
140 return ((
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX);
145 return (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
176 (id_in_sub<< ID_SUB_INDEX);
180unsigned int HltID::getIntID (
const unsigned int detector,
const unsigned int id_in_sub){
185 (id_in_sub<< ID_SUB_INDEX);
static const unsigned int HLT_INDEX
static const unsigned int HLT_ID
static bool is_ncon(const Identifier &id)
static bool is_tof_inf(const Identifier &id)
static unsigned int getID_HLT_MAX()
static bool is_version(const Identifier &id)
static bool is_con_inf(const Identifier &id)
static bool is_ef_result(const Identifier &id)
Test for data type.
static bool is_eventtype(const Identifier &id)
static Identifier data_type_id(const unsigned int detector, const unsigned int id_in_sub=0)
For a single data.
static Identifier convert(const unsigned int id, const int nmdc=0, const int ntof=0, const int nemc=0, const int nmuc=0)
convert global id to sub-id(Identifier)
static unsigned int detector(const Identifier &id)
Values of different levels (failure returns 0)
static bool is_algorithm(const Identifier &id)
static bool is_muc_inf(const Identifier &id)
static bool is_criteria(const Identifier &id)
static unsigned int getIntID(const unsigned int detector, const unsigned int id_in_sub=0)
static unsigned int id_sub_max(const Identifier &id)
static bool is_emc_inf(const Identifier &id)
static bool is_number(const Identifier &id)
static bool is_mdc_inf(const Identifier &id)
static unsigned int id_sub(const Identifier &id)
static bool values_ok(const unsigned int detector, const unsigned int id_in_sub=0)
static bool is_energy(const Identifier &id)