#include <HltID.h>
Inheritance diagram for HltID:
Public Types | |
typedef Identifier::size_type | size_type |
typedef Identifier::value_type | value_type |
EVENTTYPE = 0 | |
ALGORITHM | |
CRITERIA | |
VERSION | |
ENERGY | |
NUMSUB | |
NUMCON | |
HLT = 0 | |
MDC | |
TOF | |
EMC | |
MUC | |
CON | |
NMDC = 0x100 | |
NTRK | |
PMAX1 | |
COST1 | |
VZ1 | |
PHI1 | |
VR1 | |
TRKHIT1 | |
TRKSHIT1 | |
PMAX2 | |
COST2 | |
VZ2 | |
PHI2 | |
VR2 | |
TRKHIT2 | |
TRKSHIT2 | |
ACOL | |
NTOF = 0x200 | |
DELTAT | |
DELTAPHI | |
NEMC = 0x300 | |
ETOT | |
EBAR | |
EEND | |
EBAL | |
EEAST | |
EWEST | |
NSEC | |
NSHW | |
EMAX1 | |
ECOST1 | |
EPHI1 | |
EMAX2 | |
ECOST2 | |
EPHI2 | |
EACOP | |
EACOL | |
EMAX12 | |
EMAX3 | |
ECOST3 | |
EPHI3 | |
NMUC = 0x400 | |
NCON = 0x500 | |
enum | Header { EVENTTYPE = 0, ALGORITHM, CRITERIA, VERSION, ENERGY, NUMSUB, NUMCON } |
enum | SubID { HLT = 0, MDC, TOF, EMC, MUC, CON } |
enum | MdcData { NMDC = 0x100, NTRK, PMAX1, COST1, VZ1, PHI1, VR1, TRKHIT1, TRKSHIT1, PMAX2, COST2, VZ2, PHI2, VR2, TRKHIT2, TRKSHIT2, ACOL } |
enum | TofData { NTOF = 0x200, DELTAT, DELTAPHI } |
enum | EmcData { NEMC = 0x300, ETOT, EBAR, EEND, EBAL, EEAST, EWEST, NSEC, NSHW, EMAX1, ECOST1, EPHI1, EMAX2, ECOST2, EPHI2, EACOP, EACOL, EMAX12, EMAX3, ECOST3, EPHI3 } |
enum | MucData { NMUC = 0x400 } |
enum | ConData { NCON = 0x500 } |
Public Member Functions | |
HltID (void) | |
constructor | |
~HltID (void) | |
destructor | |
Identifier | mdc (void) const |
Identifier | tof (void) const |
Identifier | emc (void) const |
Identifier | muc (void) const |
Identifier | hlt (void) const |
Identifier | mrpc (void) const |
bool | is_mdc (const Identifier &id) const |
bool | is_tof (const Identifier &id) const |
bool | is_emc (const Identifier &id) const |
bool | is_muc (const Identifier &id) const |
bool | is_hlt (const Identifier &id) const |
bool | is_mrpc (const Identifier &id) const |
Static Public Member Functions | |
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 Identifier | data_type_id (const unsigned int detector, const unsigned int id_in_sub=0) |
For a single data. | |
static unsigned int | getIntID (const unsigned int detector, const unsigned int id_in_sub=0) |
static bool | values_ok (const unsigned int detector, const unsigned int id_in_sub=0) |
static bool | is_ef_result (const Identifier &id) |
Test for data type. | |
static bool | is_eventtype (const Identifier &id) |
static bool | is_algorithm (const Identifier &id) |
static bool | is_criteria (const Identifier &id) |
static bool | is_version (const Identifier &id) |
static bool | is_energy (const Identifier &id) |
static bool | is_number (const Identifier &id) |
static bool | is_ncon (const Identifier &id) |
static bool | is_mdc_inf (const Identifier &id) |
static bool | is_tof_inf (const Identifier &id) |
static bool | is_emc_inf (const Identifier &id) |
static bool | is_muc_inf (const Identifier &id) |
static bool | is_con_inf (const Identifier &id) |
static bool | is_hlt_inf (const Identifier &id) |
static unsigned int | detector (const Identifier &id) |
Values of different levels (failure returns 0). | |
static unsigned int | id_sub (const Identifier &id) |
static unsigned int | id_sub_max (const Identifier &id) |
static unsigned int | getID_MDC_MAX () |
static unsigned int | getID_TOF_MAX () |
static unsigned int | getID_EMC_MAX () |
static unsigned int | getID_MUC_MAX () |
static unsigned int | getID_HLT_MAX () |
static unsigned int | getDETECTOR_MIN () |
static unsigned int | getDETECTOR_MAX () |
Protected Member Functions | |
int | mdc_field_value () const |
Provide efficient access to individual field values. | |
int | tof_field_value () const |
int | emc_field_value () const |
int | muc_field_value () const |
int | hlt_field_value () const |
int | mrpc_field_value () const |
int | get_detectorID (const Identifier &id) const |
Static Protected Attributes | |
static const unsigned int | MDC_ID = 0x10 |
static const unsigned int | MDC_INDEX = 24 |
static const unsigned int | MDC_MASK = 0xFF000000 |
static const unsigned int | TOF_ID = 0x20 |
static const unsigned int | TOF_INDEX = 24 |
static const unsigned int | TOF_MASK = 0xFF000000 |
static const unsigned int | EMC_ID = 0x30 |
static const unsigned int | EMC_INDEX = 24 |
static const unsigned int | EMC_MASK = 0xFF000000 |
static const unsigned int | MUC_ID = 0x40 |
static const unsigned int | MUC_INDEX = 24 |
static const unsigned int | MUC_MASK = 0xFF000000 |
static const unsigned int | HLT_ID = 0x50 |
static const unsigned int | HLT_INDEX = 24 |
static const unsigned int | HLT_MASK = 0xFF000000 |
static const unsigned int | MRPC_ID = 0x70 |
static const unsigned int | MRPC_INDEX = 24 |
static const unsigned int | MRPC_MASK = 0xFF000000 |
Static Private Attributes | |
static const unsigned int | DETECTOR_INDEX = 8 |
static const unsigned int | DETECTOR_MASK = 0x00000F00 |
static const unsigned int | ID_SUB_INDEX = 0 |
static const unsigned int | ID_SUB_MASK = 0x000000FF |
static const unsigned int | ID_MDC_MAX = 19 |
static const unsigned int | ID_TOF_MAX = 4 |
static const unsigned int | ID_EMC_MAX = 21 |
static const unsigned int | ID_MUC_MAX = 2 |
static const unsigned int | ID_HLT_MAX = 5 |
static const unsigned int | DETECTOR_MAX = 5 |
static const unsigned int | DETECTOR_MIN = 0 |
Definition at line 8 of file HltID.h.
enum HltID::ConData |
enum HltID::EmcData |
NEMC | |
ETOT | |
EBAR | |
EEND | |
EBAL | |
EEAST | |
EWEST | |
NSEC | |
NSHW | |
EMAX1 | |
ECOST1 | |
EPHI1 | |
EMAX2 | |
ECOST2 | |
EPHI2 | |
EACOP | |
EACOL | |
EMAX12 | |
EMAX3 | |
ECOST3 | |
EPHI3 |
Definition at line 25 of file HltID.h.
00025 { NEMC =0x300, ETOT, EBAR, EEND, EBAL, EEAST, EWEST, NSEC, NSHW, 00026 EMAX1, ECOST1, EPHI1, EMAX2, ECOST2, EPHI2, EACOP, EACOL, EMAX12, 00027 EMAX3, ECOST3, EPHI3 };
enum HltID::Header |
enum HltID::MdcData |
enum HltID::MucData |
enum HltID::SubID |
enum HltID::TofData |
Identifier HltID::convert | ( | const unsigned int | id, | |
const int | nmdc = 0 , |
|||
const int | ntof = 0 , |
|||
const int | nemc = 0 , |
|||
const int | nmuc = 0 | |||
) | [static] |
convert global id to sub-id(Identifier)
Definition at line 12 of file HltID.cxx.
References CON, data_type_id(), DETECTOR_MASK, EMC, getID_HLT_MAX(), HLT, ID_SUB_MASK, MDC, MUC, and TOF.
Referenced by RawDataHltRawCnv::createObj(), and EFtoTDS::execute().
00012 { 00013 uint32_t subid=id&(HltID::DETECTOR_MASK|HltID::ID_SUB_MASK); 00014 00015 if(subid<=getID_HLT_MAX()) return data_type_id(HLT,subid); 00016 00017 subid = subid - getID_HLT_MAX(); 00018 if(subid<=nmdc) return data_type_id(MDC,subid-1); 00019 00020 subid = subid - nmdc; 00021 if(subid<=ntof) return data_type_id(TOF,subid-1); 00022 00023 subid = subid - ntof; 00024 if(subid<=nemc) return data_type_id(EMC,subid-1); 00025 00026 subid = subid - nemc; 00027 if(subid<=nmuc) return data_type_id(MUC,subid-1); 00028 00029 subid = subid - nmuc; 00030 return data_type_id(CON,subid-1); 00031 }
Identifier HltID::data_type_id | ( | const unsigned int | detector, | |
const unsigned int | id_in_sub = 0 | |||
) | [static] |
For a single data.
Definition at line 172 of file HltID.cxx.
References DETECTOR_INDEX, BesDetectorID::HLT_ID, BesDetectorID::HLT_INDEX, ID_SUB_INDEX, and values_ok().
Referenced by convert(), HltInf::getDataVec(), and main().
00172 { 00173 assert ( values_ok(detector, id_in_sub) ); 00174 //if(!values_ok(detector, id_in_sub)) return Identifier(0); 00175 00176 unsigned int value = (HLT_ID << HLT_INDEX) | (detector << DETECTOR_INDEX)| 00177 (id_in_sub<< ID_SUB_INDEX); 00178 return Identifier(value); 00179 }
unsigned int HltID::detector | ( | const Identifier & | id | ) | [static] |
Values of different levels (failure returns 0).
Definition at line 140 of file HltID.cxx.
References DETECTOR_INDEX, and DETECTOR_MASK.
Referenced by main().
00140 { 00141 return ((id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX); 00142 }
Identifier BesDetectorID::emc | ( | void | ) | const [inherited] |
Definition at line 63 of file BesDetectorID.cxx.
References BesDetectorID::EMC_INDEX, and BesDetectorID::m_EmcId.
00063 { 00064 Identifier id = Identifier( m_EmcId << EMC_INDEX ); 00065 return id; 00066 }
int BesDetectorID::emc_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 111 of file BesDetectorID.h.
References BesDetectorID::m_EmcId.
00111 {return (m_EmcId);}
int BesDetectorID::get_detectorID | ( | const Identifier & | id | ) | const [protected, inherited] |
static unsigned int HltID::getDETECTOR_MAX | ( | ) | [inline, static] |
Definition at line 70 of file HltID.h.
References DETECTOR_MAX.
Referenced by main().
00070 {return DETECTOR_MAX;};
static unsigned int HltID::getDETECTOR_MIN | ( | ) | [inline, static] |
static unsigned int HltID::getID_EMC_MAX | ( | ) | [inline, static] |
Definition at line 65 of file HltID.h.
References ID_EMC_MAX.
Referenced by EFTest::initialize(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00065 {return ID_EMC_MAX;};
static unsigned int HltID::getID_HLT_MAX | ( | ) | [inline, static] |
Definition at line 67 of file HltID.h.
References ID_HLT_MAX.
Referenced by convert().
00067 {return ID_HLT_MAX;};
static unsigned int HltID::getID_MDC_MAX | ( | ) | [inline, static] |
Definition at line 63 of file HltID.h.
References ID_MDC_MAX.
Referenced by EFTest::initialize(), main(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00063 {return ID_MDC_MAX;};
static unsigned int HltID::getID_MUC_MAX | ( | ) | [inline, static] |
Definition at line 66 of file HltID.h.
References ID_MUC_MAX.
Referenced by EFTest::initialize(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00066 {return ID_MUC_MAX;};
static unsigned int HltID::getID_TOF_MAX | ( | ) | [inline, static] |
Definition at line 64 of file HltID.h.
References ID_TOF_MAX.
Referenced by EFTest::initialize(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00064 {return ID_TOF_MAX;};
unsigned int HltID::getIntID | ( | const unsigned int | detector, | |
const unsigned int | id_in_sub = 0 | |||
) | [static] |
Definition at line 181 of file HltID.cxx.
References DETECTOR_INDEX, BesDetectorID::HLT_ID, BesDetectorID::HLT_INDEX, ID_SUB_INDEX, and values_ok().
00181 { 00182 assert ( values_ok(detector, id_in_sub) ); 00183 //if(!values_ok(detector, id_in_sub)) return 0; 00184 00185 unsigned int value = (HLT_ID << HLT_INDEX) | (detector << DETECTOR_INDEX)| 00186 (id_in_sub<< ID_SUB_INDEX); 00187 return value; 00188 }
Identifier BesDetectorID::hlt | ( | void | ) | const [inherited] |
Definition at line 73 of file BesDetectorID.cxx.
References BesDetectorID::HLT_INDEX, and BesDetectorID::m_HltId.
00073 { 00074 Identifier id = Identifier( m_HltId << HLT_INDEX ); 00075 return id; 00076 }
int BesDetectorID::hlt_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 117 of file BesDetectorID.h.
References BesDetectorID::m_HltId.
00117 {return (m_HltId);}
unsigned int HltID::id_sub | ( | const Identifier & | id | ) | [static] |
Definition at line 145 of file HltID.cxx.
References ID_SUB_INDEX, and ID_SUB_MASK.
Referenced by HltInf::getData(), main(), and HltInf::setData().
00145 { 00146 return (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00147 }
unsigned int HltID::id_sub_max | ( | const Identifier & | id | ) | [static] |
Definition at line 150 of file HltID.cxx.
References ID_EMC_MAX, ID_HLT_MAX, ID_MDC_MAX, ID_MUC_MAX, ID_TOF_MAX, is_ef_result(), is_emc_inf(), is_mdc_inf(), is_muc_inf(), and is_tof_inf().
Referenced by main().
00150 { 00151 if (is_ef_result(id)) { 00152 return ID_HLT_MAX; 00153 } 00154 else if (is_mdc_inf(id)) { 00155 return ID_MDC_MAX; 00156 } 00157 else if (is_tof_inf(id)) { 00158 return ID_TOF_MAX; 00159 } 00160 else if (is_emc_inf(id)) { 00161 return ID_EMC_MAX; 00162 } 00163 else if (is_muc_inf(id)) { 00164 return ID_MUC_MAX; 00165 } 00166 else { 00167 return 0; 00168 } 00169 }
bool HltID::is_algorithm | ( | const Identifier & | id | ) | [static] |
Definition at line 78 of file HltID.cxx.
References ALGORITHM, DETECTOR_INDEX, DETECTOR_MASK, false, HLT, ID_SUB_INDEX, ID_SUB_MASK, and boss::pos.
Referenced by EFtoTDS::execute(), HltEventMaker::execute(), main(), and HltBuilder::pack().
00078 { 00079 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00080 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00081 return ((pos == HLT)&&(no==ALGORITHM)) ? true : false ; 00082 }
bool HltID::is_con_inf | ( | const Identifier & | id | ) | [static] |
Definition at line 134 of file HltID.cxx.
References CON, DETECTOR_INDEX, DETECTOR_MASK, false, and boss::pos.
Referenced by HltEventMaker::execute(), HltInf::getData(), HltInf::getDataVec(), and HltInf::setData().
00134 { 00135 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00136 return (pos == CON) ? true : false ; 00137 }
bool HltID::is_criteria | ( | const Identifier & | id | ) | [static] |
Definition at line 84 of file HltID.cxx.
References CRITERIA, DETECTOR_INDEX, DETECTOR_MASK, false, HLT, ID_SUB_INDEX, ID_SUB_MASK, and boss::pos.
Referenced by EFtoTDS::execute(), HltEventMaker::execute(), and HltBuilder::pack().
00084 { 00085 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00086 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00087 return ((pos == HLT)&&(no==CRITERIA)) ? true : false ; 00088 }
bool HltID::is_ef_result | ( | const Identifier & | id | ) | [static] |
Test for data type.
Definition at line 67 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, false, HLT, and boss::pos.
Referenced by id_sub_max(), is_hlt_inf(), and main().
00067 { 00068 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00069 return (pos == HLT) ? true : false ; 00070 }
bool BesDetectorID::is_emc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 30 of file BesDetectorID.cxx.
References BesDetectorID::EMC_ID, BesDetectorID::EMC_INDEX, and BesDetectorID::EMC_MASK.
00030 { 00031 Identifier::value_type value = id.get_value(); 00032 return ((value & EMC_MASK) >> EMC_INDEX) == EMC_ID ? true : false; 00033 }
bool HltID::is_emc_inf | ( | const Identifier & | id | ) | [static] |
Definition at line 124 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, EMC, false, and boss::pos.
Referenced by HltEventMaker::execute(), HltInf::getData(), HltInf::getDataVec(), id_sub_max(), and HltInf::setData().
00124 { 00125 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00126 return (pos == EMC) ? true : false ; 00127 }
bool HltID::is_energy | ( | const Identifier & | id | ) | [static] |
Definition at line 96 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, ENERGY, false, HLT, ID_SUB_INDEX, ID_SUB_MASK, and boss::pos.
Referenced by EFtoTDS::execute(), HltEventMaker::execute(), main(), and HltBuilder::pack().
00096 { 00097 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00098 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00099 return ((pos == HLT)&&(no==ENERGY)) ? true : false ; 00100 }
bool HltID::is_eventtype | ( | const Identifier & | id | ) | [static] |
Definition at line 72 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, EVENTTYPE, false, HLT, ID_SUB_INDEX, ID_SUB_MASK, and boss::pos.
Referenced by EFtoTDS::execute(), HltEventMaker::execute(), main(), and HltBuilder::pack().
00072 { 00073 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00074 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00075 return ((pos == HLT)&&(no==EVENTTYPE)) ? true : false ; 00076 }
bool BesDetectorID::is_hlt | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 40 of file BesDetectorID.cxx.
References BesDetectorID::HLT_ID, BesDetectorID::HLT_INDEX, and BesDetectorID::HLT_MASK.
00040 { 00041 Identifier::value_type value = id.get_value(); 00042 return ((value & HLT_MASK) >> HLT_INDEX) == HLT_ID ? true : false; 00043 }
static bool HltID::is_hlt_inf | ( | const Identifier & | id | ) | [inline, static] |
bool BesDetectorID::is_mdc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 20 of file BesDetectorID.cxx.
References BesDetectorID::MDC_ID, BesDetectorID::MDC_INDEX, and BesDetectorID::MDC_MASK.
00020 { 00021 Identifier::value_type value = id.get_value(); 00022 return ((value & MDC_MASK) >> MDC_INDEX) == MDC_ID ? true : false; 00023 }
bool HltID::is_mdc_inf | ( | const Identifier & | id | ) | [static] |
Definition at line 114 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, false, MDC, and boss::pos.
Referenced by HltEventMaker::execute(), HltInf::getData(), HltInf::getDataVec(), id_sub_max(), main(), and HltInf::setData().
00114 { 00115 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00116 return (pos == MDC) ? true : false ; 00117 }
bool BesDetectorID::is_mrpc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 46 of file BesDetectorID.cxx.
References BesDetectorID::MRPC_ID, BesDetectorID::MRPC_INDEX, and BesDetectorID::MRPC_MASK.
00046 { 00047 Identifier::value_type value = id.get_value(); 00048 return ((value & MRPC_MASK) >> MRPC_INDEX) == MRPC_ID ? true : false; 00049 }
bool BesDetectorID::is_muc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 35 of file BesDetectorID.cxx.
References BesDetectorID::MUC_ID, BesDetectorID::MUC_INDEX, and BesDetectorID::MUC_MASK.
00035 { 00036 Identifier::value_type value = id.get_value(); 00037 return ((value & MUC_MASK) >> MUC_INDEX) == MUC_ID ? true : false; 00038 }
bool HltID::is_muc_inf | ( | const Identifier & | id | ) | [static] |
Definition at line 129 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, false, MUC, and boss::pos.
Referenced by HltEventMaker::execute(), HltInf::getData(), HltInf::getDataVec(), id_sub_max(), and HltInf::setData().
00129 { 00130 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00131 return (pos == MUC) ? true : false ; 00132 }
bool HltID::is_ncon | ( | const Identifier & | id | ) | [static] |
Definition at line 108 of file HltID.cxx.
References CON, DETECTOR_INDEX, DETECTOR_MASK, false, ID_SUB_INDEX, ID_SUB_MASK, NUMCON, and boss::pos.
Referenced by HltEventMaker::execute().
00108 { 00109 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00110 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00111 return ((pos == CON)&&(no==NUMCON)) ? true : false ; 00112 }
bool HltID::is_number | ( | const Identifier & | id | ) | [static] |
Definition at line 102 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, false, HLT, ID_SUB_INDEX, ID_SUB_MASK, NUMSUB, and boss::pos.
Referenced by RawDataHltRawCnv::createObj(), and HltEventMaker::execute().
00102 { 00103 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00104 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00105 return ((pos == HLT)&&(no==NUMSUB)) ? true : false ; 00106 }
bool BesDetectorID::is_tof | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 25 of file BesDetectorID.cxx.
References BesDetectorID::TOF_ID, BesDetectorID::TOF_INDEX, and BesDetectorID::TOF_MASK.
00025 { 00026 Identifier::value_type value = id.get_value(); 00027 return ((value & TOF_MASK) >> TOF_INDEX) == TOF_ID ? true : false; 00028 }
bool HltID::is_tof_inf | ( | const Identifier & | id | ) | [static] |
Definition at line 119 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, false, boss::pos, and TOF.
Referenced by HltEventMaker::execute(), HltInf::getData(), HltInf::getDataVec(), id_sub_max(), and HltInf::setData().
00119 { 00120 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00121 return (pos == TOF) ? true : false ; 00122 }
bool HltID::is_version | ( | const Identifier & | id | ) | [static] |
Definition at line 90 of file HltID.cxx.
References DETECTOR_INDEX, DETECTOR_MASK, false, HLT, ID_SUB_INDEX, ID_SUB_MASK, boss::pos, and VERSION.
Referenced by EFtoTDS::execute(), HltEventMaker::execute(), and HltBuilder::pack().
00090 { 00091 unsigned int pos = (id.get_value() & HltID::DETECTOR_MASK) >> HltID::DETECTOR_INDEX; 00092 unsigned int no = (id.get_value() & HltID::ID_SUB_MASK) >> HltID::ID_SUB_INDEX; 00093 return ((pos == HLT)&&(no==VERSION)) ? true : false ; 00094 }
Identifier BesDetectorID::mdc | ( | void | ) | const [inherited] |
Definition at line 53 of file BesDetectorID.cxx.
References BesDetectorID::m_MdcId, and BesDetectorID::MDC_INDEX.
00053 { 00054 Identifier id = Identifier( m_MdcId << MDC_INDEX ); 00055 return id; 00056 }
int BesDetectorID::mdc_field_value | ( | ) | const [inline, protected, inherited] |
Provide efficient access to individual field values.
Definition at line 105 of file BesDetectorID.h.
References BesDetectorID::m_MdcId.
00105 {return (m_MdcId);}
Identifier BesDetectorID::mrpc | ( | void | ) | const [inherited] |
Definition at line 78 of file BesDetectorID.cxx.
References BesDetectorID::m_MrpcId, and BesDetectorID::MRPC_INDEX.
00078 { 00079 Identifier id = Identifier( m_MrpcId << MRPC_INDEX ); 00080 return id; 00081 }
int BesDetectorID::mrpc_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 120 of file BesDetectorID.h.
References BesDetectorID::m_MrpcId.
00120 {return (m_MrpcId);}
Identifier BesDetectorID::muc | ( | void | ) | const [inherited] |
Definition at line 68 of file BesDetectorID.cxx.
References BesDetectorID::m_MucId, and BesDetectorID::MUC_INDEX.
00068 { 00069 Identifier id = Identifier( m_MucId << MUC_INDEX ); 00070 return id; 00071 }
int BesDetectorID::muc_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 114 of file BesDetectorID.h.
References BesDetectorID::m_MucId.
00114 {return (m_MucId);}
Identifier BesDetectorID::tof | ( | void | ) | const [inherited] |
Definition at line 58 of file BesDetectorID.cxx.
References BesDetectorID::m_TofId, and BesDetectorID::TOF_INDEX.
00058 { 00059 Identifier id = Identifier( m_TofId << TOF_INDEX ); 00060 return id; 00061 }
int BesDetectorID::tof_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 108 of file BesDetectorID.h.
References BesDetectorID::m_TofId.
00108 {return (m_TofId);}
bool HltID::values_ok | ( | const unsigned int | detector, | |
const unsigned int | id_in_sub = 0 | |||
) | [static] |
Definition at line 34 of file HltID.cxx.
References CON, EMC, HLT, ID_EMC_MAX, ID_HLT_MAX, ID_MDC_MAX, ID_MUC_MAX, ID_TOF_MAX, MDC, MUC, and TOF.
Referenced by data_type_id(), and getIntID().
00034 { 00035 // Check values 00036 // unsigned int >= 0, this is definitely true. 00037 // Omit the compare with MIN(0) to avoid warnings in compile. 00038 switch(detector) 00039 { 00040 case HLT: 00041 if ( id_in_sub > ID_HLT_MAX ) return false; 00042 break; 00043 case MDC: 00044 if ( id_in_sub > ID_MDC_MAX ) return false; 00045 break; 00046 case TOF: 00047 if ( id_in_sub > ID_TOF_MAX ) return false; 00048 break; 00049 case EMC: 00050 if ( id_in_sub > ID_EMC_MAX ) return false; 00051 break; 00052 case MUC: 00053 if ( id_in_sub > ID_MUC_MAX ) return false; 00054 break; 00055 case CON: 00056 return true; 00057 break; 00058 default: 00059 return false; 00060 break; 00061 } 00062 00063 return true; 00064 }
const unsigned int HltID::DETECTOR_INDEX = 8 [static, private] |
Definition at line 79 of file HltID.h.
Referenced by data_type_id(), detector(), getIntID(), is_algorithm(), is_con_inf(), is_criteria(), is_ef_result(), is_emc_inf(), is_energy(), is_eventtype(), is_mdc_inf(), is_muc_inf(), is_ncon(), is_number(), is_tof_inf(), and is_version().
const unsigned int HltID::DETECTOR_MASK = 0x00000F00 [static, private] |
Definition at line 80 of file HltID.h.
Referenced by convert(), detector(), is_algorithm(), is_con_inf(), is_criteria(), is_ef_result(), is_emc_inf(), is_energy(), is_eventtype(), is_mdc_inf(), is_muc_inf(), is_ncon(), is_number(), is_tof_inf(), and is_version().
const unsigned int HltID::DETECTOR_MAX = 5 [static, private] |
const unsigned int HltID::DETECTOR_MIN = 0 [static, private] |
const unsigned int BesDetectorID::EMC_ID = 0x30 [static, protected, inherited] |
Definition at line 74 of file BesDetectorID.h.
Referenced by EmcID::crystal_id(), EmcID::getIntID(), and BesDetectorID::is_emc().
const unsigned int BesDetectorID::EMC_INDEX = 24 [static, protected, inherited] |
Definition at line 75 of file BesDetectorID.h.
Referenced by EmcID::crystal_id(), BesDetectorID::emc(), EmcID::getIntID(), and BesDetectorID::is_emc().
const unsigned int BesDetectorID::EMC_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int BesDetectorID::HLT_ID = 0x50 [static, protected, inherited] |
Definition at line 82 of file BesDetectorID.h.
Referenced by data_type_id(), getIntID(), and BesDetectorID::is_hlt().
const unsigned int BesDetectorID::HLT_INDEX = 24 [static, protected, inherited] |
Definition at line 83 of file BesDetectorID.h.
Referenced by data_type_id(), getIntID(), BesDetectorID::hlt(), and BesDetectorID::is_hlt().
const unsigned int BesDetectorID::HLT_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int HltID::ID_EMC_MAX = 21 [static, private] |
Definition at line 86 of file HltID.h.
Referenced by getID_EMC_MAX(), id_sub_max(), and values_ok().
const unsigned int HltID::ID_HLT_MAX = 5 [static, private] |
Definition at line 88 of file HltID.h.
Referenced by getID_HLT_MAX(), id_sub_max(), and values_ok().
const unsigned int HltID::ID_MDC_MAX = 19 [static, private] |
Definition at line 84 of file HltID.h.
Referenced by getID_MDC_MAX(), id_sub_max(), and values_ok().
const unsigned int HltID::ID_MUC_MAX = 2 [static, private] |
Definition at line 87 of file HltID.h.
Referenced by getID_MUC_MAX(), id_sub_max(), and values_ok().
const unsigned int HltID::ID_SUB_INDEX = 0 [static, private] |
Definition at line 82 of file HltID.h.
Referenced by data_type_id(), getIntID(), id_sub(), is_algorithm(), is_criteria(), is_energy(), is_eventtype(), is_ncon(), is_number(), and is_version().
const unsigned int HltID::ID_SUB_MASK = 0x000000FF [static, private] |
Definition at line 83 of file HltID.h.
Referenced by convert(), id_sub(), is_algorithm(), is_criteria(), is_energy(), is_eventtype(), is_ncon(), is_number(), and is_version().
const unsigned int HltID::ID_TOF_MAX = 4 [static, private] |
Definition at line 85 of file HltID.h.
Referenced by getID_TOF_MAX(), id_sub_max(), and values_ok().
const unsigned int BesDetectorID::MDC_ID = 0x10 [static, protected, inherited] |
Definition at line 66 of file BesDetectorID.h.
Referenced by MdcID::getIntID(), BesDetectorID::is_mdc(), and MdcID::wire_id().
const unsigned int BesDetectorID::MDC_INDEX = 24 [static, protected, inherited] |
Definition at line 67 of file BesDetectorID.h.
Referenced by MdcID::getIntID(), BesDetectorID::is_mdc(), BesDetectorID::mdc(), and MdcID::wire_id().
const unsigned int BesDetectorID::MDC_MASK = 0xFF000000 [static, protected, inherited] |
Definition at line 68 of file BesDetectorID.h.
Referenced by MdcID::getIntID(), and BesDetectorID::is_mdc().
const unsigned int BesDetectorID::MRPC_ID = 0x70 [static, protected, inherited] |
const unsigned int BesDetectorID::MRPC_INDEX = 24 [static, protected, inherited] |
Definition at line 87 of file BesDetectorID.h.
Referenced by BesDetectorID::is_mrpc(), and BesDetectorID::mrpc().
const unsigned int BesDetectorID::MRPC_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int BesDetectorID::MUC_ID = 0x40 [static, protected, inherited] |
Definition at line 78 of file BesDetectorID.h.
Referenced by MucID::channel_id(), MucID::getIntID(), and BesDetectorID::is_muc().
const unsigned int BesDetectorID::MUC_INDEX = 24 [static, protected, inherited] |
Definition at line 79 of file BesDetectorID.h.
Referenced by MucID::channel_id(), MucID::getIntID(), BesDetectorID::is_muc(), and BesDetectorID::muc().
const unsigned int BesDetectorID::MUC_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int BesDetectorID::TOF_ID = 0x20 [static, protected, inherited] |
Definition at line 70 of file BesDetectorID.h.
Referenced by TofID::cell_id(), TofID::getIntID(), and BesDetectorID::is_tof().
const unsigned int BesDetectorID::TOF_INDEX = 24 [static, protected, inherited] |
Definition at line 71 of file BesDetectorID.h.
Referenced by TofID::cell_id(), TofID::getIntID(), BesDetectorID::is_tof(), and BesDetectorID::tof().
const unsigned int BesDetectorID::TOF_MASK = 0xFF000000 [static, protected, inherited] |