CMS 3D CMS Logo

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

#include <L1TMuonBarrelTrackProducer.h>

Inheritance diagram for L1TMuonBarrelTrackProducer:
edm::one::EDProducer< edm::one::SharedResources > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L1TMuonBarrelTrackProducer (const edm::ParameterSet &pset)
 Constructor. More...
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 Produce digis out of raw data. More...
 
 ~L1TMuonBarrelTrackProducer () override
 Destructor. More...
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::SharedResources >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () 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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

const edm::ParameterSetm_ps
 
L1MuBMTFSetupsetup1
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase 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
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

L1 BM Track Finder EDProducer

J. Troconiz UAM Madrid

Definition at line 23 of file L1TMuonBarrelTrackProducer.h.

Constructor & Destructor Documentation

◆ L1TMuonBarrelTrackProducer()

L1TMuonBarrelTrackProducer::L1TMuonBarrelTrackProducer ( const edm::ParameterSet pset)

Constructor.

Definition at line 36 of file L1TMuonBarrelTrackProducer.cc.

36  {
37  m_ps = &pset;
38 
39  produces<l1t::RegionalMuonCandBxCollection>("BMTF");
40  produces<l1t::RegionalMuonCandBxCollection>("UnsortedBMTF");
41  produces<vector<L1MuBMTrack> >("BMTF");
42  produces<vector<L1MuBMTrackSegPhi> >("BMTF");
43  produces<vector<L1MuBMTrackSegEta> >("BMTF");
44 
45  usesResource("L1TMuonBarrelTrackProducer");
47 }

References muonDTDigis_cfi::pset.

◆ ~L1TMuonBarrelTrackProducer()

L1TMuonBarrelTrackProducer::~L1TMuonBarrelTrackProducer ( )
override

Destructor.

Definition at line 49 of file L1TMuonBarrelTrackProducer.cc.

49 { delete setup1; }

Member Function Documentation

◆ produce()

void L1TMuonBarrelTrackProducer::produce ( edm::Event e,
const edm::EventSetup c 
)
overridevirtual

Produce digis out of raw data.

Muons before muon sorter

Muons after muon sorter, for uGMT

Implements edm::one::EDProducerBase.

Definition at line 51 of file L1TMuonBarrelTrackProducer.cc.

51  {
52  if (L1MuBMTFConfig::Debug(1))
53  cout << endl;
54  if (L1MuBMTFConfig::Debug(1))
55  cout << "**** L1MuonBMTFTrigger processing event ****" << endl;
56 
58  dtbx->clear();
59 
60  dtbx->run(e, c);
61 
62  int ndt = dtbx->numberOfTracks();
63  if (L1MuBMTFConfig::Debug(1))
64  cout << "Number of muons found by the L1 BBMX TRIGGER : " << ndt << endl;
65 
66  std::unique_ptr<l1t::RegionalMuonCandBxCollection> tra_product(new l1t::RegionalMuonCandBxCollection);
67  std::unique_ptr<l1t::RegionalMuonCandBxCollection> vec_product(new l1t::RegionalMuonCandBxCollection);
68  unique_ptr<vector<L1MuBMTrack> > vec_L1MuBMTrack(new vector<L1MuBMTrack>);
69  unique_ptr<vector<L1MuBMTrackSegPhi> > vec_L1MuBMTrackSegPhi(new vector<L1MuBMTrackSegPhi>);
70  unique_ptr<vector<L1MuBMTrackSegEta> > vec_L1MuBMTrackSegEta(new vector<L1MuBMTrackSegEta>);
71 
74  *tra_product = dtTracks;
75 
78  *vec_product = BMTracks;
79 
80  *vec_L1MuBMTrack = dtbx->getcache1();
81  *vec_L1MuBMTrackSegPhi = dtbx->getcache2();
82  *vec_L1MuBMTrackSegEta = dtbx->getcache3();
83 
84  //for (int ibx = BMTracks.getFirstBX(); ibx <= BMTracks.getLastBX(); ibx++){
85  //cout << "DEBUG: BMTF size at bx " << ibx << " " << BMTracks.size(ibx) << "\n";
86  //}
87  e.put(std::move(tra_product), "UnsortedBMTF");
88  e.put(std::move(vec_product), "BMTF");
89  e.put(std::move(vec_L1MuBMTrack), "BMTF");
90  e.put(std::move(vec_L1MuBMTrackSegPhi), "BMTF");
91  e.put(std::move(vec_L1MuBMTrackSegEta), "BMTF");
92 }

References HltBtagPostValidation_cff::c, L1MuBMTrackFinder::clear(), gather_cfg::cout, L1MuBMTFConfig::Debug(), MillePedeFileConverter_cfg::e, L1MuBMTrackFinder::getcache(), L1MuBMTrackFinder::getcache0(), L1MuBMTrackFinder::getcache1(), L1MuBMTrackFinder::getcache2(), L1MuBMTrackFinder::getcache3(), eostools::move(), L1MuBMTrackFinder::numberOfTracks(), and L1MuBMTrackFinder::run().

Member Data Documentation

◆ m_ps

const edm::ParameterSet* L1TMuonBarrelTrackProducer::m_ps
private

Definition at line 36 of file L1TMuonBarrelTrackProducer.h.

◆ setup1

L1MuBMTFSetup* L1TMuonBarrelTrackProducer::setup1
private

Definition at line 35 of file L1TMuonBarrelTrackProducer.h.

L1MuBMTrackFinder::numberOfTracks
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
Definition: L1MuBMTrackFinder.cc:413
L1MuBMTFSetup
Definition: L1MuBMTFSetup.h:39
L1MuBMTrackFinder::getcache1
L1MuBMTrackCollection & getcache1()
Definition: L1MuBMTrackFinder.h:118
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1TMuonBarrelTrackProducer::setup1
L1MuBMTFSetup * setup1
Definition: L1TMuonBarrelTrackProducer.h:35
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:71
L1MuBMTrackFinder::clear
void clear()
Definition: L1MuBMTrackFinder.cc:425
BXVector< RegionalMuonCand >
L1MuBMTFConfig::Debug
static bool Debug()
Definition: L1MuBMTFConfig.h:54
L1MuBMTrackFinder::run
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
Definition: L1MuBMTrackFinder.cc:160
L1MuBMTrackFinder::getcache2
L1MuBMTrackSegPhiCollection & getcache2()
Definition: L1MuBMTrackFinder.h:119
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
L1MuBMTrackFinder::getcache3
L1MuBMTrackSegEtaCollection & getcache3()
Definition: L1MuBMTrackFinder.h:120
eostools.move
def move(src, dest)
Definition: eostools.py:511
L1MuBMTrackFinder::getcache
l1t::RegionalMuonCandBxCollection & getcache()
Definition: L1MuBMTrackFinder.h:116
L1MuBMTFSetup::TrackFinder
L1MuBMTrackFinder * TrackFinder()
perform action per run
Definition: L1MuBMTFSetup.h:50
L1MuBMTrackFinder::getcache0
l1t::RegionalMuonCandBxCollection & getcache0()
Definition: L1MuBMTrackFinder.h:117
L1TMuonBarrelTrackProducer::m_ps
const edm::ParameterSet * m_ps
Definition: L1TMuonBarrelTrackProducer.h:36
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
L1MuBMTrackFinder
Definition: L1MuBMTrackFinder.h:66