CMS 3D CMS Logo

L1TMuonEndCapTrackProducer.cc
Go to the documentation of this file.
2 
3 
5  track_finder_(new TrackFinder(iConfig, consumesCollector())),
6  uGMT_converter_(new MicroGMTConverter()),
7  config_(iConfig)
8 {
9  // Make output products
10  produces<EMTFHitCollection> (""); // All CSC LCTs and RPC clusters received by EMTF
11  produces<EMTFTrackCollection> (""); // All output EMTF tracks, in same format as unpacked data
12  produces<l1t::RegionalMuonCandBxCollection>("EMTF"); // EMTF tracks output to uGMT
13 }
14 
16 
17 }
18 
20  // Create pointers to output products
21  auto out_hits = std::make_unique<EMTFHitCollection>();
22  auto out_tracks = std::make_unique<EMTFTrackCollection>();
23  auto out_cands = std::make_unique<l1t::RegionalMuonCandBxCollection>();
24 
25  // Main EMTF emulator process, produces tracks from hits in each sector in each event
26  track_finder_->process(iEvent, iSetup, *out_hits, *out_tracks);
27 
28  // Convert into uGMT format
29  uGMT_converter_->convert_all(iEvent, *out_tracks, *out_cands);
30 
31  // Fill the output products
32  iEvent.put(std::move(out_hits) , "");
33  iEvent.put(std::move(out_tracks), "");
34  iEvent.put(std::move(out_cands) , "EMTF");
35 }
36 
38 
39 }
40 
42 
43 }
44 
45 // Fill 'descriptions' with the allowed parameters
47  // The following says we do not know what parameters are allowed so do no validation
48  // Please change this to state exactly what you do use, even if it is no parameters
50  desc.setUnknown();
51  descriptions.addDefault(desc);
52 }
53 
54 // Define this as a plug-in
L1TMuonEndCapTrackProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:136
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
std::unique_ptr< MicroGMTConverter > uGMT_converter_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
int iEvent
Definition: GenABIO.cc:230
void addDefault(ParameterSetDescription const &psetDescription)
std::unique_ptr< TrackFinder > track_finder_
void produce(edm::Event &, const edm::EventSetup &) override
def move(src, dest)
Definition: eostools.py:510