13 uint32_t subid=
id&(HltID::DETECTOR_MASK|HltID::ID_SUB_MASK);
41 if ( id_in_sub > ID_HLT_MAX )
return false;
44 if ( id_in_sub > ID_MDC_MAX )
return false;
47 if ( id_in_sub > ID_TOF_MAX )
return false;
50 if ( id_in_sub > ID_EMC_MAX )
return false;
53 if ( id_in_sub > ID_MUC_MAX )
return false;
68 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
73 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
74 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
79 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
80 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
85 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
86 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
91 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
92 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
97 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
98 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
103 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
104 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
109 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
110 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
115 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
120 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
125 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
130 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
135 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
141 return ((
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX);
146 return (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
177 (id_in_sub<< ID_SUB_INDEX);
181unsigned int HltID::getIntID (
const unsigned int detector,
const unsigned int id_in_sub){
186 (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)