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::EDProducer edm::ProducerBase 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::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

L1MuDTTFSetupsetup1
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

L1 DT Track Finder EDProducer

Date:
2007/03/30 09:09:21
Revision:
1.3

J. Troconiz UAM Madrid

Definition at line 26 of file DTTrackFinder.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 35 of file DTTrackFinder.cc.

35  {
36 
37  produces<L1MuDTTrackContainer>("DTTF");
38  produces<vector<L1MuRegionalCand> >("DT");
39 
40  setup1 = new L1MuDTTFSetup(pset);
41 
42 }
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:39
DTTrackFinder::~DTTrackFinder ( )
virtual

Destructor.

Definition at line 44 of file DTTrackFinder.cc.

44  {
45 
46  delete setup1;
47 
48 }
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:39

Member Function Documentation

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

Produce digis out of raw data.

Implements edm::EDProducer.

Definition at line 50 of file DTTrackFinder.cc.

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

50  {
51 
52  if ( L1MuDTTFConfig::Debug(1) ) cout << endl;
53  if ( L1MuDTTFConfig::Debug(1) ) cout << "**** L1MuonDTTFTrigger processing event ****" << endl;
54 
56  dtbx->clear();
57  dtbx->run(e,c);
58 
59  int ndt = dtbx->numberOfTracks();
60  if ( L1MuDTTFConfig::Debug(1) ) cout << "Number of muons found by the L1 DTBX TRIGGER : "
61  << ndt << endl;
62 
63  auto_ptr<L1MuDTTrackContainer> tra_product(new L1MuDTTrackContainer);
64  auto_ptr<vector<L1MuRegionalCand> >
65  vec_product(new vector<L1MuRegionalCand>);
66 
67  vector<L1MuDTTrackCand>& dtTracks = dtbx->getcache0();
68  tra_product->setContainer(dtTracks);
69  vector<L1MuRegionalCand>& DTTracks = dtbx->getcache();
70  *vec_product = DTTracks;
71 
72  e.put(tra_product,"DTTF");
73  e.put(vec_product,"DT");
74 
75 }
L1MuDTTrackFinder * TrackFinder()
perform action per run
Definition: L1MuDTTFSetup.h:51
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:84
L1MuDTTFSetup * setup1
Definition: DTTrackFinder.h:39
static bool Debug()
std::vector< L1MuDTTrackCand > & getcache0()
std::vector< L1MuRegionalCand > & getcache()
tuple cout
Definition: gather_cfg.py:41

Member Data Documentation

L1MuDTTFSetup* DTTrackFinder::setup1
private

Definition at line 39 of file DTTrackFinder.h.