#include <DTTrackFinder.h>
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 | |
L1MuDTTFSetup * | setup1 |
L1 DT Track Finder EDProducer
J. Troconiz UAM Madrid
Definition at line 26 of file DTTrackFinder.h.
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] |
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"); }
L1MuDTTFSetup* DTTrackFinder::setup1 [private] |
Definition at line 39 of file DTTrackFinder.h.