CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
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
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_cgem(uint32_t data) { m_cgemData.push_back(data);};
33 virtual void push_tof(uint32_t data) { m_tofData.push_back(data);};
34 virtual void push_emc(uint32_t data) { m_emcData.push_back(data);};
35 virtual void push_muc(uint32_t data) { m_mucData.push_back(data);};
36 virtual void push_con(uint32_t data) { m_conData.push_back(data);};
37 virtual void push_mdc(float data) { m_mdcData.push_back(*((uint32_t*)&data));};
38 virtual void push_cgem(float data) { m_cgemData.push_back(*((uint32_t*)&data));};
39 virtual void push_tof(float data) { m_tofData.push_back(*((uint32_t*)&data));};
40 virtual void push_emc(float data) { m_emcData.push_back(*((uint32_t*)&data));};
41 virtual void push_muc(float data) { m_mucData.push_back(*((uint32_t*)&data));};
42 virtual void push_con(float data) { m_conData.push_back(*((uint32_t*)&data));};
43 virtual bool setData(const Identifier& id, float data){return setData(id,(*((uint32_t*)&data)));};
44 virtual bool setData(const Identifier&, uint32_t);
45 virtual void setMdcData(const std::vector<uint32_t>& vec) {m_mdcData=vec;};
46 virtual void setCgemData(const std::vector<uint32_t>& vec) {m_cgemData=vec;};
47 virtual void setTofData(const std::vector<uint32_t>& vec) {m_tofData=vec;};
48 virtual void setEmcData(const std::vector<uint32_t>& vec) {m_emcData=vec;};
49 virtual void setMucData(const std::vector<uint32_t>& vec) {m_mucData=vec;};
50 virtual void setConData(const std::vector<uint32_t>& vec) {m_conData=vec;};
51
52 //
53 std::vector<uint32_t>& getDataVec(const Identifier&) ;
54 std::vector<uint32_t>& getDataVec(const uint32_t) ;
55 virtual bool getData(const Identifier&, uint32_t*) ;
56
57 virtual void print() const;
58
59 private:
60 std::vector<uint32_t> m_mdcData;
61 std::vector<uint32_t> m_cgemData;
62 std::vector<uint32_t> m_tofData;
63 std::vector<uint32_t> m_emcData;
64 std::vector<uint32_t> m_mucData;
65 std::vector<uint32_t> m_conData;
66};
67
68ostream& operator<<(ostream & os, const HltInf& aHlt);
69
70#endif//EVENT_HLT_INF_H
TTree * data
Double_t etot
const CLID & CLID_HltInf
Definition: EventModel.cxx:330
ostream & operator<<(ostream &os, const HltInf &aHlt)
Definition: HltInf.cxx:168
Definition: HltInf.h:16
virtual void setTofData(const std::vector< uint32_t > &vec)
Definition: HltInf.h:47
virtual void push_muc(uint32_t data)
Definition: HltInf.h:35
virtual bool setData(const Identifier &id, float data)
Definition: HltInf.h:43
virtual void push_tof(float data)
Definition: HltInf.h:39
virtual void push_cgem(float data)
Definition: HltInf.h:38
virtual void print() const
Definition: HltInf.cxx:127
~HltInf()
Definition: HltInf.cxx:16
virtual void push_con(float data)
Definition: HltInf.h:42
virtual void setMdcData(const std::vector< uint32_t > &vec)
Definition: HltInf.h:45
virtual void setCgemData(const std::vector< uint32_t > &vec)
Definition: HltInf.h:46
virtual void push_mdc(float data)
Definition: HltInf.h:37
virtual bool getData(const Identifier &, uint32_t *)
Definition: HltInf.cxx:85
virtual void push_muc(float data)
Definition: HltInf.h:41
virtual void setMucData(const std::vector< uint32_t > &vec)
Definition: HltInf.h:49
virtual void push_mdc(uint32_t data)
Definition: HltInf.h:31
HltInf & operator=(const DstHltInf &aHlt)
Definition: HltInf.cxx:24
virtual const CLID & clID() const
Definition: HltInf.h:18
virtual void push_cgem(uint32_t data)
Definition: HltInf.h:32
std::vector< uint32_t > & getDataVec(const Identifier &)
Definition: HltInf.cxx:71
virtual void setEmcData(const std::vector< uint32_t > &vec)
Definition: HltInf.h:48
virtual void push_emc(float data)
Definition: HltInf.h:40
static const CLID & classID()
Definition: HltInf.h:19
virtual void push_tof(uint32_t data)
Definition: HltInf.h:33
virtual void setConData(const std::vector< uint32_t > &vec)
Definition: HltInf.h:50
HltInf()
Definition: HltInf.cxx:11
virtual void push_con(uint32_t data)
Definition: HltInf.h:36
virtual void push_emc(uint32_t data)
Definition: HltInf.h:34
std::ostream ostream
Definition: bpkt_streams.h:41
dble_vec_t vec[12]
Definition: ranlxd.c:372