CMS 3D CMS Logo

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

#include <L1TMuonOverlapTrackProducer.h>

Inheritance diagram for L1TMuonOverlapTrackProducer:
edm::one::EDProducer< edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginJob () override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endJob () override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
 L1TMuonOverlapTrackProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, edm::EventSetup const &) override
 
 ~L1TMuonOverlapTrackProducer () override
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns >
 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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 Attributes

bool dumpDetailedResultToXML
 
bool dumpResultToXML
 
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollectioninputTokenCSC
 
edm::EDGetTokenT< L1MuDTChambPhContainerinputTokenDTPh
 
edm::EDGetTokenT< L1MuDTChambThContainerinputTokenDTTh
 
edm::EDGetTokenT< RPCDigiCollectioninputTokenRPC
 
OMTFReconstruction m_Reconstruction
 

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<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
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)
 
template<Transition B>
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 (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 35 of file L1TMuonOverlapTrackProducer.h.

Constructor & Destructor Documentation

◆ L1TMuonOverlapTrackProducer()

L1TMuonOverlapTrackProducer::L1TMuonOverlapTrackProducer ( const edm::ParameterSet cfg)

Definition at line 19 of file L1TMuonOverlapTrackProducer.cc.

21  produces<l1t::RegionalMuonCandBxCollection>("OMTF");
22 
23  inputTokenDTPh = consumes<L1MuDTChambPhContainer>(cfg.getParameter<edm::InputTag>("srcDTPh"));
24  inputTokenDTTh = consumes<L1MuDTChambThContainer>(cfg.getParameter<edm::InputTag>("srcDTTh"));
25  inputTokenCSC = consumes<CSCCorrelatedLCTDigiCollection>(cfg.getParameter<edm::InputTag>("srcCSC"));
26  inputTokenRPC = consumes<RPCDigiCollection>(cfg.getParameter<edm::InputTag>("srcRPC"));
27 }

References looper::cfg, inputTokenCSC, inputTokenDTPh, inputTokenDTTh, and inputTokenRPC.

◆ ~L1TMuonOverlapTrackProducer()

L1TMuonOverlapTrackProducer::~L1TMuonOverlapTrackProducer ( )
override

Definition at line 30 of file L1TMuonOverlapTrackProducer.cc.

30 {}

Member Function Documentation

◆ beginJob()

void L1TMuonOverlapTrackProducer::beginJob ( void  )
overridevirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 33 of file L1TMuonOverlapTrackProducer.cc.

References OMTFReconstruction::beginJob(), and m_Reconstruction.

◆ beginRun()

void L1TMuonOverlapTrackProducer::beginRun ( edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
override

◆ endJob()

void L1TMuonOverlapTrackProducer::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 36 of file L1TMuonOverlapTrackProducer.cc.

References OMTFReconstruction::endJob(), and m_Reconstruction.

◆ endRun()

void L1TMuonOverlapTrackProducer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverride

Definition at line 46 of file L1TMuonOverlapTrackProducer.h.

46 {}

◆ produce()

void L1TMuonOverlapTrackProducer::produce ( edm::Event iEvent,
edm::EventSetup const &  evSetup 
)
overridevirtual

Implements edm::one::EDProducerBase.

Definition at line 44 of file L1TMuonOverlapTrackProducer.cc.

44  {
45  std::ostringstream str;
46 
47  std::unique_ptr<l1t::RegionalMuonCandBxCollection> candidates = m_Reconstruction.reconstruct(iEvent, evSetup);
48 
49  iEvent.put(std::move(candidates), "OMTF");
50 }

References HLT_FULL_cff::candidates, iEvent, m_Reconstruction, eostools::move(), OMTFReconstruction::reconstruct(), and str.

Member Data Documentation

◆ dumpDetailedResultToXML

bool L1TMuonOverlapTrackProducer::dumpDetailedResultToXML
private

Definition at line 56 of file L1TMuonOverlapTrackProducer.h.

◆ dumpResultToXML

bool L1TMuonOverlapTrackProducer::dumpResultToXML
private

Definition at line 56 of file L1TMuonOverlapTrackProducer.h.

◆ inputTokenCSC

edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> L1TMuonOverlapTrackProducer::inputTokenCSC
private

Definition at line 53 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

◆ inputTokenDTPh

edm::EDGetTokenT<L1MuDTChambPhContainer> L1TMuonOverlapTrackProducer::inputTokenDTPh
private

Definition at line 51 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

◆ inputTokenDTTh

edm::EDGetTokenT<L1MuDTChambThContainer> L1TMuonOverlapTrackProducer::inputTokenDTTh
private

Definition at line 52 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

◆ inputTokenRPC

edm::EDGetTokenT<RPCDigiCollection> L1TMuonOverlapTrackProducer::inputTokenRPC
private

Definition at line 54 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

◆ m_Reconstruction

OMTFReconstruction L1TMuonOverlapTrackProducer::m_Reconstruction
private

Definition at line 58 of file L1TMuonOverlapTrackProducer.h.

Referenced by beginJob(), beginRun(), endJob(), and produce().

OMTFReconstruction::reconstruct
std::unique_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)
Definition: OMTFReconstruction.cc:95
L1TMuonOverlapTrackProducer::m_Reconstruction
OMTFReconstruction m_Reconstruction
Definition: L1TMuonOverlapTrackProducer.h:58
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
L1TMuonOverlapTrackProducer::inputTokenDTPh
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDTPh
Definition: L1TMuonOverlapTrackProducer.h:51
L1TMuonOverlapTrackProducer::inputTokenDTTh
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDTTh
Definition: L1TMuonOverlapTrackProducer.h:52
str
#define str(s)
Definition: TestProcessor.cc:53
OMTFReconstruction::beginJob
void beginJob()
Definition: OMTFReconstruction.cc:49
OMTFReconstruction::endJob
void endJob()
Definition: OMTFReconstruction.cc:55
iEvent
int iEvent
Definition: GenABIO.cc:224
looper.cfg
cfg
Definition: looper.py:296
L1TMuonOverlapTrackProducer::inputTokenCSC
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > inputTokenCSC
Definition: L1TMuonOverlapTrackProducer.h:53
eostools.move
def move(src, dest)
Definition: eostools.py:511
writedatasetfile.run
run
Definition: writedatasetfile.py:27
HLT_FULL_cff.candidates
candidates
Definition: HLT_FULL_cff.py:55017
OMTFReconstruction::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: OMTFReconstruction.cc:63
edm::InputTag
Definition: InputTag.h:15
L1TMuonOverlapTrackProducer::inputTokenRPC
edm::EDGetTokenT< RPCDigiCollection > inputTokenRPC
Definition: L1TMuonOverlapTrackProducer.h:54