CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
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
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
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)
 
 ~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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex >
const & 
esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

std::unique_ptr< 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
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

L1 BM Track Finder EDProducer

J. Troconiz UAM Madrid

Definition at line 23 of file L1TMuonBarrelTrackProducer.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 36 of file L1TMuonBarrelTrackProducer.cc.

References TrackValidation_cff::pset.

36  {
37  produces<l1t::RegionalMuonCandBxCollection>("BMTF");
38  produces<l1t::RegionalMuonCandBxCollection>("UnsortedBMTF");
39  produces<vector<L1MuBMTrack> >("BMTF");
40  produces<vector<L1MuBMTrackSegPhi> >("BMTF");
41  produces<vector<L1MuBMTrackSegEta> >("BMTF");
42 
43  usesResource("L1TMuonBarrelTrackProducer");
44  setup1 = std::make_unique<L1MuBMTFSetup>(pset, consumesCollector());
45 }
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< L1MuBMTFSetup > setup1
L1TMuonBarrelTrackProducer::~L1TMuonBarrelTrackProducer ( )
override

Destructor.

Definition at line 47 of file L1TMuonBarrelTrackProducer.cc.

47 {}

Member Function Documentation

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 49 of file L1TMuonBarrelTrackProducer.cc.

References L1MuBMTrackFinder::clear(), gather_cfg::cout, L1MuBMTFConfig::Debug(), L1MuBMTrackFinder::getcache(), L1MuBMTrackFinder::getcache0(), L1MuBMTrackFinder::getcache1(), L1MuBMTrackFinder::getcache2(), L1MuBMTrackFinder::getcache3(), eostools::move(), L1MuBMTrackFinder::numberOfTracks(), edm::Event::put(), and L1MuBMTrackFinder::run().

49  {
50  if (L1MuBMTFConfig::Debug(1))
51  cout << endl;
52  if (L1MuBMTFConfig::Debug(1))
53  cout << "**** L1MuonBMTFTrigger processing event ****" << endl;
54 
55  L1MuBMTrackFinder* dtbx = setup1->TrackFinder();
56  dtbx->clear();
57 
58  dtbx->run(e, c);
59 
60  int ndt = dtbx->numberOfTracks();
61  if (L1MuBMTFConfig::Debug(1))
62  cout << "Number of muons found by the L1 BBMX TRIGGER : " << ndt << endl;
63 
64  std::unique_ptr<l1t::RegionalMuonCandBxCollection> tra_product(new l1t::RegionalMuonCandBxCollection);
65  std::unique_ptr<l1t::RegionalMuonCandBxCollection> vec_product(new l1t::RegionalMuonCandBxCollection);
66  unique_ptr<vector<L1MuBMTrack> > vec_L1MuBMTrack(new vector<L1MuBMTrack>);
67  unique_ptr<vector<L1MuBMTrackSegPhi> > vec_L1MuBMTrackSegPhi(new vector<L1MuBMTrackSegPhi>);
68  unique_ptr<vector<L1MuBMTrackSegEta> > vec_L1MuBMTrackSegEta(new vector<L1MuBMTrackSegEta>);
69 
72  *tra_product = dtTracks;
73 
76  *vec_product = BMTracks;
77 
78  *vec_L1MuBMTrack = dtbx->getcache1();
79  *vec_L1MuBMTrackSegPhi = dtbx->getcache2();
80  *vec_L1MuBMTrackSegEta = dtbx->getcache3();
81 
82  //for (int ibx = BMTracks.getFirstBX(); ibx <= BMTracks.getLastBX(); ibx++){
83  //cout << "DEBUG: BMTF size at bx " << ibx << " " << BMTracks.size(ibx) << "\n";
84  //}
85  e.put(std::move(tra_product), "UnsortedBMTF");
86  e.put(std::move(vec_product), "BMTF");
87  e.put(std::move(vec_L1MuBMTrack), "BMTF");
88  e.put(std::move(vec_L1MuBMTrackSegPhi), "BMTF");
89  e.put(std::move(vec_L1MuBMTrackSegEta), "BMTF");
90 }
L1MuBMTrackCollection & getcache1()
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
L1MuBMTrackSegPhiCollection & getcache2()
def move
Definition: eostools.py:511
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
L1MuBMTrackSegEtaCollection & getcache3()
static bool Debug()
tuple cout
Definition: gather_cfg.py:144
l1t::RegionalMuonCandBxCollection & getcache()
l1t::RegionalMuonCandBxCollection & getcache0()
std::unique_ptr< L1MuBMTFSetup > setup1

Member Data Documentation

std::unique_ptr<L1MuBMTFSetup> L1TMuonBarrelTrackProducer::setup1
private

Definition at line 35 of file L1TMuonBarrelTrackProducer.h.