CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
T getUntrackedParameter(std::string const &, T const &) const
const edm::EventSetup & c
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
const CSCTFCandidateBuilder my_builder
CSCTFCandidateProducer(const edm::ParameterSet &)
auto const & tracks
cannot be loose
const edm::EDPutTokenT< std::vector< L1MuRegionalCand > > putToken_
void buildCandidates(const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
def move
Definition: eostools.py:511
T const * product() const
Definition: Handle.h:70
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Event.h:433
const edm::EDGetTokenT< L1CSCTrackCollection > input_module
void produce(edm::StreamID, edm::Event &e, const edm::EventSetup &c) const override