CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTFCandidateProducer.cc
Go to the documentation of this file.
3 
4 #include <vector>
7 
10 
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 }
19 
21 {
22  delete my_builder;
23  my_builder = NULL;
24 }
25 
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 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
#define NULL
Definition: scimark2.h:8
CSCTFCandidateProducer(const edm::ParameterSet &)
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
void produce(edm::Event &e, const edm::EventSetup &c)
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