CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1GtTriggerMenuLiteProducer Class Reference

#include <L1GtTriggerMenuLiteProducer.h>

Inheritance diagram for L1GtTriggerMenuLiteProducer:
edm::one::EDProducer< edm::BeginRunProducer > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L1GtTriggerMenuLiteProducer (const edm::ParameterSet &)
 constructor(s) More...
 
 ~L1GtTriggerMenuLiteProducer () override
 destructor More...
 
- Public Member Functions inherited from edm::one::EDProducer< edm::BeginRunProducer >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void beginJob () final
 
void beginRunProduce (edm::Run &, const edm::EventSetup &) final
 
void endJob () override
 
void produce (edm::Event &, const edm::EventSetup &) final
 
void retrieveL1EventSetup (const edm::EventSetup &)
 

Private Attributes

const AlgorithmMapm_algorithmAliasMap
 
const AlgorithmMapm_algorithmMap
 
const L1GtTriggerMenum_l1GtMenu
 
unsigned long long m_l1GtMenuCacheID
 
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcdm_l1GtMenuToken
 
const L1GtPrescaleFactorsm_l1GtPfAlgo
 prescale factors More...
 
unsigned long long m_l1GtPfAlgoCacheID
 
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcdm_l1GtPfAlgoToken
 
const L1GtPrescaleFactorsm_l1GtPfTech
 
unsigned long long m_l1GtPfTechCacheID
 
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcdm_l1GtPfTechToken
 
const L1GtStableParametersm_l1GtStablePar
 cached stuff More...
 
const edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcdm_l1GtStableParamToken
 EventSetup Tokens. More...
 
unsigned long long m_l1GtStableParCacheID
 
const L1GtTriggerMaskm_l1GtTmAlgo
 trigger masks More...
 
unsigned long long m_l1GtTmAlgoCacheID
 
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcdm_l1GtTmAlgoToken
 
const L1GtTriggerMaskm_l1GtTmTech
 
unsigned long long m_l1GtTmTechCacheID
 
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcdm_l1GtTmTechToken
 
unsigned int m_numberPhysTriggers
 number of physics triggers More...
 
unsigned int m_numberTechnicalTriggers
 number of technical triggers More...
 
unsigned int m_physicsDaqPartition
 index of physics DAQ partition More...
 
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
 
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
 
const AlgorithmMapm_technicalTriggerMap
 
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
 
const std::vector< unsigned int > * m_triggerMaskTechTrig
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Description: L1GtTriggerMenuLite producer.

Implementation: Read the L1 trigger menu, the trigger masks and the prescale factor sets from event setup and save a lite version (top level menu, trigger masks for physics partition and prescale factor set) in Run Data.

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 53 of file L1GtTriggerMenuLiteProducer.h.

Constructor & Destructor Documentation

◆ L1GtTriggerMenuLiteProducer()

L1GtTriggerMenuLiteProducer::L1GtTriggerMenuLiteProducer ( const edm::ParameterSet parSet)
explicit

constructor(s)

Definition at line 37 of file L1GtTriggerMenuLiteProducer.cc.

38  : m_l1GtStableParCacheID(0ULL),
40 
42 
43  m_l1GtMenuCacheID(0ULL),
44 
45  m_l1GtTmAlgoCacheID(0ULL),
46  m_l1GtTmTechCacheID(0ULL),
47 
48  m_l1GtPfAlgoCacheID(0ULL),
49  m_l1GtPfTechCacheID(0ULL),
50 
51  m_l1GtStableParamToken(esConsumes<L1GtStableParameters, L1GtStableParametersRcd, edm::Transition::BeginRun>()),
52  m_l1GtPfAlgoToken(esConsumes<L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd, edm::Transition::BeginRun>()),
53  m_l1GtPfTechToken(esConsumes<L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd, edm::Transition::BeginRun>()),
54  m_l1GtTmAlgoToken(esConsumes<L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd, edm::Transition::BeginRun>()),
55  m_l1GtTmTechToken(esConsumes<L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd, edm::Transition::BeginRun>()),
56  m_l1GtMenuToken(esConsumes<L1GtTriggerMenu, L1GtTriggerMenuRcd, edm::Transition::BeginRun>()),
58  // EDM product in Run Data
59  produces<L1GtTriggerMenuLite, edm::Transition::BeginRun>();
60 }
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd > m_l1GtTmAlgoToken
unsigned int m_physicsDaqPartition
index of physics DAQ partition
const edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd > m_l1GtStableParamToken
EventSetup Tokens.
unsigned int m_numberPhysTriggers
number of physics triggers
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > m_l1GtPfAlgoToken
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd > m_l1GtTmTechToken
unsigned int m_numberTechnicalTriggers
number of technical triggers
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd > m_l1GtPfTechToken
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_l1GtMenuToken

