CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
L1TMuonEndCapPhase2TrackProducer Class Reference

#include <L1TMuonEndCapPhase2TrackProducer.h>

Inheritance diagram for L1TMuonEndCapPhase2TrackProducer:
edm::stream::EDProducer<>

Public Member Functions

 L1TMuonEndCapPhase2TrackProducer (const edm::ParameterSet &)
 
 ~L1TMuonEndCapPhase2TrackProducer () override=default
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 

Private Member Functions

void beginStream (edm::StreamID) override
 
void endStream () override
 
void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

edm::EDPutTokenT< emtf::phase2::EMTFHitCollectionhit_token_
 
edm::EDPutTokenT< emtf::phase2::EMTFInputCollectionin_token_
 
std::unique_ptr< emtf::phase2::TrackFindertrack_finder_
 
edm::EDPutTokenT< emtf::phase2::EMTFTrackCollectiontrk_token_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 17 of file L1TMuonEndCapPhase2TrackProducer.h.

Constructor & Destructor Documentation

◆ L1TMuonEndCapPhase2TrackProducer()

L1TMuonEndCapPhase2TrackProducer::L1TMuonEndCapPhase2TrackProducer ( const edm::ParameterSet pset)
explicit

Definition at line 12 of file L1TMuonEndCapPhase2TrackProducer.cc.

13  : track_finder_(std::make_unique<emtf::phase2::TrackFinder>(pset, consumesCollector())),
14  hit_token_(produces<emtf::phase2::EMTFHitCollection>()),
15  trk_token_(produces<emtf::phase2::EMTFTrackCollection>()),
16  in_token_(produces<emtf::phase2::EMTFInputCollection>()) {}
edm::EDPutTokenT< emtf::phase2::EMTFInputCollection > in_token_
edm::EDPutTokenT< emtf::phase2::EMTFHitCollection > hit_token_
std::unique_ptr< emtf::phase2::TrackFinder > track_finder_
edm::EDPutTokenT< emtf::phase2::EMTFTrackCollection > trk_token_

◆ ~L1TMuonEndCapPhase2TrackProducer()

L1TMuonEndCapPhase2TrackProducer::~L1TMuonEndCapPhase2TrackProducer ( )
overridedefault

Member Function Documentation

◆ beginStream()

void L1TMuonEndCapPhase2TrackProducer::beginStream ( edm::StreamID  stream_id)
overrideprivate

Definition at line 74 of file L1TMuonEndCapPhase2TrackProducer.cc.

References track_finder_.

74 { track_finder_->onJobBegin(); }
std::unique_ptr< emtf::phase2::TrackFinder > track_finder_

◆ endStream()

void L1TMuonEndCapPhase2TrackProducer::endStream ( )
overrideprivate

Definition at line 76 of file L1TMuonEndCapPhase2TrackProducer.cc.

References track_finder_.

76 { track_finder_->onJobEnd(); }
std::unique_ptr< emtf::phase2::TrackFinder > track_finder_

◆ fillDescriptions()

void L1TMuonEndCapPhase2TrackProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 18 of file L1TMuonEndCapPhase2TrackProducer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

