#include <HltInf.h>
Inheritance diagram for HltInf:
Public Member Functions | |
virtual const CLID & | clID () const |
HltInf (const unsigned int type, const unsigned int alg, const unsigned int cri, const unsigned int ver, const float etot) | |
HltInf () | |
~HltInf () | |
HltInf (const DstHltInf &aHlt) | |
HltInf & | operator= (const DstHltInf &aHlt) |
virtual void | push_mdc (uint32_t data) |
virtual void | push_tof (uint32_t data) |
virtual void | push_emc (uint32_t data) |
virtual void | push_muc (uint32_t data) |
virtual void | push_con (uint32_t data) |
virtual void | push_mdc (float data) |
virtual void | push_tof (float data) |
virtual void | push_emc (float data) |
virtual void | push_muc (float data) |
virtual void | push_con (float data) |
virtual bool | setData (const Identifier &id, float data) |
virtual bool | setData (const Identifier &, uint32_t) |
virtual void | setMdcData (const std::vector< uint32_t > &vec) |
virtual void | setTofData (const std::vector< uint32_t > &vec) |
virtual void | setEmcData (const std::vector< uint32_t > &vec) |
virtual void | setMucData (const std::vector< uint32_t > &vec) |
virtual void | setConData (const std::vector< uint32_t > &vec) |
std::vector< uint32_t > & | getDataVec (const Identifier &) |
std::vector< uint32_t > & | getDataVec (const uint32_t) |
virtual bool | getData (const Identifier &, uint32_t *) |
virtual void | print () const |
void | setEventType (const unsigned int i) |
void | setAlgProcess (const unsigned int i) |
void | setCriteriaTable (const unsigned int i) |
void | setVersion (const unsigned int i) |
void | setTotalEnergy (const float etot) |
void | setNumber (const unsigned int i) |
void | setNMDC (const unsigned int i) |
void | setNTOF (const unsigned int i) |
void | setNEMC (const unsigned int i) |
void | setNMUC (const unsigned int i) |
void | setNCON (const unsigned int i) |
uint32_t | getEventType () const |
uint32_t | getAlgProcess () const |
uint32_t | getCriteriaTable () const |
uint32_t | getVersion () const |
float | getTotalEnergy () const |
uint32_t | getNumber () const |
uint32_t | getNMDC () const |
uint32_t | getNTOF () const |
uint32_t | getNEMC () const |
uint32_t | getNMUC () const |
uint32_t | getNCON () const |
const string & | getEventName () const |
bool | isType (string &type) const |
Static Public Member Functions | |
static const CLID & | classID () |
Protected Attributes | |
uint32_t | m_eventType |
uint32_t | m_algProcess |
uint32_t | m_criTable |
uint32_t | m_version |
float | m_eTotal |
uint32_t | m_number |
uint32_t | m_ncon |
Static Protected Attributes | |
static const std::string | s_chn [32] |
static const std::string | s_err = "EventFilterError" |
Private Attributes | |
std::vector< uint32_t > | m_mdcData |
std::vector< uint32_t > | m_tofData |
std::vector< uint32_t > | m_emcData |
std::vector< uint32_t > | m_mucData |
std::vector< uint32_t > | m_conData |
Definition at line 16 of file HltInf.h.
HltInf::HltInf | ( | const unsigned int | type, | |
const unsigned int | alg, | |||
const unsigned int | cri, | |||
const unsigned int | ver, | |||
const float | etot | |||
) |
HltInf::HltInf | ( | ) |
HltInf::~HltInf | ( | ) |
HltInf::HltInf | ( | const DstHltInf & | aHlt | ) |
static const CLID& HltInf::classID | ( | ) | [inline, static] |
Reimplemented from DstHltInf.
Definition at line 19 of file HltInf.h.
References CLID_HltInf.
Referenced by clID().
00019 {return CLID_HltInf;} ;
virtual const CLID& HltInf::clID | ( | ) | const [inline, virtual] |
uint32_t DstHltInf::getAlgProcess | ( | ) | const [inline, inherited] |
Definition at line 43 of file DstHltInf.h.
References DstHltInf::m_algProcess.
Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().
00043 { return m_algProcess; }
uint32_t DstHltInf::getCriteriaTable | ( | ) | const [inline, inherited] |
Definition at line 44 of file DstHltInf.h.
References DstHltInf::m_criTable.
Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().
00044 { return m_criTable; }
bool HltInf::getData | ( | const Identifier & | , | |
uint32_t * | ||||
) | [virtual] |
Reimplemented from DstHltInf.
Definition at line 80 of file HltInf.cxx.
References HltID::id_sub(), HltID::is_con_inf(), HltID::is_emc_inf(), HltID::is_mdc_inf(), HltID::is_muc_inf(), HltID::is_tof_inf(), iter(), m_conData, m_emcData, m_mdcData, m_mucData, m_tofData, and delete_small_size::size.
Referenced by EventFilter::print().
00080 { 00081 00082 vector<uint32_t>::iterator iter; 00083 uint32_t size=0; 00084 00085 if(HltID::is_mdc_inf(id)) { 00086 iter = m_mdcData.begin(); 00087 size = m_mdcData.size(); 00088 } 00089 else if(HltID::is_tof_inf(id)) { 00090 iter = m_tofData.begin(); 00091 size = m_tofData.size(); 00092 } 00093 else if(HltID::is_emc_inf(id)) { 00094 iter = m_emcData.begin(); 00095 size = m_emcData.size(); 00096 } 00097 else if(HltID::is_muc_inf(id)) { 00098 iter = m_mucData.begin(); 00099 size = m_mucData.size(); 00100 } 00101 else if(HltID::is_con_inf(id)) { 00102 iter = m_conData.begin(); 00103 size = m_conData.size(); 00104 } 00105 else return false; 00106 00107 uint32_t sub=HltID::id_sub(id); 00108 00109 if(sub<size) { 00110 *address = *(iter+sub); 00111 return true; 00112 } 00113 else { 00114 return false; 00115 } 00116 }
vector< uint32_t > & HltInf::getDataVec | ( | const | uint32_t | ) |
Definition at line 76 of file HltInf.cxx.
References HltID::data_type_id(), and getDataVec().
00076 { 00077 return getDataVec(HltID::data_type_id(part)); 00078 }
vector< uint32_t > & HltInf::getDataVec | ( | const Identifier & | ) |
Definition at line 67 of file HltInf.cxx.
References HltID::is_con_inf(), HltID::is_emc_inf(), HltID::is_mdc_inf(), HltID::is_muc_inf(), HltID::is_tof_inf(), m_conData, m_emcData, m_mdcData, m_mucData, and m_tofData.
Referenced by HltInfCnv::DataObjectToTObject(), and getDataVec().
00067 { 00068 if(HltID::is_mdc_inf(id)) return m_mdcData; 00069 else if(HltID::is_tof_inf(id)) return m_tofData; 00070 else if(HltID::is_emc_inf(id)) return m_emcData; 00071 else if(HltID::is_muc_inf(id)) return m_mucData; 00072 else if(HltID::is_con_inf(id)) return m_conData; 00073 else return m_conData; //default: return condition number 00074 }
const string & DstHltInf::getEventName | ( | ) | const [inherited] |
Definition at line 61 of file DstHltInf.cxx.
References genRecEmupikp::i, DstHltInf::m_eventType, DstHltInf::s_chn, and DstHltInf::s_err.
Referenced by MixerAlg::eventType(), and EventFilter::execute().
00061 { 00062 for(int i=0;i<32;i++){ 00063 if(m_eventType&(1<<i)) return (s_chn[i]); 00064 } 00065 return s_err; 00066 }
uint32_t DstHltInf::getEventType | ( | ) | const [inline, inherited] |
Definition at line 42 of file DstHltInf.h.
References DstHltInf::m_eventType.
Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), EventFilter::execute(), DstHltMaker::execute(), BbEmc::execute(), and operator<<().
00042 { return m_eventType;}
uint32_t DstHltInf::getNCON | ( | ) | const [inline, inherited] |
Definition at line 52 of file DstHltInf.h.
References DstHltInf::m_ncon.
Referenced by HltInfCnv::DataObjectToTObject(), and DstHltInfCnv::DataObjectToTObject().
00052 { return m_ncon; };
uint32_t DstHltInf::getNEMC | ( | ) | const [inline, inherited] |
Definition at line 50 of file DstHltInf.h.
References DstHltInf::m_number.
00050 { return (m_number>>16)&0xFF; };
uint32_t DstHltInf::getNMDC | ( | ) | const [inline, inherited] |
Definition at line 48 of file DstHltInf.h.
References DstHltInf::m_number.
00048 { return m_number&0xFF; };
uint32_t DstHltInf::getNMUC | ( | ) | const [inline, inherited] |
Definition at line 51 of file DstHltInf.h.
References DstHltInf::m_number.
00051 { return (m_number>>24)&0xFF; };
uint32_t DstHltInf::getNTOF | ( | ) | const [inline, inherited] |
Definition at line 49 of file DstHltInf.h.
References DstHltInf::m_number.
00049 { return (m_number>>8)&0xFF; };
uint32_t DstHltInf::getNumber | ( | ) | const [inline, inherited] |
Definition at line 47 of file DstHltInf.h.
References DstHltInf::m_number.
Referenced by HltInfCnv::DataObjectToTObject(), and DstHltInfCnv::DataObjectToTObject().
00047 { return m_number; };
float DstHltInf::getTotalEnergy | ( | ) | const [inline, inherited] |
Definition at line 46 of file DstHltInf.h.
References DstHltInf::m_eTotal.
Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().
00046 { return m_eTotal; }
uint32_t DstHltInf::getVersion | ( | ) | const [inline, inherited] |
Definition at line 45 of file DstHltInf.h.
References DstHltInf::m_version.
Referenced by HltInfCnv::DataObjectToTObject(), DstHltInfCnv::DataObjectToTObject(), DstHltMaker::execute(), and operator<<().
00045 { return m_version; }
Definition at line 68 of file DstHltInf.cxx.
References genRecEmupikp::i, DstHltInf::m_eventType, and DstHltInf::s_chn.
Referenced by EventFilter::execute().
00068 { 00069 for(int i=0;i<32;i++){ 00070 if(type!=s_chn[i]) continue; 00071 if(m_eventType&(1<<i))return true; 00072 } 00073 return false; 00074 }
Reimplemented from DstHltInf.
Definition at line 24 of file HltInf.cxx.
References DstHltInf::operator=().
00024 { 00025 DstHltInf::operator=(aHlt); 00026 return *this; 00027 }
void HltInf::print | ( | ) | const [virtual] |
Reimplemented from DstHltInf.
Definition at line 118 of file HltInf.cxx.
References genRecEmupikp::i, m_conData, m_emcData, m_mdcData, m_mucData, and m_tofData.
Referenced by main().
00118 { 00119 std::cout << *this; 00120 std::cout << "MDC data:" << dec << m_mdcData.size() << std::endl; 00121 for(uint32_t i=0;i<m_mdcData.size();i++){ 00122 std::cout << " #"<<i<<"# "; 00123 std::cout << *((int*)&m_mdcData[i]) << "(" << *((float*)&m_mdcData[i]) << ")"; 00124 if(i==m_mdcData.size()-1) std::cout << std::endl; 00125 } 00126 std::cout << "TOF data:" << m_tofData.size() << std::endl; 00127 for(uint32_t i=0;i<m_tofData.size();i++){ 00128 std::cout << " #"<<i<<"# "; 00129 std::cout << *((int*)&m_tofData[i]) << "(" << *((float*)&m_tofData[i]) << ")"; 00130 if(i==m_tofData.size()-1) std::cout << std::endl; 00131 } 00132 std::cout << "EMC data:" << m_emcData.size() << std::endl; 00133 for(uint32_t i=0;i<m_emcData.size();i++){ 00134 std::cout << " #"<<i<<"# "; 00135 std::cout << *((int*)&m_emcData[i]) << "(" << *((float*)&m_emcData[i]) << ")"; 00136 if(i==m_emcData.size()-1) std::cout << std::endl; 00137 } 00138 std::cout << "MUC data:" << m_mucData.size() << std::endl; 00139 for(uint32_t i=0;i<m_mucData.size();i++){ 00140 std::cout << " #"<<i<<"# "; 00141 std::cout << *((int*)&m_mucData[i]) << "(" << *((float*)&m_mucData[i]) << ")"; 00142 if(i==m_mucData.size()-1) std::cout << std::endl; 00143 } 00144 std::cout << "CON data:" << m_conData.size() << std::endl; 00145 for(uint32_t i=0;i<m_conData.size();i++){ 00146 std::cout << " #"<<i<<"# "; 00147 std::cout << *((int*)&m_conData[i]); 00148 if(i==m_conData.size()-1) std::cout << std::endl; 00149 } 00150 return; 00151 }
virtual void HltInf::push_con | ( | float | data | ) | [inline, virtual] |
virtual void HltInf::push_con | ( | uint32_t | data | ) | [inline, virtual] |
Reimplemented from DstHltInf.
Definition at line 35 of file HltInf.h.
References m_conData.
Referenced by HltEventMaker::execute(), main(), and HltInfCnv::TObjectToDataObject().
00035 { m_conData.push_back(data);};
virtual void HltInf::push_emc | ( | float | data | ) | [inline, virtual] |
virtual void HltInf::push_emc | ( | uint32_t | data | ) | [inline, virtual] |
Reimplemented from DstHltInf.
Definition at line 33 of file HltInf.h.
References m_emcData.
Referenced by HltEventMaker::execute(), main(), and HltInfCnv::TObjectToDataObject().
00033 { m_emcData.push_back(data);};
virtual void HltInf::push_mdc | ( | float | data | ) | [inline, virtual] |
virtual void HltInf::push_mdc | ( | uint32_t | data | ) | [inline, virtual] |
Reimplemented from DstHltInf.
Definition at line 31 of file HltInf.h.
References m_mdcData.
Referenced by HltEventMaker::execute(), main(), and HltInfCnv::TObjectToDataObject().
00031 { m_mdcData.push_back(data);};
virtual void HltInf::push_muc | ( | float | data | ) | [inline, virtual] |
virtual void HltInf::push_muc | ( | uint32_t | data | ) | [inline, virtual] |
Reimplemented from DstHltInf.
Definition at line 34 of file HltInf.h.
References m_mucData.
Referenced by HltEventMaker::execute(), and HltInfCnv::TObjectToDataObject().
00034 { m_mucData.push_back(data);};
virtual void HltInf::push_tof | ( | float | data | ) | [inline, virtual] |
virtual void HltInf::push_tof | ( | uint32_t | data | ) | [inline, virtual] |
Reimplemented from DstHltInf.
Definition at line 32 of file HltInf.h.
References m_tofData.
Referenced by HltEventMaker::execute(), and HltInfCnv::TObjectToDataObject().
00032 { m_tofData.push_back(data);};
void DstHltInf::setAlgProcess | ( | const unsigned int | i | ) | [inline, inherited] |
Definition at line 31 of file DstHltInf.h.
References DstHltInf::m_algProcess.
Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00031 { m_algProcess=i; }
virtual void HltInf::setConData | ( | const std::vector< uint32_t > & | vec | ) | [inline, virtual] |
void DstHltInf::setCriteriaTable | ( | const unsigned int | i | ) | [inline, inherited] |
Definition at line 32 of file DstHltInf.h.
References DstHltInf::m_criTable.
Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00032 { m_criTable=i; }
bool HltInf::setData | ( | const Identifier & | , | |
uint32_t | ||||
) | [virtual] |
Reimplemented from DstHltInf.
Definition at line 29 of file HltInf.cxx.
References HltID::id_sub(), HltID::is_con_inf(), HltID::is_emc_inf(), HltID::is_mdc_inf(), HltID::is_muc_inf(), HltID::is_tof_inf(), iter(), m_conData, m_emcData, m_mdcData, m_mucData, m_tofData, and delete_small_size::size.
00029 { 00030 00031 vector<uint32_t>::iterator iter; 00032 uint32_t size=0; 00033 00034 if(HltID::is_mdc_inf(id)) { 00035 iter = m_mdcData.begin(); 00036 size = m_mdcData.size(); 00037 } 00038 else if(HltID::is_tof_inf(id)) { 00039 iter = m_tofData.begin(); 00040 size = m_tofData.size(); 00041 } 00042 else if(HltID::is_emc_inf(id)) { 00043 iter = m_emcData.begin(); 00044 size = m_emcData.size(); 00045 } 00046 else if(HltID::is_muc_inf(id)) { 00047 iter = m_mucData.begin(); 00048 size = m_mucData.size(); 00049 } 00050 else if(HltID::is_con_inf(id)) { 00051 iter = m_conData.begin(); 00052 size = m_conData.size(); 00053 } 00054 else return false; 00055 00056 uint32_t sub=HltID::id_sub(id); 00057 00058 if(sub<size) { 00059 (*(iter+sub))=data; 00060 return true; 00061 } 00062 else { 00063 return false; 00064 } 00065 }
virtual bool HltInf::setData | ( | const Identifier & | id, | |
float | data | |||
) | [inline, virtual] |
virtual void HltInf::setEmcData | ( | const std::vector< uint32_t > & | vec | ) | [inline, virtual] |
void DstHltInf::setEventType | ( | const unsigned int | i | ) | [inline, inherited] |
Definition at line 30 of file DstHltInf.h.
References DstHltInf::m_eventType.
Referenced by MixerAlg::eventType(), HltEventMaker::execute(), DstHltMaker::execute(), main(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00030 { m_eventType = i; }
virtual void HltInf::setMdcData | ( | const std::vector< uint32_t > & | vec | ) | [inline, virtual] |
virtual void HltInf::setMucData | ( | const std::vector< uint32_t > & | vec | ) | [inline, virtual] |
void DstHltInf::setNCON | ( | const unsigned int | i | ) | [inline, inherited] |
Definition at line 40 of file DstHltInf.h.
References DstHltInf::m_ncon.
Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
void DstHltInf::setNEMC | ( | const unsigned int | i | ) | [inline, inherited] |
void DstHltInf::setNMDC | ( | const unsigned int | i | ) | [inline, inherited] |
void DstHltInf::setNMUC | ( | const unsigned int | i | ) | [inline, inherited] |
void DstHltInf::setNTOF | ( | const unsigned int | i | ) | [inline, inherited] |
void DstHltInf::setNumber | ( | const unsigned int | i | ) | [inline, inherited] |
Definition at line 35 of file DstHltInf.h.
References DstHltInf::m_number.
Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
virtual void HltInf::setTofData | ( | const std::vector< uint32_t > & | vec | ) | [inline, virtual] |
void DstHltInf::setTotalEnergy | ( | const float | etot | ) | [inline, inherited] |
Definition at line 34 of file DstHltInf.h.
References DstHltInf::m_eTotal.
Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
00034 { m_eTotal = etot; }
void DstHltInf::setVersion | ( | const unsigned int | i | ) | [inline, inherited] |
Definition at line 33 of file DstHltInf.h.
References DstHltInf::m_version.
Referenced by HltEventMaker::execute(), DstHltMaker::execute(), HltInfCnv::TObjectToDataObject(), and DstHltInfCnv::TObjectToDataObject().
uint32_t DstHltInf::m_algProcess [protected, inherited] |
Definition at line 80 of file DstHltInf.h.
Referenced by DstHltInf::getAlgProcess(), DstHltInf::operator=(), and DstHltInf::setAlgProcess().
std::vector<uint32_t> HltInf::m_conData [private] |
Definition at line 61 of file HltInf.h.
Referenced by getData(), getDataVec(), print(), push_con(), setConData(), and setData().
uint32_t DstHltInf::m_criTable [protected, inherited] |
Definition at line 81 of file DstHltInf.h.
Referenced by DstHltInf::getCriteriaTable(), DstHltInf::operator=(), and DstHltInf::setCriteriaTable().
std::vector<uint32_t> HltInf::m_emcData [private] |
Definition at line 59 of file HltInf.h.
Referenced by getData(), getDataVec(), print(), push_emc(), setData(), and setEmcData().
float DstHltInf::m_eTotal [protected, inherited] |
Definition at line 83 of file DstHltInf.h.
Referenced by DstHltInf::getTotalEnergy(), DstHltInf::operator=(), and DstHltInf::setTotalEnergy().
uint32_t DstHltInf::m_eventType [protected, inherited] |
Definition at line 79 of file DstHltInf.h.
Referenced by DstHltInf::getEventName(), DstHltInf::getEventType(), DstHltInf::isType(), DstHltInf::operator=(), and DstHltInf::setEventType().
std::vector<uint32_t> HltInf::m_mdcData [private] |
Definition at line 57 of file HltInf.h.
Referenced by getData(), getDataVec(), print(), push_mdc(), setData(), and setMdcData().
std::vector<uint32_t> HltInf::m_mucData [private] |
Definition at line 60 of file HltInf.h.
Referenced by getData(), getDataVec(), print(), push_muc(), setData(), and setMucData().
uint32_t DstHltInf::m_ncon [protected, inherited] |
Definition at line 85 of file DstHltInf.h.
Referenced by DstHltInf::getNCON(), DstHltInf::operator=(), and DstHltInf::setNCON().
uint32_t DstHltInf::m_number [protected, inherited] |
Definition at line 84 of file DstHltInf.h.
Referenced by DstHltInf::getNEMC(), DstHltInf::getNMDC(), DstHltInf::getNMUC(), DstHltInf::getNTOF(), DstHltInf::getNumber(), DstHltInf::operator=(), DstHltInf::setNEMC(), DstHltInf::setNMDC(), DstHltInf::setNMUC(), DstHltInf::setNTOF(), and DstHltInf::setNumber().
std::vector<uint32_t> HltInf::m_tofData [private] |
Definition at line 58 of file HltInf.h.
Referenced by getData(), getDataVec(), print(), push_tof(), setData(), and setTofData().
uint32_t DstHltInf::m_version [protected, inherited] |
Definition at line 82 of file DstHltInf.h.
Referenced by DstHltInf::getVersion(), DstHltInf::operator=(), and DstHltInf::setVersion().
const std::string DstHltInf::s_chn [static, protected, inherited] |
Initial value:
{ "Junk","GJunk","Beamgas","GBeamgas", "Cosmic","GCosmic","EBhabha","GEBhabha", "BBhabha","GBBhabha","Dimuon","GDimuon", "Diphoton","GDiphoton","Hadron","GHadron", "Twophoton","Twophoton","","", "","","","", "","EMCEBhabha","","", "","Other","Error","RandomTrg"}
Definition at line 87 of file DstHltInf.h.
Referenced by DstHltInf::getEventName(), and DstHltInf::isType().
const std::string DstHltInf::s_err = "EventFilterError" [static, protected, inherited] |