◆ ~L1GtTriggerMenuLiteProducer()

L1GtTriggerMenuLiteProducer::~L1GtTriggerMenuLiteProducer ( )
override

destructor

Definition at line 63 of file L1GtTriggerMenuLiteProducer.cc.

63  {
64  // empty
65 }

Member Function Documentation

◆ beginJob()

void L1GtTriggerMenuLiteProducer::beginJob ( void  )
finalprivatevirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 157 of file L1GtTriggerMenuLiteProducer.cc.

157  {
158  // empty
159 }

◆ beginRunProduce()

void L1GtTriggerMenuLiteProducer::beginRunProduce ( edm::Run iRun,
const edm::EventSetup evSetup 
)
finalprivate

Definition at line 161 of file L1GtTriggerMenuLiteProducer.cc.

References L1TBPTX_cfi::bitNumber, L1GtTriggerMenu::gtScaleDbKey(), L1GtTriggerMenu::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuInterface(), L1GtTriggerMenu::gtTriggerMenuName(), edm::isDebugEnabled(), LogDebug, m_algorithmAliasMap, m_algorithmMap, m_l1GtMenu, m_numberPhysTriggers, m_numberTechnicalTriggers, m_physicsDaqPartition, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, eostools::move(), edm::Run::put(), and retrieveL1EventSetup().

161  {
162  //
163 
164  retrieveL1EventSetup(evSetup);
165 
166  // produce the L1GtTriggerMenuLite
167  std::unique_ptr<L1GtTriggerMenuLite> gtTriggerMenuLite(new L1GtTriggerMenuLite());
168 
169  // lite L1 trigger menu
170 
171  gtTriggerMenuLite->setGtTriggerMenuInterface(m_l1GtMenu->gtTriggerMenuInterface());
172  gtTriggerMenuLite->setGtTriggerMenuName(m_l1GtMenu->gtTriggerMenuName());
173  gtTriggerMenuLite->setGtTriggerMenuImplementation(m_l1GtMenu->gtTriggerMenuImplementation());
174 
175  gtTriggerMenuLite->setGtScaleDbKey(m_l1GtMenu->gtScaleDbKey());
176 
177  //
179  for (CItAlgo itAlgo = m_algorithmMap->begin(); itAlgo != m_algorithmMap->end(); itAlgo++) {
180  unsigned int bitNumber = (itAlgo->second).algoBitNumber();
181  algMap[bitNumber] = itAlgo->first;
182  }
183 
184  gtTriggerMenuLite->setGtAlgorithmMap(algMap);
185 
186  //
188  for (CItAlgo itAlgo = m_algorithmAliasMap->begin(); itAlgo != m_algorithmAliasMap->end(); itAlgo++) {
189  unsigned int bitNumber = (itAlgo->second).algoBitNumber();
190  algAliasMap[bitNumber] = itAlgo->first;
191  }
192 
193  gtTriggerMenuLite->setGtAlgorithmAliasMap(algAliasMap);
194 
195  //
197  for (CItAlgo itAlgo = m_technicalTriggerMap->begin(); itAlgo != m_technicalTriggerMap->end(); itAlgo++) {
198  unsigned int bitNumber = (itAlgo->second).algoBitNumber();
199  techMap[bitNumber] = itAlgo->first;
200  }
201 
202  gtTriggerMenuLite->setGtTechnicalTriggerMap(techMap);
203 
204  // trigger masks
205  std::vector<unsigned int> triggerMaskAlgoTrig(m_numberPhysTriggers, 0);
206  int iBit = -1;
207 
208  for (std::vector<unsigned int>::const_iterator itBit = m_triggerMaskAlgoTrig->begin();
209  itBit != m_triggerMaskAlgoTrig->end();
210  itBit++) {
211  iBit++;
212  triggerMaskAlgoTrig[iBit] = (*itBit) & (1 << m_physicsDaqPartition);
213  }
214  gtTriggerMenuLite->setGtTriggerMaskAlgoTrig(triggerMaskAlgoTrig);
215 
216  //
217  std::vector<unsigned int> triggerMaskTechTrig(m_numberTechnicalTriggers, 0);
218  iBit = -1;
219 
220  for (std::vector<unsigned int>::const_iterator itBit = m_triggerMaskTechTrig->begin();
221  itBit != m_triggerMaskTechTrig->end();
222  itBit++) {
223  iBit++;
224  triggerMaskTechTrig[iBit] = (*itBit) & (1 << m_physicsDaqPartition);
225  }
226  gtTriggerMenuLite->setGtTriggerMaskTechTrig(triggerMaskTechTrig);
227 
228  //
229  gtTriggerMenuLite->setGtPrescaleFactorsAlgoTrig(*m_prescaleFactorsAlgoTrig);
230  gtTriggerMenuLite->setGtPrescaleFactorsTechTrig(*m_prescaleFactorsTechTrig);
231 
232  // print menu, trigger masks and prescale factors
233  if (edm::isDebugEnabled()) {
234  LogDebug("L1GtTriggerMenuLiteProducer") << *gtTriggerMenuLite;
235  }
236 
237  // put records into event
238  iRun.put(std::move(gtTriggerMenuLite));
239 }
bool isDebugEnabled()
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
unsigned int m_physicsDaqPartition
index of physics DAQ partition
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
unsigned int m_numberPhysTriggers
number of physics triggers
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
const std::string & gtTriggerMenuName() const
std::map< unsigned int, std::string > L1TriggerMap
map containing the physics algorithms or the technical triggers
const std::string & gtScaleDbKey() const
menu associated scale key
void retrieveL1EventSetup(const edm::EventSetup &)
unsigned int m_numberTechnicalTriggers
number of technical triggers
const std::vector< unsigned int > * m_triggerMaskTechTrig
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
const std::string & gtTriggerMenuImplementation() const
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
void put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Run.h:109
def move(src, dest)
Definition: eostools.py:511
#define LogDebug(id)

