CMS 3D CMS Logo

L1GlobalTriggerGTL.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GlobalTriggerGTL_h
2 #define GlobalTrigger_L1GlobalTriggerGTL_h
3 
19 // system include files
20 #include <bitset>
21 #include <vector>
22 
23 // user include files
28 
30 
33 
36 
37 // forward declarations
38 class L1GlobalTriggerPSB;
39 class L1GtTriggerMenu;
40 class L1CaloGeometry;
41 class L1MuTriggerScales;
43 
44 // class declaration
46 
47 public:
48  // constructors
50 
51  // destructor
52  virtual ~L1GlobalTriggerGTL();
53 
54 public:
57  const int iBxInEvent, const bool receiveMu,
58  const int nrL1Mu);
59 
61  void init(const int nrL1Mu, const int numberPhysTriggers);
62 
64  void run(edm::Event &iEvent, const edm::EventSetup &evSetup,
65  const L1GlobalTriggerPSB *ptrGtPSB,
66  const bool produceL1GtObjectMapRecord, const int iBxInEvent,
67  L1GlobalTriggerObjectMapRecord *gtObjectMapRecord,
68  const unsigned int numberPhysTriggers, const int nrL1Mu,
69  const int nrL1NoIsoEG, const int nrL1IsoEG, const int nrL1CenJet,
70  const int nrL1ForJet, const int nrL1TauJet, const int nrL1JetCounts,
71  const int ifMuEtaNumberBits, const int ifCaloEtaNumberBits);
72 
74  void reset();
75 
77  void printGmtData(const int iBxInEvent) const;
78 
80  inline const std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> &
81  getDecisionWord() const {
82  return m_gtlDecisionWord;
83  }
84 
86  inline const std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> &
87  getAlgorithmOR() const {
88  return m_gtlAlgorithmOR;
89  }
90 
92  inline const std::vector<const L1MuGMTCand *> *getCandL1Mu() const {
93  return m_candL1Mu;
94  }
95 
96 public:
97  inline void setVerbosity(const int verbosity) { m_verbosity = verbosity; }
98 
99 private:
100  // cached stuff
101 
102  // trigger menu
104  unsigned long long m_l1GtMenuCacheID;
105 
106  // L1 scales (phi, eta) for Mu, Calo and EnergySum objects
108  unsigned long long m_l1CaloGeometryCacheID;
109 
111  unsigned long long m_l1MuTriggerScalesCacheID;
112 
113  // conversions for eta and phi
115 
116 private:
117  std::vector<const L1MuGMTCand *> *m_candL1Mu;
118 
119  std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> m_gtlAlgorithmOR;
120  std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers>
122 
123  // cache of maps
124  std::vector<L1GtAlgorithmEvaluation::ConditionEvaluationMap>
126 
127 private:
131 };
132 
133 #endif
std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > m_gtlAlgorithmOR
std::vector< L1GtAlgorithmEvaluation::ConditionEvaluationMap > m_conditionResultMaps
void init(const int nrL1Mu, const int numberPhysTriggers)
initialize the class (mainly reserve)
void printGmtData(const int iBxInEvent) const
print received Muon dataWord
L1GlobalTriggerGTL(const edm::InputTag &mutag, edm::ConsumesCollector &&iC)
int iEvent
Definition: GenABIO.cc:224
int m_verbosity
verbosity level
const L1GtTriggerMenu * m_l1GtMenu
std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > m_gtlDecisionWord
void run(edm::Event &iEvent, const edm::EventSetup &evSetup, const L1GlobalTriggerPSB *ptrGtPSB, const bool produceL1GtObjectMapRecord, const int iBxInEvent, L1GlobalTriggerObjectMapRecord *gtObjectMapRecord, const unsigned int numberPhysTriggers, const int nrL1Mu, const int nrL1NoIsoEG, const int nrL1IsoEG, const int nrL1CenJet, const int nrL1ForJet, const int nrL1TauJet, const int nrL1JetCounts, const int ifMuEtaNumberBits, const int ifCaloEtaNumberBits)
run the GTL
unsigned long long m_l1GtMenuCacheID
std::vector< const L1MuGMTCand * > * m_candL1Mu
const L1MuTriggerScales * m_l1MuTriggerScales
const std::vector< const L1MuGMTCand * > * getCandL1Mu() const
return global muon trigger candidate
L1GtEtaPhiConversions * m_gtEtaPhiConversions
const std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > & getAlgorithmOR() const
return algorithm OR decision
void receiveGmtObjectData(edm::Event &, const edm::InputTag &, const int iBxInEvent, const bool receiveMu, const int nrL1Mu)
receive data from Global Muon Trigger
const std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > & getDecisionWord() const
return decision
const L1CaloGeometry * m_l1CaloGeometry
void setVerbosity(const int verbosity)
unsigned long long m_l1MuTriggerScalesCacheID
void reset()
clear GTL
unsigned long long m_l1CaloGeometryCacheID