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::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 ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

edm::InputTag input_module
 
CSCTFCandidateBuildermy_builder
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- 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::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

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 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
CSCTFCandidateBuilder * my_builder
CSCTFCandidateProducer::~CSCTFCandidateProducer ( )
virtual

Definition at line 19 of file CSCTFCandidateProducer.cc.

References my_builder, and NULL.

20 {
21  delete my_builder;
22  my_builder = NULL;
23 }
#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 25 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.

26 {
28  std::auto_ptr<std::vector<L1MuRegionalCand> > cand_product(new std::vector<L1MuRegionalCand>);
29 
31 
32  my_builder->buildCandidates(tracks.product(), cand_product.get());
33 
34  e.put(cand_product,"CSC");
35 }
CSCTFCandidateBuilder * my_builder
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
void buildCandidates(const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
tuple tracks
Definition: testEve_cfg.py:39
T const * product() const
Definition: Handle.h:74
std::string const & label() const
Definition: InputTag.h:25
std::string const & instance() const
Definition: InputTag.h:26

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