◆ endJob()

void L1GtTriggerMenuLiteProducer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 244 of file L1GtTriggerMenuLiteProducer.cc.

244  {
245  // empty now
246 }

◆ produce()

void L1GtTriggerMenuLiteProducer::produce ( edm::Event iEvent,
const edm::EventSetup evSetup 
)
finalprivatevirtual

Implements edm::one::EDProducerBase.

Definition at line 241 of file L1GtTriggerMenuLiteProducer.cc.

241 {}

◆ retrieveL1EventSetup()

void L1GtTriggerMenuLiteProducer::retrieveL1EventSetup ( const edm::EventSetup evSetup)
private

retrieve all the relevant L1 trigger event setup records and cache them to improve the speed

Definition at line 67 of file L1GtTriggerMenuLiteProducer.cc.

References edm::EventSetup::get(), edm::EventSetup::getHandle(), L1GtTriggerMenu::gtAlgorithmAliasMap(), L1GtTriggerMenu::gtAlgorithmMap(), L1GtStableParameters::gtNumberPhysTriggers(), L1GtStableParameters::gtNumberTechnicalTriggers(), L1GtPrescaleFactors::gtPrescaleFactors(), L1GtTriggerMenu::gtTechnicalTriggerMap(), L1GtTriggerMask::gtTriggerMask(), m_algorithmAliasMap, m_algorithmMap, m_l1GtMenu, m_l1GtMenuCacheID, m_l1GtMenuToken, m_l1GtPfAlgo, m_l1GtPfAlgoCacheID, m_l1GtPfAlgoToken, m_l1GtPfTech, m_l1GtPfTechCacheID, m_l1GtPfTechToken, m_l1GtStablePar, m_l1GtStableParamToken, m_l1GtStableParCacheID, m_l1GtTmAlgo, m_l1GtTmAlgoCacheID, m_l1GtTmAlgoToken, m_l1GtTmTech, m_l1GtTmTechCacheID, m_l1GtTmTechToken, m_numberPhysTriggers, m_numberTechnicalTriggers, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, and edm::ESHandle< T >::product().

Referenced by beginRunProduce().

