CMS 3D CMS Logo

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

#include <DTTrackFinder.h>

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

Public Member Functions

 DTTrackFinder (const edm::ParameterSet &pset)
 Constructor. More...
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 Produce digis out of raw data. More...
 
 ~DTTrackFinder () 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 hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
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
 
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
 
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::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

L1MuDTTFSetupsetup1
 

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 = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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...
 
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 DT Track Finder EDProducer

J. Troconiz UAM Madrid

Definition at line 23 of file DTTrackFinder.h.

Constructor & Destructor Documentation

◆ DTTrackFinder()

DTTrackFinder::DTTrackFinder ( const edm::ParameterSet pset)

Constructor.

Definition at line 33 of file DTTrackFinder.cc.

33  {
34  produces<L1MuDTTrackContainer>("DTTF");
35  produces<vector<L1MuRegionalCand> >("DT");
36 
38  usesResource("DTTrackFinder");
39 }

References muonDTDigis_cfi::pset.

◆ ~DTTrackFinder()

DTTrackFinder::~DTTrackFinder ( )
override

Destructor.

Definition at line 41 of file DTTrackFinder.cc.

41 { delete setup1; }

Member Function Documentation

◆ produce()

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

Produce digis out of raw data.

Implements edm::one::EDProducerBase.

Definition at line 43 of file DTTrackFinder.cc.

43  {
44  if (L1MuDTTFConfig::Debug(1))
45  cout << endl;
46  if (L1MuDTTFConfig::Debug(1))
47  cout << "**** L1MuonDTTFTrigger processing event ****" << endl;
48 
50  dtbx->clear();
51  dtbx->run(e, c);
52 
53  int ndt = dtbx->numberOfTracks();
54  if (L1MuDTTFConfig::Debug(1))
55  cout << "Number of muons found by the L1 DTBX TRIGGER : " << ndt << endl;
56 
57  unique_ptr<L1MuDTTrackContainer> tra_product(new L1MuDTTrackContainer);
58  unique_ptr<vector<L1MuRegionalCand> > vec_product(new vector<L1MuRegionalCand>);
59 
60  vector<L1MuDTTrackCand>& dtTracks = dtbx->getcache0();
61  tra_product->setContainer(dtTracks);
62  vector<L1MuRegionalCand>& DTTracks = dtbx->getcache();
63  *vec_product = DTTracks;
64 
65  e.put(std::move(tra_product), "DTTF");
66  e.put(std::move(vec_product), "DT");
67 }

References HltBtagPostValidation_cff::c, L1MuDTTrackFinder::clear(), gather_cfg::cout, L1MuDTTFConfig::Debug(), MillePedeFileConverter_cfg::e, L1MuDTTrackFinder::getcache(), L1MuDTTrackFinder::getcache0(), eostools::move(), L1MuDTTrackFinder::numberOfTracks(), and L1MuDTTrackFinder::run().

Member Data Documentation

◆ setup1

L1MuDTTFSetup* DTTrackFinder::setup1
private

Definition at line 35 of file DTTrackFinder.h.

L1MuDTTFSetup
Definition: L1MuDTTFSetup.h:36
L1MuDTTFSetup::TrackFinder
L1MuDTTrackFinder * TrackFinder()
perform action per run
Definition: L1MuDTTFSetup.h:47
gather_cfg.cout
cout
Definition: gather_cfg.py:144
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:46
L1MuDTTrackFinder::run
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
Definition: L1MuDTTrackFinder.cc:156
L1MuDTTrackFinder::getcache0
std::vector< L1MuDTTrackCand > & getcache0()
Definition: L1MuDTTrackFinder.h:104
L1MuDTTrackFinder::getcache
std::vector< L1MuRegionalCand > & getcache()
Definition: L1MuDTTrackFinder.h:106
DTTrackFinder::setup1
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:35
L1MuDTTrackFinder::numberOfTracks
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
Definition: L1MuDTTrackFinder.cc:299
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
eostools.move
def move(src, dest)
Definition: eostools.py:511
L1MuDTTrackFinder
Definition: L1MuDTTrackFinder.h:56
L1MuDTTrackFinder::clear
void clear()
Definition: L1MuDTTrackFinder.cc:305
L1MuDTTFConfig::Debug
static bool Debug()
Definition: L1MuDTTFConfig.h:49
L1MuDTTrackContainer
Definition: L1MuDTTrackContainer.h:33
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37