CMS 3D CMS Logo

L1TGlobalProducer.h
Go to the documentation of this file.
1 #ifndef L1TGlobalProducer_h
2 #define L1TGlobalProducer_h
3 
4 // Emulator for L1T Global
5 // author: Brian Winer Ohio State
6 
7 #include <string>
8 #include <vector>
9 #include <iostream>
10 #include <fstream>
11 
18 
20 
24 
26 class L1GtParameters;
27 class L1GtBoardMaps;
28 
30 class L1GtTriggerMask;
31 
32 class TriggerMenu;
33 
34 // class declaration
35 
37 public:
38  explicit L1TGlobalProducer(const edm::ParameterSet&);
39  ~L1TGlobalProducer() override;
40 
41  void produce(edm::Event&, const edm::EventSetup&) override;
42 
43  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
44 
45 private:
47 
50  unsigned long long m_l1GtParCacheID;
51 
52  // trigger menu
53  std::unique_ptr<TriggerMenu> m_l1GtMenu;
54  unsigned long long m_l1GtMenuCacheID;
55 
56  // number of physics triggers
57  unsigned int m_numberPhysTriggers;
58 
59  // number of DAQ partitions
60  unsigned int m_numberDaqPartitions;
61 
62  // number of objects of each type
63  int m_nrL1Mu;
64  int m_nrL1EG;
65  int m_nrL1Tau;
66 
67  int m_nrL1Jet;
68 
69  // ... the rest of the objects are global
72 
75 
78 
80  unsigned int m_bstLengthBytes;
81 
84  unsigned long long m_l1GtBMCacheID;
85 
88  unsigned long long m_l1GtPfAlgoCacheID;
89 
90  const std::vector<std::vector<int>>* m_prescaleFactorsAlgoTrig;
91  std::vector<std::vector<int>> m_initialPrescaleFactorsAlgoTrig;
92 
95 
97 
100  unsigned long long m_l1GtTmAlgoCacheID;
101 
103  unsigned long long m_l1GtTmVetoAlgoCacheID;
104 
105  const std::vector<unsigned int>* m_triggerMaskAlgoTrig;
106  std::vector<unsigned int> m_initialTriggerMaskAlgoTrig;
107 
108  const std::vector<int>* m_triggerMaskVetoAlgoTrig;
110 
111  std::unique_ptr<l1t::GlobalBoard> m_uGtBrd;
112 
116 
126 
130 
133 
136 
139 
145 
148 
152 
155 
157  unsigned int m_prescaleSet;
158 
163 
167 
172 
176 };
177 
178 #endif /*L1TGlobalProducer_h*/
L1TGlobalProducer::m_l1GtPrescalesVetoes
const l1t::PrescalesVetosHelper * m_l1GtPrescalesVetoes
prescale factors
Definition: L1TGlobalProducer.h:87
L1TGlobalProducer::m_jetInputToken
edm::EDGetTokenT< BXVector< l1t::Jet > > m_jetInputToken
Definition: L1TGlobalProducer.h:124
L1TGlobalProducer
Definition: L1TGlobalProducer.h:36
L1TGlobalProducer::m_l1GtPfAlgoCacheID
unsigned long long m_l1GtPfAlgoCacheID
Definition: L1TGlobalProducer.h:88
L1TGlobalProducer::m_uGtBrd
std::unique_ptr< l1t::GlobalBoard > m_uGtBrd
Definition: L1TGlobalProducer.h:111
L1TGlobalProducer::m_verbosity
int m_verbosity
verbosity level
Definition: L1TGlobalProducer.h:169
L1TGlobalProducer::m_l1GtBM
const L1GtBoardMaps * m_l1GtBM
board maps - cache only the record
Definition: L1TGlobalProducer.h:83
L1GtPrescaleFactors
Definition: L1GtPrescaleFactors.h:32
GlobalBoard.h
L1TGlobalProducer::m_numberPhysTriggers
unsigned int m_numberPhysTriggers
Definition: L1TGlobalProducer.h:57
L1TGlobalProducer::m_algoblkInputTag
edm::InputTag m_algoblkInputTag
Definition: L1TGlobalProducer.h:174
L1TGlobalProducer::m_extInputToken
edm::EDGetTokenT< BXVector< GlobalExtBlk > > m_extInputToken
Definition: L1TGlobalProducer.h:129
L1TGlobalProducer::m_l1GtParCacheID
unsigned long long m_l1GtParCacheID
Definition: L1TGlobalProducer.h:50
L1TGlobalProducer::m_totalBxInEvent
int m_totalBxInEvent
total number of Bx's in the event coming from EventSetup
Definition: L1TGlobalProducer.h:74
L1TGlobalProducer::m_nrL1Mu
int m_nrL1Mu
Definition: L1TGlobalProducer.h:63
GlobalParamsHelper.h
L1TGlobalProducer::m_initialTriggerMaskAlgoTrig
std::vector< unsigned int > m_initialTriggerMaskAlgoTrig
Definition: L1TGlobalProducer.h:106
edm::EDGetTokenT
Definition: EDGetToken.h:33
L1TGlobalProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: L1TGlobalProducer.cc:234
L1GtParameters
Definition: L1GtParameters.h:33
L1GtBoardMaps
Definition: L1GtBoardMaps.h:33
L1TGlobalProducer::m_jetInputTag
edm::InputTag m_jetInputTag
Definition: L1TGlobalProducer.h:120
L1TGlobalProducer::m_l1GtStablePar
const L1TGlobalParameters * m_l1GtStablePar
cached stuff
Definition: L1TGlobalProducer.h:49
EDProducer.h
L1TGlobalProducer::m_psBstLengthBytes
int m_psBstLengthBytes
length of BST record (in bytes) from parameter set
Definition: L1TGlobalProducer.h:154
L1TGlobalProducer::m_l1GtTmAlgoCacheID
unsigned long long m_l1GtTmAlgoCacheID
Definition: L1TGlobalProducer.h:100
L1TGlobalProducer::m_l1GtTmVetoAlgoCacheID
unsigned long long m_l1GtTmVetoAlgoCacheID
Definition: L1TGlobalProducer.h:103
L1TGlobalProducer::m_muInputTag
edm::InputTag m_muInputTag
input tag for muon collection from GMT
Definition: L1TGlobalProducer.h:114
L1TGlobalProducer::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks & veto masks
Definition: L1TGlobalProducer.h:99
parallelization.uint
uint
Definition: parallelization.py:124
L1TGlobalProducer::m_prescalesFile
std::string m_prescalesFile
CSV file for prescales.
Definition: L1TGlobalProducer.h:94
L1TGlobalProducer::m_sumInputTag
edm::InputTag m_sumInputTag
Definition: L1TGlobalProducer.h:121
L1TGlobalProducer::m_tauInputToken
edm::EDGetTokenT< BXVector< l1t::Tau > > m_tauInputToken
Definition: L1TGlobalProducer.h:123
L1TGlobalProducer::m_produceL1GtObjectMapRecord
bool m_produceL1GtObjectMapRecord
logical flag to produce the L1 GT object map record
Definition: L1TGlobalProducer.h:135
L1TGlobalProducer::m_algorithmTriggersUnprescaled
bool m_algorithmTriggersUnprescaled
Definition: L1TGlobalProducer.h:162
L1TGlobalParameters
Definition: L1TGlobalParameters.h:7
L1TGlobalProducer::m_produceL1GtDaqRecord
bool m_produceL1GtDaqRecord
logical flag to produce the L1 GT DAQ readout record
Definition: L1TGlobalProducer.h:132
L1TGlobalProducer::m_writePsbL1GtDaqRecord
bool m_writePsbL1GtDaqRecord
logical flag to write the PSB content in the L1 GT DAQ record
Definition: L1TGlobalProducer.h:138
L1TGlobalProducer::m_l1GtTmVetoAlgo
const L1GtTriggerMask * m_l1GtTmVetoAlgo
Definition: L1TGlobalProducer.h:102
L1TGlobalProducer::m_isDebugEnabled
bool m_isDebugEnabled
Definition: L1TGlobalProducer.h:171
L1TGlobalProducer::m_initialPrescaleFactorsAlgoTrig
std::vector< std::vector< int > > m_initialPrescaleFactorsAlgoTrig
Definition: L1TGlobalProducer.h:91
L1TGlobalProducer::~L1TGlobalProducer
~L1TGlobalProducer() override
Definition: L1TGlobalProducer.cc:229
PrescalesVetosHelper.h
L1GtTriggerMask
Definition: L1GtTriggerMask.h:33
L1TGlobalProducer::m_triggerMaskVetoAlgoTrig
const std::vector< int > * m_triggerMaskVetoAlgoTrig
Definition: L1TGlobalProducer.h:108
L1TGlobalProducer::m_extInputTag
edm::InputTag m_extInputTag
input tag for external conditions
Definition: L1TGlobalProducer.h:128
L1TGlobalProducer::m_l1GtMenuCacheID
unsigned long long m_l1GtMenuCacheID
Definition: L1TGlobalProducer.h:54
L1TGlobalProducer::m_alternativeNrBxBoardDaq
unsigned int m_alternativeNrBxBoardDaq
Definition: L1TGlobalProducer.h:151
L1TGlobalProducer::m_L1DataBxInEvent
int m_L1DataBxInEvent
Bx expected in Data coming to GT.
Definition: L1TGlobalProducer.h:147
L1TGlobalProducer::m_nrL1Tau
int m_nrL1Tau
Definition: L1TGlobalProducer.h:65
l1t::PrescalesVetosHelper
Definition: PrescalesVetosHelper.h:32
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TGlobalParameters.h
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
L1TGlobalProducer::m_tauInputTag
edm::InputTag m_tauInputTag
Definition: L1TGlobalProducer.h:119
L1TGlobalProducer::m_l1GtMenu
std::unique_ptr< TriggerMenu > m_l1GtMenu
Definition: L1TGlobalProducer.h:53
L1TGlobalProducer::m_initialTriggerMaskVetoAlgoTrig
std::vector< int > m_initialTriggerMaskVetoAlgoTrig
Definition: L1TGlobalProducer.h:109
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
edm::EDGetToken
Definition: EDGetToken.h:35
L1TGlobalProducer::m_algorithmTriggersUnmasked
bool m_algorithmTriggersUnmasked
Definition: L1TGlobalProducer.h:166
L1TGlobalProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: L1TGlobalProducer.cc:43
L1TGlobalProducer::m_muInputToken
edm::EDGetTokenT< BXVector< l1t::Muon > > m_muInputToken
Definition: L1TGlobalProducer.h:115
L1TGlobalProducer::m_nrL1EG
int m_nrL1EG
Definition: L1TGlobalProducer.h:64
L1TGlobalProducer::m_sumInputToken
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumInputToken
Definition: L1TGlobalProducer.h:125
InputTag.h
L1TGlobalProducer::m_emulateBxInEvent
int m_emulateBxInEvent
Definition: L1TGlobalProducer.h:144
L1TGlobalProducer::m_printL1Menu
bool m_printL1Menu
Definition: L1TGlobalProducer.h:170
L1TGlobalProducer::L1TGlobalProducer
L1TGlobalProducer(const edm::ParameterSet &)
Definition: L1TGlobalProducer.cc:84
L1TGlobalProducer::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
Definition: L1TGlobalProducer.h:90
L1TGlobalProducer::m_ifCaloEtaNumberBits
int m_ifCaloEtaNumberBits
Definition: L1TGlobalProducer.h:71
L1TGlobalProducer::m_bstLengthBytes
unsigned int m_bstLengthBytes
length of BST record (in bytes) from event setup
Definition: L1TGlobalProducer.h:80
L1TGlobalProducer::m_getPrescaleColumnFromData
bool m_getPrescaleColumnFromData
Definition: L1TGlobalProducer.h:173
L1TGlobalProducer::m_prescaleSet
unsigned int m_prescaleSet
prescale set used
Definition: L1TGlobalProducer.h:157
TriggerMenu
Definition: TriggerMenu.h:46
L1TGlobalProducer::m_nrL1Jet
int m_nrL1Jet
Definition: L1TGlobalProducer.h:67
Frameworkfwd.h
L1TGlobalProducer::m_egInputToken
edm::EDGetTokenT< BXVector< l1t::EGamma > > m_egInputToken
Definition: L1TGlobalProducer.h:122
EventSetup.h
L1TGlobalProducer::m_algoblkInputToken
edm::EDGetToken m_algoblkInputToken
Definition: L1TGlobalProducer.h:175
L1TGlobalProducer::m_l1GtBMCacheID
unsigned long long m_l1GtBMCacheID
Definition: L1TGlobalProducer.h:84
L1TGlobalProducer::m_numberDaqPartitions
unsigned int m_numberDaqPartitions
Definition: L1TGlobalProducer.h:60
L1TGlobalProducer::m_currentLumi
uint m_currentLumi
Definition: L1TGlobalProducer.h:96
ParameterSet.h
edm::Event
Definition: Event.h:73
L1TGlobalProducer::m_triggerMaskAlgoTrig
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
Definition: L1TGlobalProducer.h:105
edm::InputTag
Definition: InputTag.h:15
L1TGlobalProducer::m_ifMuEtaNumberBits
int m_ifMuEtaNumberBits
Definition: L1TGlobalProducer.h:70
L1TGlobalProducer::m_activeBoardsGtDaq
uint16_t m_activeBoardsGtDaq
active boards in L1 GT DAQ record
Definition: L1TGlobalProducer.h:77
L1TGlobalProducer::m_egInputTag
edm::InputTag m_egInputTag
input tag for calorimeter collections from GCT
Definition: L1TGlobalProducer.h:118