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 
17  std::vector<L1MuRegionalCand> cand_product;
18 
19  e.getByToken(input_module, tracks);
20 
21  my_builder.buildCandidates(tracks.product(), &cand_product);
22 
23  e.emplace(putToken_, std::move(cand_product));
24 }
const CSCTFCandidateBuilder my_builder
CSCTFCandidateProducer(const edm::ParameterSet &)
const edm::EDPutTokenT< std::vector< L1MuRegionalCand > > putToken_
void buildCandidates(const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
const edm::EDGetTokenT< L1CSCTrackCollection > input_module
void produce(edm::StreamID, edm::Event &e, const edm::EventSetup &c) const override
def move(src, dest)
Definition: eostools.py:511