#include <L2MuonProducer.h>
Public Member Functions | |
L2MuonProducer (const edm::ParameterSet &) | |
constructor with config | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
reconstruct muons | |
virtual | ~L2MuonProducer () |
destructor | |
Private Attributes | |
edm::InputTag | theSeedCollectionLabel |
MuonServiceProxy * | theService |
the event setup proxy, it takes care the services update | |
MuonTrackFinder * | theTrackFinder |
the track finder |
Level-2 muon reconstructor: reconstructs muons using DT, CSC and RPC information,
starting from Level-1 trigger seeds.
L2 muon reconstructor: reconstructs muons using DT, CSC and RPC information,
starting from internal seeds (L2 muon track segments).
Definition at line 30 of file L2MuonProducer.h.
L2MuonProducer::L2MuonProducer | ( | const edm::ParameterSet & | parameterSet | ) |
constructor with config
Definition at line 50 of file L2MuonProducer.cc.
References edm::ParameterSet::getParameter(), LogTrace, and MuonServiceProxy_cff::MuonServiceProxy.
{ LogTrace("Muon|RecoMuon|L2MuonProducer")<<"constructor called"<<endl; // Parameter set for the Builder ParameterSet trajectoryBuilderParameters = parameterSet.getParameter<ParameterSet>("L2TrajBuilderParameters"); // MuonSeed Collection Label theSeedCollectionLabel = parameterSet.getParameter<InputTag>("InputObjects"); // service parameters ParameterSet serviceParameters = parameterSet.getParameter<ParameterSet>("ServiceParameters"); // TrackLoader parameters ParameterSet trackLoaderParameters = parameterSet.getParameter<ParameterSet>("TrackLoaderParameters"); // the services theService = new MuonServiceProxy(serviceParameters); // instantiate the concrete trajectory builder in the Track Finder theTrackFinder = new MuonTrackFinder(new StandAloneMuonTrajectoryBuilder(trajectoryBuilderParameters, theService), new MuonTrackLoader(trackLoaderParameters, theService), new MuonTrajectoryCleaner(true)); produces<reco::TrackCollection>(); produces<reco::TrackCollection>("UpdatedAtVtx"); produces<TrackingRecHitCollection>(); produces<reco::TrackExtraCollection>(); produces<reco::TrackToTrackMap>(); produces<std::vector<Trajectory> >(); produces<TrajTrackAssociationCollection>(); produces<edm::AssociationMap<edm::OneToMany<std::vector<L2MuonTrajectorySeed>, std::vector<L2MuonTrajectorySeed> > > >(); }
L2MuonProducer::~L2MuonProducer | ( | ) | [virtual] |
destructor
Definition at line 86 of file L2MuonProducer.cc.
References LogTrace.
{ LogTrace("Muon|RecoMuon|L2eMuonProducer")<<"L2MuonProducer destructor called"<<endl; delete theService; delete theTrackFinder; }
void L2MuonProducer::produce | ( | edm::Event & | event, |
const edm::EventSetup & | eventSetup | ||
) | [virtual] |
reconstruct muons
Implements edm::EDProducer.
Definition at line 94 of file L2MuonProducer.cc.
References LogTrace, and metname.
{ const std::string metname = "Muon|RecoMuon|L2MuonProducer"; LogTrace(metname)<<endl<<endl<<endl; LogTrace(metname)<<"L2 Muon Reconstruction Started"<<endl; // Take the seeds container LogTrace(metname)<<"Taking the seeds: "<<theSeedCollectionLabel.label()<<endl; Handle<View<TrajectorySeed> > seeds; event.getByLabel(theSeedCollectionLabel,seeds); // Update the services theService->update(eventSetup); NavigationSetter setter(*theService->muonNavigationSchool()); // Reconstruct LogTrace(metname)<<"Track Reconstruction"<<endl; theTrackFinder->reconstruct(seeds,event); LogTrace(metname)<<"Event loaded" <<"================================" <<endl<<endl; }
Definition at line 46 of file L2MuonProducer.h.
MuonServiceProxy* L2MuonProducer::theService [private] |
the event setup proxy, it takes care the services update
Definition at line 52 of file L2MuonProducer.h.
MuonTrackFinder* L2MuonProducer::theTrackFinder [private] |
the track finder
Definition at line 49 of file L2MuonProducer.h.