BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
DstHltInf.h
Go to the documentation of this file.
1#ifndef EVENT_DST_HLT_INF_H
2#define EVENT_DST_HLT_INF_H
3
4#include <stdint.h> //uint32_t
5#include <iostream>
6#include "GaudiKernel/DataObject.h"
10
11using namespace std;
12
13extern const CLID& CLID_DstHltInf;
14
15//event filter data struction for physics analysis
16class DstHltInf : public DataObject, public IHltInterface {
17public:
18
19 DstHltInf(const unsigned int type, const unsigned int alg, const unsigned int cri,
20 const unsigned int ver, const float etot);
21 DstHltInf();
22 DstHltInf(const DstHltInf&);
24
25 virtual ~DstHltInf() {}
26
27 virtual const CLID& clID() const { return DstHltInf::classID(); }
28 static const CLID& classID() { return CLID_DstHltInf; }
29
30 void setEventType(const unsigned int i) { m_eventType = i; }
31 void setAlgProcess(const unsigned int i) { m_algProcess=i; }
32 void setCriteriaTable(const unsigned int i) { m_criTable=i; }
33 void setVersion(const unsigned int i) { m_version=i; }
34 void setTotalEnergy(const float etot) { m_eTotal = etot; }
35 void setNumber(const unsigned int i) { m_number=i; };
36 void setNMDC(const unsigned int i) { m_number = (m_number&0xFFFFFF00)|i ; };
37 void setNTOF(const unsigned int i) { m_number = (m_number&0xFFFF00FF)|(i<<8); };
38 void setNEMC(const unsigned int i) { m_number = (m_number&0xFF00FFFF)|(i<<16); };
39 void setNMUC(const unsigned int i) { m_number = (m_number&0x00FFFFFF)|(i<<24); };
40 void setNCON(const unsigned int i) { m_ncon = i; };
41
42 uint32_t getEventType() const { return m_eventType;}
43 uint32_t getAlgProcess()const { return m_algProcess; }
44 uint32_t getCriteriaTable()const { return m_criTable; }
45 uint32_t getVersion() const { return m_version; }
46 float getTotalEnergy() const { return m_eTotal; }
47 uint32_t getNumber() const { return m_number; };
48 uint32_t getNMDC() const { return m_number&0xFF; };
49 uint32_t getNTOF() const { return (m_number>>8)&0xFF; };
50 uint32_t getNEMC() const { return (m_number>>16)&0xFF; };
51 uint32_t getNMUC() const { return (m_number>>24)&0xFF; };
52 uint32_t getNCON() const { return m_ncon; };
53
54 const string& getEventName() const ;
55 bool isType(string& type) const ;
56
57 virtual void push_mdc(uint32_t){};
58 virtual void push_tof(uint32_t){};
59 virtual void push_emc(uint32_t){};
60 virtual void push_muc(uint32_t){};
61 virtual void push_con(uint32_t){};
62 virtual void push_mdc(float){};
63 virtual void push_tof(float){};
64 virtual void push_emc(float){};
65 virtual void push_muc(float){};
66 virtual void push_con(float){};
67 virtual bool setData(const Identifier&, uint32_t){return false;};
68 virtual bool setData(const Identifier&, float){return false;};
69 virtual void setMdcData(const std::vector<uint32_t>&){};
70 virtual void setTofData(const std::vector<uint32_t>&){};
71 virtual void setEmcData(const std::vector<uint32_t>&){};
72 virtual void setMucData(const std::vector<uint32_t>&){};
73 virtual void setConData(const std::vector<uint32_t>&){};
74 virtual bool getData(const Identifier&, uint32_t*){ return false;};
75
76 virtual void print() const { cout << *this; }
77
78protected:
79 uint32_t m_eventType; //Hlt
80 uint32_t m_algProcess; //Hlt
81 uint32_t m_criTable;
82 uint32_t m_version;
83 float m_eTotal;
84 uint32_t m_number;
85 uint32_t m_ncon;
86
87 static const std::string s_chn[32];
88 static const std::string s_err;
89};
90
91ostream& operator<<(ostream & os, const DstHltInf& aHlt);
92
93#endif // EVENT_DST_HLT_INF_H
94
Double_t etot
ostream & operator<<(ostream &os, const DstHltInf &aHlt)
Definition: DstHltInf.cxx:76
const CLID & CLID_DstHltInf
Definition: EventModel.cxx:283
virtual bool setData(const Identifier &, uint32_t)
Definition: DstHltInf.h:67
uint32_t getNEMC() const
Definition: DstHltInf.h:50
void setAlgProcess(const unsigned int i)
Definition: DstHltInf.h:31
uint32_t getNTOF() const
Definition: DstHltInf.h:49
void setNTOF(const unsigned int i)
Definition: DstHltInf.h:37
static const std::string s_chn[32]
Definition: DstHltInf.h:87
virtual const CLID & clID() const
Definition: DstHltInf.h:27
virtual void push_tof(uint32_t)
Definition: DstHltInf.h:58
void setNEMC(const unsigned int i)
Definition: DstHltInf.h:38
void setCriteriaTable(const unsigned int i)
Definition: DstHltInf.h:32
virtual void setConData(const std::vector< uint32_t > &)
Definition: DstHltInf.h:73
uint32_t m_number
Definition: DstHltInf.h:84
float getTotalEnergy() const
Definition: DstHltInf.h:46
virtual void push_con(uint32_t)
Definition: DstHltInf.h:61
virtual void push_mdc(float)
Definition: DstHltInf.h:62
virtual void push_emc(float)
Definition: DstHltInf.h:64
uint32_t m_ncon
Definition: DstHltInf.h:85
uint32_t m_criTable
Definition: DstHltInf.h:81
virtual void push_mdc(uint32_t)
Definition: DstHltInf.h:57
virtual void push_con(float)
Definition: DstHltInf.h:66
bool isType(string &type) const
Definition: DstHltInf.cxx:68
uint32_t getCriteriaTable() const
Definition: DstHltInf.h:44
static const std::string s_err
Definition: DstHltInf.h:88
virtual void print() const
Definition: DstHltInf.h:76
void setNumber(const unsigned int i)
Definition: DstHltInf.h:35
uint32_t getNCON() const
Definition: DstHltInf.h:52
virtual bool setData(const Identifier &, float)
Definition: DstHltInf.h:68
void setNCON(const unsigned int i)
Definition: DstHltInf.h:40
float m_eTotal
Definition: DstHltInf.h:83
virtual ~DstHltInf()
Definition: DstHltInf.h:25
uint32_t getVersion() const
Definition: DstHltInf.h:45
uint32_t m_version
Definition: DstHltInf.h:82
uint32_t getNumber() const
Definition: DstHltInf.h:47
uint32_t m_eventType
Definition: DstHltInf.h:79
void setNMUC(const unsigned int i)
Definition: DstHltInf.h:39
virtual void push_tof(float)
Definition: DstHltInf.h:63
virtual bool getData(const Identifier &, uint32_t *)
Definition: DstHltInf.h:74
virtual void push_muc(float)
Definition: DstHltInf.h:65
uint32_t getEventType() const
Definition: DstHltInf.h:42
uint32_t m_algProcess
Definition: DstHltInf.h:80
virtual void setMdcData(const std::vector< uint32_t > &)
Definition: DstHltInf.h:69
virtual void setTofData(const std::vector< uint32_t > &)
Definition: DstHltInf.h:70
uint32_t getAlgProcess() const
Definition: DstHltInf.h:43
void setEventType(const unsigned int i)
Definition: DstHltInf.h:30
virtual void push_emc(uint32_t)
Definition: DstHltInf.h:59
void setTotalEnergy(const float etot)
Definition: DstHltInf.h:34
virtual void push_muc(uint32_t)
Definition: DstHltInf.h:60
uint32_t getNMUC() const
Definition: DstHltInf.h:51
uint32_t getNMDC() const
Definition: DstHltInf.h:48
void setNMDC(const unsigned int i)
Definition: DstHltInf.h:36
const string & getEventName() const
Definition: DstHltInf.cxx:61
static const CLID & classID()
Definition: DstHltInf.h:28
void setVersion(const unsigned int i)
Definition: DstHltInf.h:33
DstHltInf & operator=(const DstHltInf &)
Definition: DstHltInf.cxx:48
virtual void setEmcData(const std::vector< uint32_t > &)
Definition: DstHltInf.h:71
virtual void setMucData(const std::vector< uint32_t > &)
Definition: DstHltInf.h:72