BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TrigGTDProvider.h
Go to the documentation of this file.
1#ifndef TrigGTDProvider_H
2#define TrigGTDProvider_H
3#include "GaudiKernel/ContainedObject.h"
4#include <map>
5#include <vector>
6#include <string>
7
8using namespace std;
9
10//extern const CLID& CLID_TrigGTDProvider;
11/*
12 Global trigger data structure (GTDProvider)
13*/
14class TrigGTDProvider : virtual public ContainedObject {
15public:
16 // Constructor
17 TrigGTDProvider(const unsigned int boardIndex, const unsigned int dataType, const unsigned int timeWindow,
18 const unsigned int GTDProviderTiming, const bool preScale,
19 const std::map<unsigned int, std::vector<unsigned int> > GTDProviderData,
20 const std::vector<unsigned int> GTDProviderEvtType,
21 const std::map<unsigned int, std::vector<unsigned int> > Num_One,
22 const std::map<unsigned int, std::vector<unsigned int> > Num_Zero);
23
25
26 //destructor
27 virtual ~TrigGTDProvider() {}
28
29 // Retrieve reference to class definition structure
30// virtual const CLID& clID() const { return TrigGTDProvider::classID(); }
31// static const CLID& classID() { return CLID_TrigGTDProvider; }
32
33 //set related information
34 void setDataType(const unsigned int dataType);
35 void setTimeWindow(const unsigned int timeWindow);
36 void setBoardIndex(const unsigned int boardIndex);
37 void setTrigTiming(const unsigned int GTDProviderTiming);
38 void setPreScale(const bool preScale);
39 void setTrigCondList(const std::map<unsigned int, std::vector<unsigned int> > GTDProviderData);
40 void setTrigEvtType(const std::vector<unsigned int> GTDProviderEvtType);
41 void setNumOne(const std::map<unsigned int, std::vector<unsigned int> > Num_One);
42 void setNumZero(const std::map<unsigned int, std::vector<unsigned int> > Num_Zero);
43
44 //get related information
45 unsigned int getDataType() const;
46 unsigned int getTimeWindow() const;
47 unsigned int getBoardIndex() const;
48 unsigned int getTrigTiming() const;
49 bool getPreScale() const;
50 const std::map<unsigned int, std::vector<unsigned int> >& getTrigCondList() const;
51 const std::vector<unsigned int>& getTrigEvtType() const;
52 const std::map<unsigned int, std::vector<unsigned int> >& getNumOne() const;
53 const std::map<unsigned int, std::vector<unsigned int> >& getNumZero() const;
54
55protected:
56 //data structure of GTDProvider
57 unsigned int m_boardIndex;
58 unsigned int m_dataType;
59 unsigned int m_timeWindow;
60 unsigned int m_GTDProviderTiming;
62 std::map<unsigned int, std::vector<unsigned int> > m_GTDProviderData;
63 std::vector<unsigned int> m_GTDProviderEvtType;
64
65 std::map<unsigned int, std::vector<unsigned int> > m_Num_One; // number of "1" for each trigger condition or each bit in time window
66 std::map<unsigned int, std::vector<unsigned int> > m_Num_Zero; // number of "0" before the first "1" for each condition or each bit in time window
67
68};
69
70typedef ObjectVector<TrigGTDProvider> TrigGTDProviderCol;
71
72#endif
ObjectVector< TrigGTDProvider > TrigGTDProviderCol
const std::vector< unsigned int > & getTrigEvtType() const
std::map< unsigned int, std::vector< unsigned int > > m_Num_One
virtual ~TrigGTDProvider()
void setTrigTiming(const unsigned int GTDProviderTiming)
unsigned int getTrigTiming() const
const std::map< unsigned int, std::vector< unsigned int > > & getNumOne() const
unsigned int m_timeWindow
void setDataType(const unsigned int dataType)
unsigned int getTimeWindow() const
void setBoardIndex(const unsigned int boardIndex)
void setTrigCondList(const std::map< unsigned int, std::vector< unsigned int > > GTDProviderData)
std::map< unsigned int, std::vector< unsigned int > > m_GTDProviderData
void setTimeWindow(const unsigned int timeWindow)
unsigned int m_dataType
unsigned int getBoardIndex() const
const std::map< unsigned int, std::vector< unsigned int > > & getNumZero() const
const std::map< unsigned int, std::vector< unsigned int > > & getTrigCondList() const
void setNumOne(const std::map< unsigned int, std::vector< unsigned int > > Num_One)
bool getPreScale() const
std::vector< unsigned int > m_GTDProviderEvtType
unsigned int m_boardIndex
unsigned int getDataType() const
void setTrigEvtType(const std::vector< unsigned int > GTDProviderEvtType)
void setPreScale(const bool preScale)
std::map< unsigned int, std::vector< unsigned int > > m_Num_Zero
void setNumZero(const std::map< unsigned int, std::vector< unsigned int > > Num_Zero)
unsigned int m_GTDProviderTiming