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 public:
47  // constructors
49 
50  // destructor
51  virtual ~L1GlobalTriggerGTL();
52 
53 public:
56  edm::Event &, const edm::InputTag &, const int iBxInEvent, const bool receiveMu, const int nrL1Mu);
57 
59  void init(const int nrL1Mu, const int numberPhysTriggers);
60 
62  void run(edm::Event &iEvent,
63  const edm::EventSetup &evSetup,
64  const L1GlobalTriggerPSB *ptrGtPSB,
65  const bool produceL1GtObjectMapRecord,
66  const int iBxInEvent,
67  L1GlobalTriggerObjectMapRecord *gtObjectMapRecord,
68  const unsigned int numberPhysTriggers,
69  const int nrL1Mu,
70  const int nrL1NoIsoEG,
71  const int nrL1IsoEG,
72  const int nrL1CenJet,
73  const int nrL1ForJet,
74  const int nrL1TauJet,
75  const int nrL1JetCounts,
76  const int ifMuEtaNumberBits,
77  const int ifCaloEtaNumberBits);
78 
80  void reset();
81 
83  void printGmtData(const int iBxInEvent) const;
84 
86  inline const std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> &getDecisionWord() const {
87  return m_gtlDecisionWord;
88  }
89 
91  inline const std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> &getAlgorithmOR() const {
92  return m_gtlAlgorithmOR;
93  }
94 
96  inline const std::vector<const L1MuGMTCand *> *getCandL1Mu() const { return m_candL1Mu; }
97 
98 public:
99  inline void setVerbosity(const int verbosity) { m_verbosity = verbosity; }
100 
101 private:
102  // cached stuff
103 
104  // trigger menu
106  unsigned long long m_l1GtMenuCacheID;
107 
108  // L1 scales (phi, eta) for Mu, Calo and EnergySum objects
110  unsigned long long m_l1CaloGeometryCacheID;
111 
113  unsigned long long m_l1MuTriggerScalesCacheID;
114 
115  // conversions for eta and phi
117 
118 private:
119  std::vector<const L1MuGMTCand *> *m_candL1Mu;
120 
121  std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> m_gtlAlgorithmOR;
122  std::bitset<L1GlobalTriggerReadoutSetup::NumberPhysTriggers> m_gtlDecisionWord;
123 
124  // cache of maps
125  std::vector<L1GtAlgorithmEvaluation::ConditionEvaluationMap> m_conditionResultMaps;
126 
127 private:
131 };
132 
133 #endif
HIPAlignmentAlgorithm_cfi.verbosity
verbosity
Definition: HIPAlignmentAlgorithm_cfi.py:7
L1GlobalTriggerGTL::L1GlobalTriggerGTL
L1GlobalTriggerGTL(const edm::InputTag &mutag, edm::ConsumesCollector &&iC)
Definition: L1GlobalTriggerGTL.cc:77
L1GlobalTriggerGTL::getCandL1Mu
const std::vector< const L1MuGMTCand * > * getCandL1Mu() const
return global muon trigger candidate
Definition: L1GlobalTriggerGTL.h:96
L1GlobalTriggerGTL::m_l1CaloGeometry
const L1CaloGeometry * m_l1CaloGeometry
Definition: L1GlobalTriggerGTL.h:109
L1GlobalTriggerReadoutSetupFwd.h
L1GlobalTriggerGTL::getDecisionWord
const std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > & getDecisionWord() const
return decision
Definition: L1GlobalTriggerGTL.h:86
L1GlobalTriggerGTL::m_l1MuTriggerScalesCacheID
unsigned long long m_l1MuTriggerScalesCacheID
Definition: L1GlobalTriggerGTL.h:113
L1GlobalTriggerGTL::reset
void reset()
clear GTL
Definition: L1GlobalTriggerGTL.cc:658
L1GlobalTriggerGTL::m_l1CaloGeometryCacheID
unsigned long long m_l1CaloGeometryCacheID
Definition: L1GlobalTriggerGTL.h:110
L1GlobalTriggerGTL::m_gtlAlgorithmOR
std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > m_gtlAlgorithmOR
Definition: L1GlobalTriggerGTL.h:121
L1GlobalTriggerGTL::m_conditionResultMaps
std::vector< L1GtAlgorithmEvaluation::ConditionEvaluationMap > m_conditionResultMaps
Definition: L1GlobalTriggerGTL.h:125
L1GlobalTriggerGTL::init
void init(const int nrL1Mu, const int numberPhysTriggers)
initialize the class (mainly reserve)
Definition: L1GlobalTriggerGTL.cc:102
L1GlobalTriggerGTL::m_verbosity
int m_verbosity
verbosity level
Definition: L1GlobalTriggerGTL.h:129
L1GlobalTriggerGTL::m_l1GtMenu
const L1GtTriggerMenu * m_l1GtMenu
Definition: L1GlobalTriggerGTL.h:105
L1GlobalTriggerGTL::run
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
Definition: L1GlobalTriggerGTL.cc:158
L1GtEtaPhiConversions
Definition: L1GtEtaPhiConversions.h:36
L1GlobalTriggerGTL::m_l1GtMenuCacheID
unsigned long long m_l1GtMenuCacheID
Definition: L1GlobalTriggerGTL.h:106
L1GlobalTriggerGTL::m_l1MuTriggerScales
const L1MuTriggerScales * m_l1MuTriggerScales
Definition: L1GlobalTriggerGTL.h:112
L1GlobalTriggerGTL::m_candL1Mu
std::vector< const L1MuGMTCand * > * m_candL1Mu
Definition: L1GlobalTriggerGTL.h:119
L1GlobalTriggerGTL::m_gtEtaPhiConversions
L1GtEtaPhiConversions * m_gtEtaPhiConversions
Definition: L1GlobalTriggerGTL.h:116
L1GlobalTriggerGTL::getAlgorithmOR
const std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > & getAlgorithmOR() const
return algorithm OR decision
Definition: L1GlobalTriggerGTL.h:91
L1GlobalTriggerGTL::receiveGmtObjectData
void receiveGmtObjectData(edm::Event &, const edm::InputTag &, const int iBxInEvent, const bool receiveMu, const int nrL1Mu)
receive data from Global Muon Trigger
Definition: L1GlobalTriggerGTL.cc:116
L1GlobalTriggerGTL
Definition: L1GlobalTriggerGTL.h:45
L1GtTriggerMenu
Definition: L1GtTriggerMenu.h:48
Event.h
L1GlobalTriggerReadoutSetup.h
L1CaloGeometry
Definition: L1CaloGeometry.h:33
L1GlobalTriggerObjectMapRecord
Definition: L1GlobalTriggerObjectMapRecord.h:29
L1GtAlgorithmEvaluation.h
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
L1MuTriggerScales
Definition: L1MuTriggerScales.h:33
L1GlobalTriggerGTL::m_gtlDecisionWord
std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > m_gtlDecisionWord
Definition: L1GlobalTriggerGTL.h:122
L1GlobalTriggerGTL::setVerbosity
void setVerbosity(const int verbosity)
Definition: L1GlobalTriggerGTL.h:99
InputTag.h
L1MuGMTCand.h
L1GlobalTriggerPSB
Definition: L1GlobalTriggerPSB.h:58
EventSetup.h
L1GlobalTriggerGTL::~L1GlobalTriggerGTL
virtual ~L1GlobalTriggerGTL()
Definition: L1GlobalTriggerGTL.cc:95
ConsumesCollector.h
L1GlobalTriggerObjectMapRecord.h
edm::Event
Definition: Event.h:73
L1GlobalTriggerGTL::m_isDebugEnabled
bool m_isDebugEnabled
Definition: L1GlobalTriggerGTL.h:130
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
L1GlobalTriggerGTL::printGmtData
void printGmtData(const int iBxInEvent) const
print received Muon dataWord
Definition: L1GlobalTriggerGTL.cc:666