67  {
68  // get / update the stable parameters from the EventSetup
69  // local cache & check on cacheIdentifier
70 
71  unsigned long long l1GtStableParCacheID = evSetup.get<L1GtStableParametersRcd>().cacheIdentifier();
72 
73  if (m_l1GtStableParCacheID != l1GtStableParCacheID) {
75  m_l1GtStablePar = l1GtStablePar.product();
76 
77  // number of physics triggers
79 
80  // number of technical triggers
82 
83  //
84  m_l1GtStableParCacheID = l1GtStableParCacheID;
85  }
86 
87  // get / update the prescale factors from the EventSetup
88  // local cache & check on cacheIdentifier
89 
90  unsigned long long l1GtPfAlgoCacheID = evSetup.get<L1GtPrescaleFactorsAlgoTrigRcd>().cacheIdentifier();
91 
92  if (m_l1GtPfAlgoCacheID != l1GtPfAlgoCacheID) {
94  m_l1GtPfAlgo = l1GtPfAlgo.product();
95 
97 
98  m_l1GtPfAlgoCacheID = l1GtPfAlgoCacheID;
99  }
100 
101  unsigned long long l1GtPfTechCacheID = evSetup.get<L1GtPrescaleFactorsTechTrigRcd>().cacheIdentifier();
102 
103  if (m_l1GtPfTechCacheID != l1GtPfTechCacheID) {
105  m_l1GtPfTech = l1GtPfTech.product();
106 
108 
109  m_l1GtPfTechCacheID = l1GtPfTechCacheID;
110  }
111 
112  // get / update the trigger mask from the EventSetup
113  // local cache & check on cacheIdentifier
114 
115  unsigned long long l1GtTmAlgoCacheID = evSetup.get<L1GtTriggerMaskAlgoTrigRcd>().cacheIdentifier();
116 
117  if (m_l1GtTmAlgoCacheID != l1GtTmAlgoCacheID) {
119  m_l1GtTmAlgo = l1GtTmAlgo.product();
120 
122 
123  m_l1GtTmAlgoCacheID = l1GtTmAlgoCacheID;
124  }
125 
126  unsigned long long l1GtTmTechCacheID = evSetup.get<L1GtTriggerMaskTechTrigRcd>().cacheIdentifier();
127 
128  if (m_l1GtTmTechCacheID != l1GtTmTechCacheID) {
130  m_l1GtTmTech = l1GtTmTech.product();
131 
133 
134  m_l1GtTmTechCacheID = l1GtTmTechCacheID;
135  }
136 
137  // get / update the trigger menu from the EventSetup
138  // local cache & check on cacheIdentifier
139 
140  unsigned long long l1GtMenuCacheID = evSetup.get<L1GtTriggerMenuRcd>().cacheIdentifier();
141 
142  if (m_l1GtMenuCacheID != l1GtMenuCacheID) {
144  m_l1GtMenu = l1GtMenu.product();
145 
148 
150 
151  m_l1GtMenuCacheID = l1GtMenuCacheID;
152  }
153 }
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
const std::vector< unsigned int > & gtTriggerMask() const
get the trigger mask
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd > m_l1GtTmAlgoToken
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
const L1GtPrescaleFactors * m_l1GtPfTech
const edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd > m_l1GtStableParamToken
EventSetup Tokens.
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
unsigned int m_numberPhysTriggers
number of physics triggers
const std::vector< std::vector< int > > & gtPrescaleFactors() const
get the prescale factors by reference
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > m_l1GtPfAlgoToken
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd > m_l1GtTmTechToken
unsigned int m_numberTechnicalTriggers
number of technical triggers
T const * product() const
Definition: ESHandle.h:86
const std::vector< unsigned int > * m_triggerMaskTechTrig
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd > m_l1GtPfTechToken
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_l1GtMenuToken
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
T get() const
Definition: EventSetup.h:82
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
const L1GtStableParameters * m_l1GtStablePar
cached stuff
unsigned int gtNumberTechnicalTriggers() const
get / set the number of technical triggers
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
unsigned int gtNumberPhysTriggers() const
get / set the number of physics trigger algorithms

Member Data Documentation

◆ m_algorithmAliasMap

const AlgorithmMap* L1GtTriggerMenuLiteProducer::m_algorithmAliasMap
private

Definition at line 91 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_algorithmMap

const AlgorithmMap* L1GtTriggerMenuLiteProducer::m_algorithmMap
private

Definition at line 90 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_l1GtMenu

const L1GtTriggerMenu* L1GtTriggerMenuLiteProducer::m_l1GtMenu
private

Definition at line 87 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_l1GtMenuCacheID

