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
CSCTFCandidateProducer Class Reference

#include <CSCTFCandidateProducer.h>

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

Public Member Functions

 CSCTFCandidateProducer (const edm::ParameterSet &)
 
void produce (edm::Event &e, const edm::EventSetup &c)
 
virtual ~CSCTFCandidateProducer ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 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
 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 (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

edm::InputTag input_module
 
CSCTFCandidateBuildermy_builder
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- 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::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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 12 of file CSCTFCandidateProducer.h.

Constructor & Destructor Documentation

CSCTFCandidateProducer::CSCTFCandidateProducer ( const edm::ParameterSet pset)

Definition at line 11 of file CSCTFCandidateProducer.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), input_module, and my_builder.

12 {
13  edm::ParameterSet mu_sorter_pset = pset.getParameter<edm::ParameterSet>("MuonSorter");
14  my_builder = new CSCTFCandidateBuilder(mu_sorter_pset);
15  input_module = pset.getUntrackedParameter<edm::InputTag>("CSCTrackProducer");
16  produces<std::vector<L1MuRegionalCand> >("CSC");
17  consumes<L1CSCTrackCollection>(input_module);
18 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
CSCTFCandidateBuilder * my_builder
CSCTFCandidateProducer::~CSCTFCandidateProducer ( )
virtual

Definition at line 20 of file CSCTFCandidateProducer.cc.

References my_builder, and NULL.

21 {
22  delete my_builder;
23  my_builder = NULL;
24 }
#define NULL
Definition: scimark2.h:8
CSCTFCandidateBuilder * my_builder

Member Function Documentation

void CSCTFCandidateProducer::produce ( edm::Event e,
const edm::EventSetup c 
)
virtual

Implements edm::EDProducer.

Definition at line 26 of file CSCTFCandidateProducer.cc.

References CSCTFCandidateBuilder::buildCandidates(), edm::Event::getByLabel(), input_module, edm::InputTag::instance(), edm::InputTag::label(), my_builder, edm::Handle< T >::product(), edm::Event::put(), and testEve_cfg::tracks.

27 {
29  std::auto_ptr<std::vector<L1MuRegionalCand> > cand_product(new std::vector<L1MuRegionalCand>);
30 
32 
33  my_builder->buildCandidates(tracks.product(), cand_product.get());
34 
35  e.put(cand_product,"CSC");
36 }
CSCTFCandidateBuilder * my_builder
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
void buildCandidates(const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
tuple tracks
Definition: testEve_cfg.py:39
T const * product() const
Definition: Handle.h:81
std::string const & label() const
Definition: InputTag.h:42
std::string const & instance() const
Definition: InputTag.h:43

Member Data Documentation

edm::InputTag CSCTFCandidateProducer::input_module
private

Definition at line 23 of file CSCTFCandidateProducer.h.

Referenced by CSCTFCandidateProducer(), and produce().

CSCTFCandidateBuilder* CSCTFCandidateProducer::my_builder
private