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 }
edm::StreamID
Definition: StreamID.h:30
Handle.h
CSCTFCandidateProducer.h
edm::Handle
Definition: AssociativeIterator.h:50
L1MuRegionalCand.h
CSCTFCandidateProducer::input_module
const edm::EDGetTokenT< L1CSCTrackCollection > input_module
Definition: CSCTFCandidateProducer.h:24
CSCTFCandidateProducer::produce
void produce(edm::StreamID, edm::Event &e, const edm::EventSetup &c) const override
Definition: CSCTFCandidateProducer.cc:15
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
L1CSCTrackCollection.h
edm::EventSetup
Definition: EventSetup.h:58
CSCTFCandidateProducer::my_builder
const CSCTFCandidateBuilder my_builder
Definition: CSCTFCandidateProducer.h:26
eostools.move
def move(src, dest)
Definition: eostools.py:511
CSCTFCandidateProducer::CSCTFCandidateProducer
CSCTFCandidateProducer(const edm::ParameterSet &)
Definition: CSCTFCandidateProducer.cc:10
CSCTFCandidateBuilder::buildCandidates
void buildCandidates(const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
Definition: CSCTFCandidateBuilder.cc:5
CSCTFCandidateProducer::putToken_
const edm::EDPutTokenT< std::vector< L1MuRegionalCand > > putToken_
Definition: CSCTFCandidateProducer.h:25
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37