CMS 3D CMS Logo

CSCTFCandidateProducer.cc
Go to the documentation of this file.
2 
3 #include <vector>
6 
9 
11  input_module{consumes<L1CSCTrackCollection>(pset.getUntrackedParameter<edm::InputTag>("CSCTrackProducer"))},
12  putToken_{produces<std::vector<L1MuRegionalCand> >("CSC")},
13  my_builder{pset.getParameter<edm::ParameterSet>("MuonSorter")}
14 {
15 }
16 
18 {
20  std::vector<L1MuRegionalCand> cand_product;
21 
22  e.getByToken(input_module, tracks);
23 
24  my_builder.buildCandidates(tracks.product(), &cand_product);
25 
26  e.emplace(putToken_, std::move(cand_product));
27 }
T getUntrackedParameter(std::string const &, T const &) const
void produce(edm::StreamID, edm::Event &e, const edm::EventSetup &c) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
const CSCTFCandidateBuilder my_builder
CSCTFCandidateProducer(const edm::ParameterSet &)
const edm::EDPutTokenT< std::vector< L1MuRegionalCand > > putToken_
void buildCandidates(const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
T const * product() const
Definition: Handle.h:74
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Event.h:413
const edm::EDGetTokenT< L1CSCTrackCollection > input_module
def move(src, dest)
Definition: eostools.py:511