unsigned long long L1GtTriggerMenuLiteProducer::m_l1GtMenuCacheID
private

Definition at line 88 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtMenuToken

const edm::ESGetToken<L1GtTriggerMenu, L1GtTriggerMenuRcd> L1GtTriggerMenuLiteProducer::m_l1GtMenuToken
private

Definition at line 120 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfAlgo

const L1GtPrescaleFactors* L1GtTriggerMenuLiteProducer::m_l1GtPfAlgo
private

prescale factors

Definition at line 105 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfAlgoCacheID

unsigned long long L1GtTriggerMenuLiteProducer::m_l1GtPfAlgoCacheID
private

Definition at line 106 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfAlgoToken

const edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd> L1GtTriggerMenuLiteProducer::m_l1GtPfAlgoToken
private

Definition at line 116 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfTech

const L1GtPrescaleFactors* L1GtTriggerMenuLiteProducer::m_l1GtPfTech
private

Definition at line 108 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfTechCacheID

unsigned long long L1GtTriggerMenuLiteProducer::m_l1GtPfTechCacheID
private

Definition at line 109 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfTechToken

const edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd> L1GtTriggerMenuLiteProducer::m_l1GtPfTechToken
private

Definition at line 117 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtStablePar

const L1GtStableParameters* L1GtTriggerMenuLiteProducer::m_l1GtStablePar
private

cached stuff

stable parameters

Definition at line 77 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtStableParamToken

const edm::ESGetToken<L1GtStableParameters, L1GtStableParametersRcd> L1GtTriggerMenuLiteProducer::m_l1GtStableParamToken
private

EventSetup Tokens.

Definition at line 115 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtStableParCacheID

unsigned long long L1GtTriggerMenuLiteProducer::m_l1GtStableParCacheID
private

Definition at line 78 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmAlgo

const L1GtTriggerMask* L1GtTriggerMenuLiteProducer::m_l1GtTmAlgo
private

trigger masks

Definition at line 95 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmAlgoCacheID

unsigned long long L1GtTriggerMenuLiteProducer::m_l1GtTmAlgoCacheID
private

Definition at line 96 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmAlgoToken

const edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd> L1GtTriggerMenuLiteProducer::m_l1GtTmAlgoToken
private

Definition at line 118 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmTech

const L1GtTriggerMask* L1GtTriggerMenuLiteProducer::m_l1GtTmTech
private

Definition at line 98 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmTechCacheID

unsigned long long L1GtTriggerMenuLiteProducer::m_l1GtTmTechCacheID
private

Definition at line 99 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmTechToken

const edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd> L1GtTriggerMenuLiteProducer::m_l1GtTmTechToken
private

Definition at line 119 of file L1GtTriggerMenuLiteProducer.h.

Referenced by retrieveL1EventSetup().

◆ m_numberPhysTriggers

unsigned int L1GtTriggerMenuLiteProducer::m_numberPhysTriggers
private

number of physics triggers

Definition at line 81 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_numberTechnicalTriggers

unsigned int L1GtTriggerMenuLiteProducer::m_numberTechnicalTriggers
private

number of technical triggers

Definition at line 84 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_physicsDaqPartition

unsigned int L1GtTriggerMenuLiteProducer::m_physicsDaqPartition
private

index of physics DAQ partition

Definition at line 124 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce().

◆ m_prescaleFactorsAlgoTrig

const std::vector<std::vector<int> >* L1GtTriggerMenuLiteProducer::m_prescaleFactorsAlgoTrig
private

Definition at line 111 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_prescaleFactorsTechTrig

const std::vector<std::vector<int> >* L1GtTriggerMenuLiteProducer::m_prescaleFactorsTechTrig
private

Definition at line 112 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_technicalTriggerMap

const AlgorithmMap* L1GtTriggerMenuLiteProducer::m_technicalTriggerMap
private

Definition at line 92 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_triggerMaskAlgoTrig

const std::vector<unsigned int>* L1GtTriggerMenuLiteProducer::m_triggerMaskAlgoTrig
private

Definition at line 101 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().

◆ m_triggerMaskTechTrig

const std::vector<unsigned int>* L1GtTriggerMenuLiteProducer::m_triggerMaskTechTrig
private

Definition at line 102 of file L1GtTriggerMenuLiteProducer.h.

Referenced by beginRunProduce(), and retrieveL1EventSetup().