CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTTrackFinder Class Reference

#include <DTTrackFinder.h>

Inheritance diagram for DTTrackFinder:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 DTTrackFinder (const edm::ParameterSet &pset)
 Constructor.
void produce (edm::Event &e, const edm::EventSetup &c)
 Produce digis out of raw data.
virtual ~DTTrackFinder ()
 Destructor.

Private Attributes

L1MuDTTFSetupsetup1

Detailed Description

L1 DT Track Finder EDProducer

Date:
2007/04/25 17:27:33
Revision:
1.1

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.

                                                         {

  produces<L1MuDTTrackContainer>("DTTF");
  produces<vector<L1MuRegionalCand> >("DT");

  setup1 = new L1MuDTTFSetup(pset);

}
DTTrackFinder::~DTTrackFinder ( ) [virtual]

Destructor.

Definition at line 44 of file DTTrackFinder.cc.

                              {

  delete setup1;

}

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().

                                                               {

  if ( L1MuDTTFConfig::Debug(1) ) cout << endl;
  if ( L1MuDTTFConfig::Debug(1) ) cout << "**** L1MuonDTTFTrigger processing event  ****" << endl;

  L1MuDTTrackFinder* dtbx = setup1->TrackFinder();
  dtbx->clear();
  dtbx->run(e,c);

  int ndt = dtbx->numberOfTracks();
  if ( L1MuDTTFConfig::Debug(1) ) cout << "Number of muons found by the L1 DTBX TRIGGER : "
                                       << ndt << endl;

  auto_ptr<L1MuDTTrackContainer> tra_product(new L1MuDTTrackContainer);
  auto_ptr<vector<L1MuRegionalCand> >
                                 vec_product(new vector<L1MuRegionalCand>);

  vector<L1MuDTTrackCand>&  dtTracks = dtbx->getcache0();
  tra_product->setContainer(dtTracks);
  vector<L1MuRegionalCand>& DTTracks = dtbx->getcache();
  *vec_product = DTTracks;

  e.put(tra_product,"DTTF");
  e.put(vec_product,"DT");

}

Member Data Documentation

Definition at line 39 of file DTTrackFinder.h.