CMS 3D CMS Logo

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

#include <L1TMuonOverlapPhase2TrackProducer.h>

Inheritance diagram for L1TMuonOverlapPhase2TrackProducer:
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
 
 L1TMuonOverlapPhase2TrackProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~L1TMuonOverlapPhase2TrackProducer () override=default
 
- 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 noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~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
 
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

edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagneticFieldEsToken
 needed by tools/CandidateSimMuonMatcher.h More...
 
MuonGeometryTokens muonGeometryTokens
 
MuStubsInputTokens muStubsInputTokens
 
OmtfEmulation omtfEmulation
 
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcdomtfParamsEsToken
 
edm::ESGetToken< Propagator, TrackingComponentsRecordpropagatorEsToken
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
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 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 10 of file L1TMuonOverlapPhase2TrackProducer.h.

Constructor & Destructor Documentation

◆ L1TMuonOverlapPhase2TrackProducer()

L1TMuonOverlapPhase2TrackProducer::L1TMuonOverlapPhase2TrackProducer ( const edm::ParameterSet edmParameterSet)

Definition at line 20 of file L1TMuonOverlapPhase2TrackProducer.cc.

References edm::ParameterSet::getParameter().

22  {consumes<L1MuDTChambPhContainer>(edmParameterSet.getParameter<edm::InputTag>("srcDTPh")),
23  consumes<L1MuDTChambThContainer>(edmParameterSet.getParameter<edm::InputTag>("srcDTTh")),
24  consumes<CSCCorrelatedLCTDigiCollection>(edmParameterSet.getParameter<edm::InputTag>("srcCSC")),
25  consumes<RPCDigiCollection>(edmParameterSet.getParameter<edm::InputTag>("srcRPC"))}),
26  omtfParamsEsToken(esConsumes<L1TMuonOverlapParams, L1TMuonOverlapParamsRcd, edm::Transition::BeginRun>()),
27  muonGeometryTokens({esConsumes<RPCGeometry, MuonGeometryRecord, edm::Transition::BeginRun>(),
28  esConsumes<CSCGeometry, MuonGeometryRecord, edm::Transition::BeginRun>(),
29  esConsumes<DTGeometry, MuonGeometryRecord, edm::Transition::BeginRun>()}),
30  //needed for pattern generation and RootDataDumper
31  magneticFieldEsToken(esConsumes<MagneticField, IdealMagneticFieldRecord, edm::Transition::BeginRun>()),
32  propagatorEsToken(esConsumes<Propagator, TrackingComponentsRecord, edm::Transition::BeginRun>(
33  edm::ESInputTag("", "SteppingHelixPropagatorAlong"))),
34  omtfEmulation(edmParameterSet,
36  consumes<L1Phase2MuDTPhContainer>(edmParameterSet.getParameter<edm::InputTag>("srcDTPhPhase2"))) {
37  produces<l1t::RegionalMuonCandBxCollection>("OMTF");
38 
39  //it is needed for pattern generation and RootDataDumper
40  if (edmParameterSet.exists("simTracksTag"))
41  mayConsume<edm::SimTrackContainer>(edmParameterSet.getParameter<edm::InputTag>("simTracksTag"));
42  if (edmParameterSet.exists("simVertexesTag"))
43  mayConsume<edm::SimVertexContainer>(edmParameterSet.getParameter<edm::InputTag>("simVertexesTag"));
44 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
bool exists(std::string const &parameterName) const
checks if a parameter exists
edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorEsToken
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > omtfParamsEsToken
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldEsToken
needed by tools/CandidateSimMuonMatcher.h

◆ ~L1TMuonOverlapPhase2TrackProducer()

L1TMuonOverlapPhase2TrackProducer::~L1TMuonOverlapPhase2TrackProducer ( )
overridedefault

Member Function Documentation

◆ beginJob()

void L1TMuonOverlapPhase2TrackProducer::beginJob ( void  )
overridevirtual

◆ beginRun()

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

Definition at line 54 of file L1TMuonOverlapPhase2TrackProducer.cc.

References OMTFReconstruction::beginRun(), magneticFieldEsToken, muonGeometryTokens, omtfEmulation, omtfParamsEsToken, propagatorEsToken, and writedatasetfile::run.

54  {
56 }
edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorEsToken
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > omtfParamsEsToken
void beginRun(edm::Run const &, edm::EventSetup const &)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldEsToken
needed by tools/CandidateSimMuonMatcher.h

◆ endJob()

void L1TMuonOverlapPhase2TrackProducer::endJob ( void  )
overridevirtual

◆ endRun()

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

Definition at line 22 of file L1TMuonOverlapPhase2TrackProducer.h.

22 {};

◆ produce()

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

Implements edm::one::EDProducerBase.

Definition at line 59 of file L1TMuonOverlapPhase2TrackProducer.cc.

References HLT_2024v14_cff::candidates, iEvent, eostools::move(), omtfEmulation, OMTFReconstruction::reconstruct(), and str.

59  {
60  std::ostringstream str;
61 
62  std::unique_ptr<l1t::RegionalMuonCandBxCollection> candidates = omtfEmulation.reconstruct(iEvent, evSetup);
63 
64  iEvent.put(std::move(candidates), "OMTF");
65 }
int iEvent
Definition: GenABIO.cc:224
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

◆ magneticFieldEsToken

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

needed by tools/CandidateSimMuonMatcher.h

Definition at line 35 of file L1TMuonOverlapPhase2TrackProducer.h.

Referenced by beginRun().

◆ muonGeometryTokens

MuonGeometryTokens L1TMuonOverlapPhase2TrackProducer::muonGeometryTokens
private

Definition at line 32 of file L1TMuonOverlapPhase2TrackProducer.h.

Referenced by beginRun().

◆ muStubsInputTokens

MuStubsInputTokens L1TMuonOverlapPhase2TrackProducer::muStubsInputTokens
private

Definition at line 27 of file L1TMuonOverlapPhase2TrackProducer.h.

◆ omtfEmulation

OmtfEmulation L1TMuonOverlapPhase2TrackProducer::omtfEmulation
private

Definition at line 38 of file L1TMuonOverlapPhase2TrackProducer.h.

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

◆ omtfParamsEsToken

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

Definition at line 29 of file L1TMuonOverlapPhase2TrackProducer.h.

Referenced by beginRun().

◆ propagatorEsToken

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

Definition at line 36 of file L1TMuonOverlapPhase2TrackProducer.h.

Referenced by beginRun().