CMS 3D CMS Logo

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

#include <L1TMuonEndCapTrackProducer.h>

Inheritance diagram for L1TMuonEndCapTrackProducer:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L1TMuonEndCapTrackProducer (const edm::ParameterSet &)
 
 ~L1TMuonEndCapTrackProducer () override
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducer () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void beginJob () override
 
void endJob () override
 
void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

const edm::ParameterSetconfig_
 
std::unique_ptr< TrackFindertrack_finder_
 
std::unique_ptr< MicroGMTConverteruGMT_converter_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 20 of file L1TMuonEndCapTrackProducer.h.

Constructor & Destructor Documentation

L1TMuonEndCapTrackProducer::L1TMuonEndCapTrackProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 4 of file L1TMuonEndCapTrackProducer.cc.

4  :
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 }
std::unique_ptr< MicroGMTConverter > uGMT_converter_
const edm::ParameterSet & config_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< TrackFinder > track_finder_
L1TMuonEndCapTrackProducer::~L1TMuonEndCapTrackProducer ( )
override

Definition at line 15 of file L1TMuonEndCapTrackProducer.cc.

15  {
16 
17 }

Member Function Documentation

void L1TMuonEndCapTrackProducer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDProducer.

Definition at line 37 of file L1TMuonEndCapTrackProducer.cc.

37  {
38 
39 }
void L1TMuonEndCapTrackProducer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDProducer.

Definition at line 41 of file L1TMuonEndCapTrackProducer.cc.

41  {
42 
43 }
void L1TMuonEndCapTrackProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 46 of file L1TMuonEndCapTrackProducer.cc.

References edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and edm::ParameterSetDescription::setUnknown().

46  {
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 }
void addDefault(ParameterSetDescription const &psetDescription)
void L1TMuonEndCapTrackProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 19 of file L1TMuonEndCapTrackProducer.cc.

References eostools::move(), edm::Event::put(), track_finder_, and uGMT_converter_.

19  {
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(*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 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:127
std::unique_ptr< MicroGMTConverter > uGMT_converter_
std::unique_ptr< TrackFinder > track_finder_
def move(src, dest)
Definition: eostools.py:510

Member Data Documentation

const edm::ParameterSet& L1TMuonEndCapTrackProducer::config_
private

Definition at line 41 of file L1TMuonEndCapTrackProducer.h.

std::unique_ptr<TrackFinder> L1TMuonEndCapTrackProducer::track_finder_
private

Definition at line 38 of file L1TMuonEndCapTrackProducer.h.

Referenced by produce().

std::unique_ptr<MicroGMTConverter> L1TMuonEndCapTrackProducer::uGMT_converter_
private

Definition at line 39 of file L1TMuonEndCapTrackProducer.h.

Referenced by produce().