BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/HltEvent/HltEvent-00-02-07/HltEvent/HltInf.h
Go to the documentation of this file.
1/***********************************************************
2 *
3 * EventFilter information
4 *
5 * ********************************************************/
6
7#ifndef EVENT_HLT_INF_H
8#define EVENT_HLT_INF_H
9
10#include "Identifier/Identifier.h"
11#include "HltEvent/DstHltInf.h"
12#include <vector>
13
14extern const CLID& CLID_HltInf;
15
16class HltInf : public DstHltInf{
17 public:
18 virtual const CLID& clID() const{ return HltInf::classID();}
19 static const CLID& classID(){return CLID_HltInf;} ;
20
21 //ctor and dector
22 HltInf(const unsigned int type, const unsigned int alg, const unsigned int cri,
23 const unsigned int ver, const float etot);
24 HltInf();
25 ~HltInf();
26
27 HltInf(const DstHltInf& aHlt);
28 HltInf& operator=(const DstHltInf& aHlt);
29
30 //modifiers
31 virtual void push_mdc(uint32_t data) { m_mdcData.push_back(data);};
32 virtual void push_tof(uint32_t data) { m_tofData.push_back(data);};
33 virtual void push_emc(uint32_t data) { m_emcData.push_back(data);};
34 virtual void push_muc(uint32_t data) { m_mucData.push_back(data);};
35 virtual void push_con(uint32_t data) { m_conData.push_back(data);};
36 virtual void push_mdc(float data) { m_mdcData.push_back(*((uint32_t*)&data));};
37 virtual void push_tof(float data) { m_tofData.push_back(*((uint32_t*)&data));};
38 virtual void push_emc(float data) { m_emcData.push_back(*((uint32_t*)&data));};
39 virtual void push_muc(float data) { m_mucData.push_back(*((uint32_t*)&data));};
40 virtual void push_con(float data) { m_conData.push_back(*((uint32_t*)&data));};
41 virtual bool setData(const Identifier& id, float data){return setData(id,(*((uint32_t*)&data)));};
42 virtual bool setData(const Identifier&, uint32_t);
43 virtual void setMdcData(const std::vector<uint32_t>& vec) {m_mdcData=vec;};
44 virtual void setTofData(const std::vector<uint32_t>& vec) {m_tofData=vec;};
45 virtual void setEmcData(const std::vector<uint32_t>& vec) {m_emcData=vec;};
46 virtual void setMucData(const std::vector<uint32_t>& vec) {m_mucData=vec;};
47 virtual void setConData(const std::vector<uint32_t>& vec) {m_conData=vec;};
48
49 //
50 std::vector<uint32_t>& getDataVec(const Identifier&) ;
51 std::vector<uint32_t>& getDataVec(const uint32_t) ;
52 virtual bool getData(const Identifier&, uint32_t*) ;
53
54 virtual void print() const;
55
56 private:
57 std::vector<uint32_t> m_mdcData;
58 std::vector<uint32_t> m_tofData;
59 std::vector<uint32_t> m_emcData;
60 std::vector<uint32_t> m_mucData;
61 std::vector<uint32_t> m_conData;
62};
63
64ostream& operator<<(ostream & os, const HltInf& aHlt);
65
66#endif//EVENT_HLT_INF_H
TTree * data
Double_t etot
const CLID & CLID_HltInf
Definition: EventModel.cxx:286
ostream & operator<<(ostream &os, const HltInf &aHlt)
Definition: HltInf.cxx:153
const CLID & CLID_HltInf
Definition: EventModel.cxx:286
virtual void setTofData(const std::vector< uint32_t > &vec)
virtual void push_muc(uint32_t data)
virtual bool setData(const Identifier &id, float data)
virtual void print() const
Definition: HltInf.cxx:118
~HltInf()
Definition: HltInf.cxx:16
virtual void setMdcData(const std::vector< uint32_t > &vec)
virtual bool getData(const Identifier &, uint32_t *)
Definition: HltInf.cxx:80
virtual void setMucData(const std::vector< uint32_t > &vec)
virtual void push_mdc(uint32_t data)
HltInf & operator=(const DstHltInf &aHlt)
Definition: HltInf.cxx:24
virtual const CLID & clID() const
std::vector< uint32_t > & getDataVec(const Identifier &)
Definition: HltInf.cxx:67
virtual void setEmcData(const std::vector< uint32_t > &vec)
virtual void push_tof(uint32_t data)
virtual void setConData(const std::vector< uint32_t > &vec)
HltInf()
Definition: HltInf.cxx:11
virtual void push_con(uint32_t data)
virtual void push_emc(uint32_t data)