CMS 3D CMS Logo

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

#include <L1MuonOverlapPhase1ParamsDBProducer.h>

Inheritance diagram for L1MuonOverlapPhase1ParamsDBProducer:
edm::one::EDAnalyzer< edm::one::WatchRuns > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &es) override
 
void beginJob () override
 
void beginRun (const edm::Run &, const edm::EventSetup &es) override
 
void endJob () override
 
void endRun (edm::Run const &run, edm::EventSetup const &iSetup) override
 
 L1MuonOverlapPhase1ParamsDBProducer (const edm::ParameterSet &cfg)
 
 ~L1MuonOverlapPhase1ParamsDBProducer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~EDAnalyzerBase () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

std::unique_ptr< L1TMuonOverlapParamsomtfParams
 
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcdomtfParamsEsToken
 
std::unique_ptr< L1TMuonOverlapParamsomtfPatterns
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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 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

Definition at line 16 of file L1MuonOverlapPhase1ParamsDBProducer.h.

Constructor & Destructor Documentation

◆ L1MuonOverlapPhase1ParamsDBProducer()

L1MuonOverlapPhase1ParamsDBProducer::L1MuonOverlapPhase1ParamsDBProducer ( const edm::ParameterSet cfg)

Definition at line 10 of file L1MuonOverlapPhase1ParamsDBProducer.cc.

11  : omtfParamsEsToken(esConsumes<L1TMuonOverlapParams, L1TMuonOverlapParamsRcd, edm::Transition::BeginRun>()) {
12  edm::LogVerbatim("L1MuonOverlapParamsDBProducer") << " L1MuonOverlapPhase1ParamsDBProducer() " << std::endl;
13 }
Log< level::Info, true > LogVerbatim
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > omtfParamsEsToken

◆ ~L1MuonOverlapPhase1ParamsDBProducer()

L1MuonOverlapPhase1ParamsDBProducer::~L1MuonOverlapPhase1ParamsDBProducer ( )
inlineoverride

Definition at line 19 of file L1MuonOverlapPhase1ParamsDBProducer.h.

19 {}

Member Function Documentation

◆ analyze()

void L1MuonOverlapPhase1ParamsDBProducer::analyze ( const edm::Event ev,
const edm::EventSetup es 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 28 of file L1MuonOverlapPhase1ParamsDBProducer.cc.

References cond::service::PoolDBOutputService::currentTime(), edm::Service< T >::isAvailable(), omtfParams, align_cfg::recordName, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOneIOV().

28  {
29  edm::LogVerbatim("L1MuonOverlapParamsDBProducer") << " analyze() line " << __LINE__ << std::endl;
30  std::string recordName = "L1TMuonOverlapParamsRcd";
32  if (poolDbService.isAvailable()) {
33  poolDbService->writeOneIOV(*omtfParams, poolDbService->currentTime(), recordName);
34  }
35  edm::LogVerbatim("L1MuonOverlapParamsDBProducer") << " analyze() line " << __LINE__ << std::endl;
36 }
Log< level::Info, true > LogVerbatim
std::unique_ptr< L1TMuonOverlapParams > omtfParams
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
bool isAvailable() const
Definition: Service.h:40

◆ beginJob()

void L1MuonOverlapPhase1ParamsDBProducer::beginJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 20 of file L1MuonOverlapPhase1ParamsDBProducer.h.

20 {}

◆ beginRun()

void L1MuonOverlapPhase1ParamsDBProducer::beginRun ( const edm::Run run,
const edm::EventSetup es 
)
override

Definition at line 16 of file L1MuonOverlapPhase1ParamsDBProducer.cc.

References edm::EventSetup::getData(), omtfParams, and omtfParamsEsToken.

16  {
17  omtfParams = std::make_unique<L1TMuonOverlapParams>(iSetup.getData(omtfParamsEsToken));
18 
19  if (!omtfParams) {
20  edm::LogError("L1MuonOverlapParamsDBProducer") << "Could not retrieve parameters from Event Setup" << std::endl;
21  }
22 
23  edm::LogVerbatim("L1MuonOverlapParamsDBProducer") << " beginRun() " << std::endl;
24 }
Log< level::Info, true > LogVerbatim
std::unique_ptr< L1TMuonOverlapParams > omtfParams
Log< level::Error, false > LogError
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > omtfParamsEsToken

◆ endJob()

void L1MuonOverlapPhase1ParamsDBProducer::endJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 24 of file L1MuonOverlapPhase1ParamsDBProducer.h.

24 {}

◆ endRun()

void L1MuonOverlapPhase1ParamsDBProducer::endRun ( edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
inlineoverride

Definition at line 22 of file L1MuonOverlapPhase1ParamsDBProducer.h.

22 {}

Member Data Documentation

◆ omtfParams

std::unique_ptr<L1TMuonOverlapParams> L1MuonOverlapPhase1ParamsDBProducer::omtfParams
private

Definition at line 29 of file L1MuonOverlapPhase1ParamsDBProducer.h.

Referenced by analyze(), and beginRun().

◆ omtfParamsEsToken

edm::ESGetToken<L1TMuonOverlapParams, L1TMuonOverlapParamsRcd> L1MuonOverlapPhase1ParamsDBProducer::omtfParamsEsToken
private

Definition at line 27 of file L1MuonOverlapPhase1ParamsDBProducer.h.

Referenced by beginRun().

◆ omtfPatterns

std::unique_ptr<L1TMuonOverlapParams> L1MuonOverlapPhase1ParamsDBProducer::omtfPatterns
private

Definition at line 29 of file L1MuonOverlapPhase1ParamsDBProducer.h.