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 &run, edm::EventSetup const &iSetup) override
 
void endJob () override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
 L1TMuonOverlapTrackProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~L1TMuonOverlapTrackProducer () override
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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
 
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)
 
 ~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
 
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::vector< ModuleDescription const * > &modules, 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
 
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
 
edm::ParameterSet theConfig
 

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
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
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<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)
 

Detailed Description

Definition at line 36 of file L1TMuonOverlapTrackProducer.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file L1TMuonOverlapTrackProducer.cc.

References edm::ParameterSet::getParameter(), inputTokenCSC, inputTokenDTPh, inputTokenDTTh, inputTokenRPC, and theConfig.

22  : theConfig(cfg), m_Reconstruction(cfg) {
23  produces<l1t::RegionalMuonCandBxCollection>("OMTF");
24 
25  inputTokenDTPh = consumes<L1MuDTChambPhContainer>(theConfig.getParameter<edm::InputTag>("srcDTPh"));
26  inputTokenDTTh = consumes<L1MuDTChambThContainer>(theConfig.getParameter<edm::InputTag>("srcDTTh"));
27  inputTokenCSC = consumes<CSCCorrelatedLCTDigiCollection>(theConfig.getParameter<edm::InputTag>("srcCSC"));
28  inputTokenRPC = consumes<RPCDigiCollection>(theConfig.getParameter<edm::InputTag>("srcRPC"));
29 }
T getParameter(std::string const &) const
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDTPh
edm::EDGetTokenT< RPCDigiCollection > inputTokenRPC
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDTTh
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > inputTokenCSC
L1TMuonOverlapTrackProducer::~L1TMuonOverlapTrackProducer ( )
override

Definition at line 32 of file L1TMuonOverlapTrackProducer.cc.

32 {}

Member Function Documentation

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

Definition at line 41 of file L1TMuonOverlapTrackProducer.cc.

References OMTFReconstruction::beginRun(), and m_Reconstruction.

41  {
42  m_Reconstruction.beginRun(run, iSetup);
43 }
void beginRun(edm::Run const &run, edm::EventSetup const &iSetup)
void L1TMuonOverlapTrackProducer::endJob ( void  )
overridevirtual
void L1TMuonOverlapTrackProducer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverride

Definition at line 47 of file L1TMuonOverlapTrackProducer.h.

47 {}
void L1TMuonOverlapTrackProducer::produce ( edm::Event iEvent,
const edm::EventSetup evSetup 
)
override

Definition at line 46 of file L1TMuonOverlapTrackProducer.cc.

References HLT_2018_cff::candidates, DEFINE_FWK_MODULE, m_Reconstruction, eostools::move(), edm::Event::put(), OMTFReconstruction::reconstruct(), and str.

46  {
47  std::ostringstream str;
48 
49  std::unique_ptr<l1t::RegionalMuonCandBxCollection> candidates = m_Reconstruction.reconstruct(iEvent, evSetup);
50 
51  iEvent.put(std::move(candidates), "OMTF");
52 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:131
std::unique_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)
#define str(s)
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

bool L1TMuonOverlapTrackProducer::dumpDetailedResultToXML
private

Definition at line 59 of file L1TMuonOverlapTrackProducer.h.

bool L1TMuonOverlapTrackProducer::dumpResultToXML
private

Definition at line 59 of file L1TMuonOverlapTrackProducer.h.

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

Definition at line 56 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

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

Definition at line 54 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

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

Definition at line 55 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

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

Definition at line 57 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

OMTFReconstruction L1TMuonOverlapTrackProducer::m_Reconstruction
private

Definition at line 61 of file L1TMuonOverlapTrackProducer.h.

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

edm::ParameterSet L1TMuonOverlapTrackProducer::theConfig
private

Definition at line 52 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().