18  {
20 
21  // Neural Network Models
22  desc.add<std::string>("PromptGraphPath", "L1Trigger/L1TMuonEndCapPhase2/data/prompt_model.pb");
23  desc.add<std::string>("DisplacedGraphPath", "L1Trigger/L1TMuonEndCapPhase2/data/displaced_model.pb");
24 
25  // Input Collections
26  desc.add<edm::InputTag>("CSCInput", edm::InputTag("simCscTriggerPrimitiveDigisForEMTF"));
27  desc.add<edm::InputTag>("RPCInput", edm::InputTag("rpcRecHitsForEMTF"));
28  desc.add<edm::InputTag>("GEMInput", edm::InputTag("simMuonGEMPadDigiClusters"));
29  desc.add<edm::InputTag>("ME0Input", edm::InputTag("me0TriggerConvertedPseudoDigis"));
30  desc.add<edm::InputTag>("GE0Input", edm::InputTag("ge0TriggerConvertedPseudoDigis"));
31 
32  // Enable Subdetectors
33  desc.add<bool>("CSCEnabled", true);
34  desc.add<bool>("RPCEnabled", true);
35  desc.add<bool>("GEMEnabled", true);
36  desc.add<bool>("ME0Enabled", true);
37  desc.add<bool>("GE0Enabled", false);
38 
39  // Bunch-Crossing Settings
40  desc.add<int>("MinBX", -2);
41  desc.add<int>("MaxBX", 2);
42  desc.add<int>("BXWindow", 1);
43 
44  desc.add<int>("CSCInputBXShift", -8);
45  desc.add<int>("RPCInputBXShift", 0);
46  desc.add<int>("GEMInputBXShift", 0);
47  desc.add<int>("ME0InputBXShift", -8);
48 
49  // Primitive Settings
50  desc.add<bool>("IncludeNeighborEnabled", true);
51 
52  // Debug Utils
53  desc.addUntracked<int>("Verbosity", 3);
54  desc.add<std::string>("ValidationDirectory", "L1Trigger/L1TMuonEndCapPhase2/data/validation");
55 
56  // Register
57  descriptions.add("L1TMuonEndCapPhase2TrackProducer", desc);
58 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void L1TMuonEndCapPhase2TrackProducer::produce ( edm::Event event,
const edm::EventSetup event_setup 
)
overrideprivate

Definition at line 60 of file L1TMuonEndCapPhase2TrackProducer.cc.

References hit_token_, in_token_, eostools::move(), track_finder_, and trk_token_.

60  {
64 
65  // Forward event to track finder
66  track_finder_->process(event, event_setup, out_hits, out_tracks, out_inputs);
67 
68  // Output
69  event.emplace(hit_token_, std::move(out_hits));
70  event.emplace(trk_token_, std::move(out_tracks));
71  event.emplace(in_token_, std::move(out_inputs));
72 }
edm::EDPutTokenT< emtf::phase2::EMTFInputCollection > in_token_
l1t::phase2::EMTFTrackCollection EMTFTrackCollection
Definition: EMTFTypes.h:31
l1t::phase2::EMTFInputCollection EMTFInputCollection
Definition: EMTFTypes.h:35
l1t::phase2::EMTFHitCollection EMTFHitCollection
Definition: EMTFTypes.h:27
edm::EDPutTokenT< emtf::phase2::EMTFHitCollection > hit_token_
std::unique_ptr< emtf::phase2::TrackFinder > track_finder_
def move(src, dest)
Definition: eostools.py:511
edm::EDPutTokenT< emtf::phase2::EMTFTrackCollection > trk_token_
Definition: event.py:1

Member Data Documentation

◆ hit_token_

edm::EDPutTokenT<emtf::phase2::EMTFHitCollection> L1TMuonEndCapPhase2TrackProducer::hit_token_
private

Definition at line 28 of file L1TMuonEndCapPhase2TrackProducer.h.

Referenced by produce().

◆ in_token_

edm::EDPutTokenT<emtf::phase2::EMTFInputCollection> L1TMuonEndCapPhase2TrackProducer::in_token_
private

Definition at line 30 of file L1TMuonEndCapPhase2TrackProducer.h.

Referenced by produce().

◆ track_finder_

std::unique_ptr<emtf::phase2::TrackFinder> L1TMuonEndCapPhase2TrackProducer::track_finder_
private

Definition at line 26 of file L1TMuonEndCapPhase2TrackProducer.h.

Referenced by beginStream(), endStream(), and produce().

◆ trk_token_

edm::EDPutTokenT<emtf::phase2::EMTFTrackCollection> L1TMuonEndCapPhase2TrackProducer::trk_token_
private

Definition at line 29 of file L1TMuonEndCapPhase2TrackProducer.h.

Referenced by produce().