CGEM BOSS 6.6.5.h
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
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 setNCGEM(const unsigned int i) { m_number = (m_number&0xFFFFFF00)|(i<<32); };
41 void setNCON(const unsigned int i) { m_ncon = i; };
42
43 uint32_t getEventType() const { return m_eventType;}
44 uint32_t getAlgProcess()const { return m_algProcess; }
45 uint32_t getCriteriaTable()const { return m_criTable; }
46 uint32_t getVersion() const { return m_version; }
47 float getTotalEnergy() const { return m_eTotal; }
48 uint32_t getNumber() const { return m_number; };
49 uint32_t getNMDC() const { return m_number&0xFF; };
50 uint32_t getNTOF() const { return (m_number>>8)&0xFF; };
51 uint32_t getNEMC() const { return (m_number>>16)&0xFF; };
52 uint32_t getNMUC() const { return (m_number>>24)&0xFF; };
53 uint32_t getNCGEM() const { return (m_number>>32)&0xFF; };
54 uint32_t getNCON() const { return m_ncon; };
55
56 const string& getEventName() const ;
57 bool isType(string& type) const ;
58
59 virtual void push_mdc(uint32_t){};
60 virtual void push_cgem(uint32_t){};
61 virtual void push_tof(uint32_t){};
62 virtual void push_emc(uint32_t){};
63 virtual void push_muc(uint32_t){};
64 virtual void push_con(uint32_t){};
65 virtual void push_mdc(float){};
66 virtual void push_cgem(float){};
67 virtual void push_tof(float){};
68 virtual void push_emc(float){};
69 virtual void push_muc(float){};
70 virtual void push_con(float){};
71 virtual bool setData(const Identifier&, uint32_t){return false;};
72 virtual bool setData(const Identifier&, float){return false;};
73 virtual void setMdcData(const std::vector<uint32_t>&){};
74 virtual void setCgemData(const std::vector<uint32_t>&){};
75 virtual void setTofData(const std::vector<uint32_t>&){};
76 virtual void setEmcData(const std::vector<uint32_t>&){};
77 virtual void setMucData(const std::vector<uint32_t>&){};
78 virtual void setConData(const std::vector<uint32_t>&){};
79 virtual bool getData(const Identifier&, uint32_t*){ return false;};
80
81 virtual void print() const { cout << *this; }
82
83protected:
84 uint32_t m_eventType; //Hlt
85 uint32_t m_algProcess; //Hlt
86 uint32_t m_criTable;
87 uint32_t m_version;
88 float m_eTotal;
89 uint32_t m_number;
90 uint32_t m_ncon;
91
92 static const std::string s_chn[32];
93 static const std::string s_err;
94};
95
96ostream& operator<<(ostream & os, const DstHltInf& aHlt);
97
98#endif // EVENT_DST_HLT_INF_H
99
Double_t etot
ostream & operator<<(ostream &os, const DstHltInf &aHlt)
Definition DstHltInf.cxx:76
const CLID & CLID_DstHltInf
virtual bool setData(const Identifier &, uint32_t)
Definition DstHltInf.h:71
uint32_t getNEMC() const
Definition DstHltInf.h:51
void setAlgProcess(const unsigned int i)
Definition DstHltInf.h:31
uint32_t getNTOF() const
Definition DstHltInf.h:50
void setNTOF(const unsigned int i)
Definition DstHltInf.h:37
static const std::string s_chn[32]
Definition DstHltInf.h:3
virtual const CLID & clID() const
Definition DstHltInf.h:27
virtual void push_tof(uint32_t)
Definition DstHltInf.h:61
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:78
uint32_t m_number
Definition DstHltInf.h:89
virtual void setCgemData(const std::vector< uint32_t > &)
Definition DstHltInf.h:74
float getTotalEnergy() const
Definition DstHltInf.h:47
virtual void push_con(uint32_t)
Definition DstHltInf.h:64
virtual void push_mdc(float)
Definition DstHltInf.h:65
virtual void push_emc(float)
Definition DstHltInf.h:68
uint32_t m_ncon
Definition DstHltInf.h:90
uint32_t m_criTable
Definition DstHltInf.h:86
virtual void push_mdc(uint32_t)
Definition DstHltInf.h:59
virtual void push_con(float)
Definition DstHltInf.h:70
bool isType(string &type) const
Definition DstHltInf.cxx:68
uint32_t getCriteriaTable() const
Definition DstHltInf.h:45
static const std::string s_err
Definition DstHltInf.h:93
virtual void print() const
Definition DstHltInf.h:81
void setNumber(const unsigned int i)
Definition DstHltInf.h:35
uint32_t getNCON() const
Definition DstHltInf.h:54
virtual bool setData(const Identifier &, float)
Definition DstHltInf.h:72
void setNCON(const unsigned int i)
Definition DstHltInf.h:41
float m_eTotal
Definition DstHltInf.h:88
virtual ~DstHltInf()
Definition DstHltInf.h:25
uint32_t getVersion() const
Definition DstHltInf.h:46
uint32_t m_version
Definition DstHltInf.h:87
uint32_t getNumber() const
Definition DstHltInf.h:48
uint32_t getNCGEM() const
Definition DstHltInf.h:53
uint32_t m_eventType
Definition DstHltInf.h:84
void setNMUC(const unsigned int i)
Definition DstHltInf.h:39
virtual void push_tof(float)
Definition DstHltInf.h:67
virtual bool getData(const Identifier &, uint32_t *)
Definition DstHltInf.h:79
virtual void push_cgem(uint32_t)
Definition DstHltInf.h:60
virtual void push_muc(float)
Definition DstHltInf.h:69
uint32_t getEventType() const
Definition DstHltInf.h:43
uint32_t m_algProcess
Definition DstHltInf.h:85
virtual void setMdcData(const std::vector< uint32_t > &)
Definition DstHltInf.h:73
virtual void setTofData(const std::vector< uint32_t > &)
Definition DstHltInf.h:75
uint32_t getAlgProcess() const
Definition DstHltInf.h:44
void setEventType(const unsigned int i)
Definition DstHltInf.h:30
virtual void push_emc(uint32_t)
Definition DstHltInf.h:62
void setTotalEnergy(const float etot)
Definition DstHltInf.h:34
virtual void push_muc(uint32_t)
Definition DstHltInf.h:63
uint32_t getNMUC() const
Definition DstHltInf.h:52
uint32_t getNMDC() const
Definition DstHltInf.h:49
void setNMDC(const unsigned int i)
Definition DstHltInf.h:36
virtual void push_cgem(float)
Definition DstHltInf.h:66
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:76
virtual void setMucData(const std::vector< uint32_t > &)
Definition DstHltInf.h:77
void setNCGEM(const unsigned int i)
Definition DstHltInf.h:40