6 const unsigned int cri,
const unsigned int ver,
const float etot):
8 m_mdcData(0),m_cgemData(0),m_tofData(0),m_emcData(0),m_mucData(0),m_conData(0){
13 m_mdcData(0),m_cgemData(0),m_tofData(0),m_emcData(0),m_mucData(0),m_conData(0){
21 m_mdcData(0),m_cgemData(0),m_tofData(0),m_emcData(0),m_mucData(0),m_conData(0){
31 vector<uint32_t>::iterator
iter;
35 iter = m_mdcData.begin();
36 size = m_mdcData.size();
39 iter = m_cgemData.begin();
40 size = m_cgemData.size();
43 iter = m_tofData.begin();
44 size = m_tofData.size();
47 iter = m_emcData.begin();
48 size = m_emcData.size();
51 iter = m_mucData.begin();
52 size = m_mucData.size();
55 iter = m_conData.begin();
56 size = m_conData.size();
78 else return m_conData;
87 vector<uint32_t>::iterator
iter;
91 iter = m_mdcData.begin();
92 size = m_mdcData.size();
95 iter = m_cgemData.begin();
96 size = m_cgemData.size();
99 iter = m_tofData.begin();
100 size = m_tofData.size();
103 iter = m_emcData.begin();
104 size = m_emcData.size();
107 iter = m_mucData.begin();
108 size = m_mucData.size();
111 iter = m_conData.begin();
112 size = m_conData.size();
119 *address = *(
iter+sub);
129 std::cout <<
"MDC data:" << dec << m_mdcData.size() << std::endl;
130 for(uint32_t i=0;i<m_mdcData.size();i++){
131 std::cout <<
" #"<<i<<
"# ";
132 std::cout << *((
int*)&m_mdcData[i]) <<
"(" << *((
float*)&m_mdcData[i]) <<
")";
133 if(i==m_mdcData.size()-1) std::cout << std::endl;
135 std::cout <<
"CGEM data:" << dec << m_cgemData.size() << std::endl;
136 for(uint32_t i=0;i<m_cgemData.size();i++){
137 std::cout <<
" #"<<i<<
"# ";
138 std::cout << *((
int*)&m_cgemData[i]) <<
"(" << *((
float*)&m_cgemData[i]) <<
")";
139 if(i==m_cgemData.size()-1) std::cout << std::endl;
141 std::cout <<
"TOF data:" << m_tofData.size() << std::endl;
142 for(uint32_t i=0;i<m_tofData.size();i++){
143 std::cout <<
" #"<<i<<
"# ";
144 std::cout << *((
int*)&m_tofData[i]) <<
"(" << *((
float*)&m_tofData[i]) <<
")";
145 if(i==m_tofData.size()-1) std::cout << std::endl;
147 std::cout <<
"EMC data:" << m_emcData.size() << std::endl;
148 for(uint32_t i=0;i<m_emcData.size();i++){
149 std::cout <<
" #"<<i<<
"# ";
150 std::cout << *((
int*)&m_emcData[i]) <<
"(" << *((
float*)&m_emcData[i]) <<
")";
151 if(i==m_emcData.size()-1) std::cout << std::endl;
153 std::cout <<
"MUC data:" << m_mucData.size() << std::endl;
154 for(uint32_t i=0;i<m_mucData.size();i++){
155 std::cout <<
" #"<<i<<
"# ";
156 std::cout << *((
int*)&m_mucData[i]) <<
"(" << *((
float*)&m_mucData[i]) <<
")";
157 if(i==m_mucData.size()-1) std::cout << std::endl;
159 std::cout <<
"CON data:" << m_conData.size() << std::endl;
160 for(uint32_t i=0;i<m_conData.size();i++){
161 std::cout <<
" #"<<i<<
"# ";
162 std::cout << *((
int*)&m_conData[i]);
163 if(i==m_conData.size()-1) std::cout << std::endl;
169 os<<
"-----HltInf-----:"<<endl;
ostream & operator<<(ostream &os, const HltInf &aHlt)
float getTotalEnergy() const
uint32_t getCriteriaTable() const
uint32_t getVersion() const
uint32_t getEventType() const
uint32_t getAlgProcess() const
DstHltInf & operator=(const DstHltInf &)
static bool is_tof_inf(const Identifier &id)
static bool is_con_inf(const Identifier &id)
static bool is_cgem_inf(const Identifier &id)
static Identifier data_type_id(const unsigned int detector, const unsigned int id_in_sub=0)
For a single data.
static bool is_muc_inf(const Identifier &id)
static bool is_emc_inf(const Identifier &id)
static bool is_mdc_inf(const Identifier &id)
static unsigned int id_sub(const Identifier &id)
virtual bool setData(const Identifier &id, float data)
virtual void print() const
virtual bool getData(const Identifier &, uint32_t *)
HltInf & operator=(const DstHltInf &aHlt)
std::vector< uint32_t > & getDataVec(const Identifier &)