CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
L1TMuonOverlapPhase1TrackProducer Class Reference

#include <L1TMuonOverlapPhase1TrackProducer.h>

Inheritance diagram for L1TMuonOverlapPhase1TrackProducer:
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 &run, edm::EventSetup const &iSetup) override
 
 L1TMuonOverlapPhase1TrackProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~L1TMuonOverlapPhase1TrackProducer () 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
 
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
 
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 Attributes

edm::ESGetToken< MagneticField,
IdealMagneticFieldRecord
magneticFieldEsToken
 needed by tools/CandidateSimMuonMatcher.h More...
 
MuonGeometryTokens muonGeometryTokens
 
MuStubsInputTokens muStubsInputTokens
 
edm::ESGetToken
< L1TMuonOverlapParams,
L1TMuonOverlapParamsRcd
omtfParamsEsToken
 
OMTFReconstruction omtfReconstruction
 
edm::ESGetToken< Propagator,
TrackingComponentsRecord
propagatorEsToken
 

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)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (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 () noexcept
 
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...
 
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

The OMTF emulator cannot be run in multiple threads, because GoldenPatternBase keeps GoldenPatternResult's which are then used in the GoldenPatternBase::finalise called at the end of OMTFProcessor<GoldenPatternType>::processInput. Also patterns generation relies on updating the statistics for the patterns This can be fixed, but requires some work.

Definition at line 26 of file L1TMuonOverlapPhase1TrackProducer.h.

Constructor & Destructor Documentation

L1TMuonOverlapPhase1TrackProducer::L1TMuonOverlapPhase1TrackProducer ( const edm::ParameterSet edmParameterSet)

Definition at line 24 of file L1TMuonOverlapPhase1TrackProducer.cc.

References edm::ParameterSet::getParameter().

26  {consumes<L1MuDTChambPhContainer>(edmParameterSet.getParameter<edm::InputTag>("srcDTPh")),
27  consumes<L1MuDTChambThContainer>(edmParameterSet.getParameter<edm::InputTag>("srcDTTh")),
28  consumes<CSCCorrelatedLCTDigiCollection>(edmParameterSet.getParameter<edm::InputTag>("srcCSC")),
29  consumes<RPCDigiCollection>(edmParameterSet.getParameter<edm::InputTag>("srcRPC"))}),
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1TMuonOverlapPhase1TrackProducer::~L1TMuonOverlapPhase1TrackProducer ( )
override

Definition at line 67 of file L1TMuonOverlapPhase1TrackProducer.cc.

67 {}

Member Function Documentation

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

Definition at line 76 of file L1TMuonOverlapPhase1TrackProducer.cc.

References OMTFReconstruction::beginRun(), magneticFieldEsToken, muonGeometryTokens, omtfParamsEsToken, omtfReconstruction, and propagatorEsToken.

76  {
79 }
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldEsToken
needed by tools/CandidateSimMuonMatcher.h
edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorEsToken
void beginRun(edm::Run const &, edm::EventSetup const &)
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > omtfParamsEsToken
void L1TMuonOverlapPhase1TrackProducer::endJob ( void  )
overridevirtual
void L1TMuonOverlapPhase1TrackProducer::endRun ( edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
inlineoverride

Definition at line 38 of file L1TMuonOverlapPhase1TrackProducer.h.

38 {};
void L1TMuonOverlapPhase1TrackProducer::produce ( edm::Event iEvent,
const edm::EventSetup evSetup 
)
overridevirtual

Implements edm::one::EDProducerBase.

Definition at line 82 of file L1TMuonOverlapPhase1TrackProducer.cc.

References HLT_FULL_cff::candidates, eostools::move(), omtfReconstruction, edm::Event::put(), OMTFReconstruction::reconstruct(), and str.

82  {
83  std::ostringstream str;
84 
85  std::unique_ptr<l1t::RegionalMuonCandBxCollection> candidates = omtfReconstruction.reconstruct(iEvent, evSetup);
86 
87  iEvent.put(std::move(candidates), "OMTF");
88 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
std::unique_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)
def move
Definition: eostools.py:511
#define str(s)

Member Data Documentation

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> L1TMuonOverlapPhase1TrackProducer::magneticFieldEsToken
private

needed by tools/CandidateSimMuonMatcher.h

Definition at line 53 of file L1TMuonOverlapPhase1TrackProducer.h.

Referenced by beginRun().

MuonGeometryTokens L1TMuonOverlapPhase1TrackProducer::muonGeometryTokens
private

Definition at line 50 of file L1TMuonOverlapPhase1TrackProducer.h.

Referenced by beginRun().

MuStubsInputTokens L1TMuonOverlapPhase1TrackProducer::muStubsInputTokens
private

Definition at line 45 of file L1TMuonOverlapPhase1TrackProducer.h.

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

Definition at line 47 of file L1TMuonOverlapPhase1TrackProducer.h.

Referenced by beginRun().

OMTFReconstruction L1TMuonOverlapPhase1TrackProducer::omtfReconstruction
private

Definition at line 56 of file L1TMuonOverlapPhase1TrackProducer.h.

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

edm::ESGetToken<Propagator, TrackingComponentsRecord> L1TMuonOverlapPhase1TrackProducer::propagatorEsToken
private

Definition at line 54 of file L1TMuonOverlapPhase1TrackProducer.h.

Referenced by beginRun().