CMS 3D CMS Logo

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

#include <L1TMuonOverlapTrackProducer.h>

Inheritance diagram for L1TMuonOverlapTrackProducer:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

virtual void beginJob ()
 
virtual void beginRun (edm::Run const &run, edm::EventSetup const &iSetup)
 
virtual void endJob ()
 
 L1TMuonOverlapTrackProducer (const edm::ParameterSet &)
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 
 ~L1TMuonOverlapTrackProducer ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool dumpDetailedResultToXML
 
bool dumpResultToXML
 
edm::EDGetTokenT
< CSCCorrelatedLCTDigiCollection
inputTokenCSC
 
edm::EDGetTokenT
< L1MuDTChambPhContainer
inputTokenDTPh
 
edm::EDGetTokenT
< L1MuDTChambThContainer
inputTokenDTTh
 
edm::EDGetTokenT
< RPCDigiCollection
inputTokenRPC
 
OMTFReconstruction m_Reconstruction
 
edm::ParameterSet theConfig
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDProducer
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)
 
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 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 41 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 
24  produces<l1t::RegionalMuonCandBxCollection >("OMTF");
25 
26  inputTokenDTPh = consumes<L1MuDTChambPhContainer>(theConfig.getParameter<edm::InputTag>("srcDTPh"));
27  inputTokenDTTh = consumes<L1MuDTChambThContainer>(theConfig.getParameter<edm::InputTag>("srcDTTh"));
28  inputTokenCSC = consumes<CSCCorrelatedLCTDigiCollection>(theConfig.getParameter<edm::InputTag>("srcCSC"));
29  inputTokenRPC = consumes<RPCDigiCollection>(theConfig.getParameter<edm::InputTag>("srcRPC"));
30 
31 }
T getParameter(std::string const &) const
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDTPh
edm::EDGetTokenT< RPCDigiCollection > inputTokenRPC
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDTTh
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > inputTokenCSC
L1TMuonOverlapTrackProducer::~L1TMuonOverlapTrackProducer ( )

Definition at line 34 of file L1TMuonOverlapTrackProducer.cc.

34  {
35 }

Member Function Documentation

void L1TMuonOverlapTrackProducer::beginJob ( void  )
virtual

Reimplemented from edm::EDProducer.

Definition at line 38 of file L1TMuonOverlapTrackProducer.cc.

References OMTFReconstruction::beginJob(), and m_Reconstruction.

38  {
39 
41 
42 }
void L1TMuonOverlapTrackProducer::beginRun ( edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
virtual

Reimplemented from edm::EDProducer.

Definition at line 52 of file L1TMuonOverlapTrackProducer.cc.

References OMTFReconstruction::beginRun(), and m_Reconstruction.

52  {
53 
54  m_Reconstruction.beginRun(run, iSetup);
55 }
void beginRun(edm::Run const &run, edm::EventSetup const &iSetup)
void L1TMuonOverlapTrackProducer::endJob ( void  )
virtual

Reimplemented from edm::EDProducer.

Definition at line 45 of file L1TMuonOverlapTrackProducer.cc.

References OMTFReconstruction::endJob(), and m_Reconstruction.

45  {
46 
48 
49 }
void L1TMuonOverlapTrackProducer::produce ( edm::Event iEvent,
const edm::EventSetup evSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 58 of file L1TMuonOverlapTrackProducer.cc.

References objects.IsoTrackAnalyzer::candidates, m_Reconstruction, edm::Event::put(), and OMTFReconstruction::reconstruct().

58  {
59 
60  std::ostringstream str;
61 
62  std::auto_ptr<l1t::RegionalMuonCandBxCollection > candidates = m_Reconstruction.reconstruct(iEvent, evSetup);
63 
64  int bx = 0;
65  str<<" Number of candidates: "<<candidates->size(bx);
66  edm::LogInfo("OMTFOMTFProducer")<<str.str();
67 
68  iEvent.put(candidates, "OMTF");
69 }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
std::auto_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)

Member Data Documentation

bool L1TMuonOverlapTrackProducer::dumpDetailedResultToXML
private

Definition at line 64 of file L1TMuonOverlapTrackProducer.h.

bool L1TMuonOverlapTrackProducer::dumpResultToXML
private

Definition at line 64 of file L1TMuonOverlapTrackProducer.h.

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

Definition at line 61 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

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

Definition at line 59 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

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

Definition at line 60 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

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

Definition at line 62 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().

OMTFReconstruction L1TMuonOverlapTrackProducer::m_Reconstruction
private

Definition at line 66 of file L1TMuonOverlapTrackProducer.h.

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

edm::ParameterSet L1TMuonOverlapTrackProducer::theConfig
private

Definition at line 57 of file L1TMuonOverlapTrackProducer.h.

Referenced by L1TMuonOverlapTrackProducer().