CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 Produce digis out of raw data. More...
 
virtual ~DTTrackFinder ()
 Destructor. More...
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::SharedResources >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

L1MuDTTFSetupsetup1
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- 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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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

L1 DT Track Finder EDProducer

J. Troconiz UAM Madrid

Definition at line 24 of file DTTrackFinder.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 33 of file DTTrackFinder.cc.

33  {
34 
35  produces<L1MuDTTrackContainer>("DTTF");
36  produces<vector<L1MuRegionalCand> >("DT");
37 
39  usesResource("DTTrackFinder");
40 }
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:37
DTTrackFinder::~DTTrackFinder ( )
virtual

Destructor.

Definition at line 42 of file DTTrackFinder.cc.

42  {
43 
44  delete setup1;
45 
46 }
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:37

Member Function Documentation

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

Produce digis out of raw data.

Implements edm::one::EDProducerBase.

Definition at line 48 of file DTTrackFinder.cc.

References L1MuDTTrackFinder::clear(), gather_cfg::cout, L1MuDTTFConfig::Debug(), L1MuDTTrackFinder::getcache(), L1MuDTTrackFinder::getcache0(), L1MuDTTrackFinder::numberOfTracks(), edm::Event::put(), and L1MuDTTrackFinder::run().

48  {
49 
50  if ( L1MuDTTFConfig::Debug(1) ) cout << endl;
51  if ( L1MuDTTFConfig::Debug(1) ) cout << "**** L1MuonDTTFTrigger processing event ****" << endl;
52 
54  dtbx->clear();
55  dtbx->run(e,c);
56 
57  int ndt = dtbx->numberOfTracks();
58  if ( L1MuDTTFConfig::Debug(1) ) cout << "Number of muons found by the L1 DTBX TRIGGER : "
59  << ndt << endl;
60 
61  auto_ptr<L1MuDTTrackContainer> tra_product(new L1MuDTTrackContainer);
62  auto_ptr<vector<L1MuRegionalCand> >
63  vec_product(new vector<L1MuRegionalCand>);
64 
65  vector<L1MuDTTrackCand>& dtTracks = dtbx->getcache0();
66  tra_product->setContainer(dtTracks);
67  vector<L1MuRegionalCand>& DTTracks = dtbx->getcache();
68  *vec_product = DTTracks;
69 
70  e.put(tra_product,"DTTF");
71  e.put(vec_product,"DT");
72 
73 }
L1MuDTTrackFinder * TrackFinder()
perform action per run
Definition: L1MuDTTFSetup.h:50
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:37
static bool Debug()
std::vector< L1MuDTTrackCand > & getcache0()
std::vector< L1MuRegionalCand > & getcache()
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

L1MuDTTFSetup* DTTrackFinder::setup1
private

Definition at line 37 of file DTTrackFinder.h.