#include <MuonTrackLoader.h>
Public Types | |
typedef MuonCandidate::CandidateContainer | CandidateContainer |
typedef MuonCandidate::TrajectoryContainer | TrajectoryContainer |
Public Member Functions | |
edm::OrphanHandle < reco::TrackCollection > | loadTracks (const TrajectoryContainer &, edm::Event &, const std::string &="", bool=true) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
edm::OrphanHandle < reco::TrackCollection > | loadTracks (const TrajectoryContainer &, edm::Event &, std::vector< std::pair< Trajectory *, reco::TrackRef > >, const std::string &="", bool=true) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
edm::OrphanHandle < reco::MuonTrackLinksCollection > | loadTracks (const CandidateContainer &, edm::Event &) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
MuonTrackLoader (edm::ParameterSet ¶meterSet, const MuonServiceProxy *service=0) | |
Constructor for the STA reco the args must be specify! More... | |
virtual | ~MuonTrackLoader () |
Destructor. More... | |
Private Member Functions | |
std::pair< bool, reco::Track > | buildTrackAtPCA (const Trajectory &trajectory, const reco::BeamSpot &) const |
Build a track at the PCA WITHOUT any vertex constriant. More... | |
reco::TrackExtra | buildTrackExtra (const Trajectory &) const |
std::pair< bool, reco::Track > | buildTrackUpdatedAtPCA (const reco::Track &trackAtPCA, const reco::BeamSpot &) const |
Takes a track at the PCA and applies the vertex constriant. More... | |
Private Attributes | |
bool | theAllowNoVtxFlag |
edm::InputTag | theBeamSpotInputTag |
std::string | theL2SeededTkLabel |
Label for L2SeededTracks. More... | |
bool | thePutTkTrackFlag |
const MuonServiceProxy * | theService |
edm::ESHandle< TrajectorySmoother > | theSmoother |
std::string | theSmootherName |
bool | theSmoothingStep |
bool | theSmoothTkTrackFlag |
bool | theTrajectoryFlag |
bool | theUpdatingAtVtx |
MuonUpdatorAtVertex * | theUpdatorAtVtx |
Class to load the tracks in the event, it provide some common functionalities both for all the RecoMuon producers.
Class to load the product in the event
Definition at line 36 of file MuonTrackLoader.h.
Definition at line 40 of file MuonTrackLoader.h.
Definition at line 39 of file MuonTrackLoader.h.
MuonTrackLoader::MuonTrackLoader | ( | edm::ParameterSet & | parameterSet, |
const MuonServiceProxy * | service = 0 |
||
) |
Constructor for the STA reco the args must be specify!
Definition at line 46 of file MuonTrackLoader.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), MuonUpdatorAtVertex_cff::MuonUpdatorAtVertex, theAllowNoVtxFlag, theBeamSpotInputTag, theL2SeededTkLabel, thePutTkTrackFlag, theSmootherName, theSmoothingStep, theSmoothTkTrackFlag, theTrajectoryFlag, theUpdatingAtVtx, and theUpdatorAtVtx.
|
virtual |
Destructor.
Definition at line 74 of file MuonTrackLoader.cc.
References theUpdatorAtVtx.
|
private |
Build a track at the PCA WITHOUT any vertex constriant.
Definition at line 561 of file MuonTrackLoader.cc.
References FreeTrajectoryState::charge(), Trajectory::chiSquared(), FreeTrajectoryState::curvilinearError(), debug, MuonPatternRecoDumper::dumpFTS(), TrajectoryStateOnSurface::freeState(), Trajectory::geometricalInnermostState(), TrajectoryStateOnSurface::globalPosition(), TrackerBounds::isInside(), LogTrace, FreeTrajectoryState::momentum(), Trajectory::ndof(), L1TEmulatorMonitor_cff::p, FreeTrajectoryState::position(), MuonUpdatorAtVertex::propagate(), theAllowNoVtxFlag, theService, theUpdatorAtVtx, ExpressReco_HICollisions_FallBack::track, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 655 of file MuonTrackLoader.cc.
References alongMomentum, BoundSurface::bounds(), TrajectoryStateOnSurface::curvilinearError(), Trajectory::direction(), Trajectory::firstMeasurement(), TrajectoryStateOnSurface::globalParameters(), Bounds::inside(), Trajectory::lastMeasurement(), LogTrace, GlobalTrajectoryParameters::momentum(), oppositeToMomentum, L1TEmulatorMonitor_cff::p, GlobalTrajectoryParameters::position(), TrajectoryMeasurement::recHit(), Trajectory::recHits(), Trajectory::seedRef(), GeomDet::surface(), theService, GeomDet::toLocal(), TrajectoryMeasurement::updatedState(), v, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Takes a track at the PCA and applies the vertex constriant.
Definition at line 617 of file MuonTrackLoader.cc.
References FreeTrajectoryState::charge(), reco::TrackBase::chi2(), FreeTrajectoryState::curvilinearError(), debug, MuonPatternRecoDumper::dumpFTS(), LogTrace, FreeTrajectoryState::momentum(), reco::TrackBase::ndof(), L1TEmulatorMonitor_cff::p, FreeTrajectoryState::position(), theService, theUpdatorAtVtx, MuonUpdatorAtVertex::update(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
edm::OrphanHandle<reco::TrackCollection> MuonTrackLoader::loadTracks | ( | const TrajectoryContainer & | , |
edm::Event & | , | ||
const std::string & | = "" , |
||
bool | = true |
||
) |
Convert the trajectories into tracks and load the tracks in the event.
Referenced by MuonTrackFinder::load(), and loadTracks().
edm::OrphanHandle<reco::TrackCollection> MuonTrackLoader::loadTracks | ( | const TrajectoryContainer & | , |
edm::Event & | , | ||
std::vector< std::pair< Trajectory *, reco::TrackRef > > | , | ||
const std::string & | = "" , |
||
bool | = true |
||
) |
Convert the trajectories into tracks and load the tracks in the event.
OrphanHandle< reco::MuonTrackLinksCollection > MuonTrackLoader::loadTracks | ( | const CandidateContainer & | muonCands, |
edm::Event & | event | ||
) |
Convert the trajectories into tracks and load the tracks in the event.
Definition at line 284 of file MuonTrackLoader.cc.
References edm::OrphanHandleBase::isValid(), loadTracks(), LogDebug, LogTrace, position, reco::MuonTrackLinks::setStandAloneTrack(), reco::MuonTrackLinks::setTrackerTrack(), theL2SeededTkLabel, thePutTkTrackFlag, theSmoothTkTrackFlag, and ExpressReco_HICollisions_FallBack::trackCollection.
|
private |
Definition at line 90 of file MuonTrackLoader.h.
Referenced by buildTrackAtPCA(), and MuonTrackLoader().
|
private |
Definition at line 84 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Label for L2SeededTracks.
Definition at line 87 of file MuonTrackLoader.h.
Referenced by loadTracks(), and MuonTrackLoader().
|
private |
Definition at line 88 of file MuonTrackLoader.h.
Referenced by loadTracks(), and MuonTrackLoader().
|
private |
Definition at line 73 of file MuonTrackLoader.h.
Referenced by buildTrackAtPCA(), buildTrackExtra(), and buildTrackUpdatedAtPCA().
|
private |
Definition at line 82 of file MuonTrackLoader.h.
|
private |
Definition at line 81 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 80 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 89 of file MuonTrackLoader.h.
Referenced by loadTracks(), and MuonTrackLoader().
|
private |
Definition at line 78 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 75 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 76 of file MuonTrackLoader.h.
Referenced by buildTrackAtPCA(), buildTrackUpdatedAtPCA(), MuonTrackLoader(), and ~MuonTrackLoader().