1#include "Identifier/HltID.h"
13 uint32_t subid=
id&(HltID::DETECTOR_MASK|HltID::ID_SUB_MASK);
32 subid = subid - ncgem;
44 if ( id_in_sub > ID_HLT_MAX )
return false;
47 if ( id_in_sub > ID_MDC_MAX )
return false;
50 if ( id_in_sub > ID_CGEM_MAX )
return false;
53 if ( id_in_sub > ID_TOF_MAX )
return false;
56 if ( id_in_sub > ID_EMC_MAX )
return false;
59 if ( id_in_sub > ID_MUC_MAX )
return false;
74 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_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;
116 unsigned int no = (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
121 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
126 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
131 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
136 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
141 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
146 unsigned int pos = (
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX;
152 return ((
id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX);
157 return (
id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX;
191 (id_in_sub<< ID_SUB_INDEX);
195unsigned int HltID::getIntID (
const unsigned int detector,
const unsigned int id_in_sub){
200 (id_in_sub<< ID_SUB_INDEX);
static const unsigned int HLT_ID
static const unsigned int HLT_INDEX
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_cgem_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 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 Identifier convert(const unsigned int id, const int nmdc=0, const int ncgem=0, const int ntof=0, const int nemc=0, const int nmuc=0)
convert global id to sub-id(Identifier)
static bool is_energy(const Identifier &id)