BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/HltEvent/HltEvent-00-02-07/HltEvent/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"
7#include "EventModel/EventModel.h"
8#include "Identifier/Identifier.h"
9#include "HltEvent/IHltInterface.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:287
const CLID & CLID_DstHltInf
Definition: EventModel.cxx:287
virtual bool setData(const Identifier &, uint32_t)
virtual void setConData(const std::vector< uint32_t > &)
bool isType(string &type) const
Definition: DstHltInf.cxx:68
virtual bool setData(const Identifier &, float)
virtual bool getData(const Identifier &, uint32_t *)
virtual void setMdcData(const std::vector< uint32_t > &)
virtual void setTofData(const std::vector< uint32_t > &)
const string & getEventName() const
Definition: DstHltInf.cxx:61
DstHltInf & operator=(const DstHltInf &)
Definition: DstHltInf.cxx:48
virtual void setEmcData(const std::vector< uint32_t > &)
virtual void setMucData(const std::vector< uint32_t > &)