#include <MuonTrackLoader.h>
Public Types | |
typedef MuonCandidate::CandidateContainer | CandidateContainer |
typedef MuonCandidate::TrajectoryContainer | TrajectoryContainer |
Public Member Functions | |
edm::OrphanHandle< reco::TrackCollection > | loadTracks (TrajectoryContainer &, edm::Event &, const TrackerTopology &ttopo, const std::string &="", bool=true) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
edm::OrphanHandle< reco::TrackCollection > | loadTracks (TrajectoryContainer &, edm::Event &, std::vector< bool > &, const TrackerTopology &ttopo, const std::string &="", bool=true) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
edm::OrphanHandle< reco::TrackCollection > | loadTracks (TrajectoryContainer &, edm::Event &, const std::vector< std::pair< Trajectory *, reco::TrackRef > > &, edm::Handle< reco::TrackCollection > const &trackHandle, const TrackerTopology &ttopo, const std::string &="", bool=true) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
edm::OrphanHandle< reco::MuonTrackLinksCollection > | loadTracks (CandidateContainer &, edm::Event &, const TrackerTopology &ttopo) |
Convert the trajectories into tracks and load the tracks in the event. More... | |
MuonTrackLoader (edm::ParameterSet ¶meterSet, edm::ConsumesCollector &iC, const MuonServiceProxy *service=nullptr) | |
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... | |
Static Private Member Functions | |
static std::vector< const TrackingRecHit * > | unpackHit (const TrackingRecHit &hit) |
Private Attributes | |
TkClonerImpl | hitCloner |
bool | theAllowNoVtxFlag |
edm::InputTag | theBeamSpotInputTag |
edm::EDGetTokenT< reco::BeamSpot > | theBeamSpotToken |
std::string | theL2SeededTkLabel |
Label for L2SeededTracks. More... | |
bool | thePutTkTrackFlag |
const MuonServiceProxy * | theService |
std::unique_ptr< TrajectorySmoother > | theSmoother |
edm::ESGetToken< TrajectorySmoother, TrajectoryFitter::Record > | theSmootherToken |
bool | theSmoothingStep |
bool | theSmoothTkTrackFlag |
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > | theTrackerRecHitBuilderToken |
bool | theTrajectoryFlag |
bool | theUpdatingAtVtx |
std::unique_ptr< 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 45 of file MuonTrackLoader.h.
Definition at line 48 of file MuonTrackLoader.h.
Definition at line 47 of file MuonTrackLoader.h.
MuonTrackLoader::MuonTrackLoader | ( | edm::ParameterSet & | parameterSet, |
edm::ConsumesCollector & | iC, | ||
const MuonServiceProxy * | service = nullptr |
||
) |
Constructor for the STA reco the args must be specify!
Definition at line 95 of file MuonTrackLoader.cc.
References edm::ConsumesCollector::consumes(), edm::ConsumesCollector::esConsumes(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), edm::parameterSet(), AlCaHLTBitMon_QueryRunRegistry::string, theAllowNoVtxFlag, theBeamSpotInputTag, theBeamSpotToken, theL2SeededTkLabel, thePutTkTrackFlag, theSmootherToken, theSmoothingStep, theSmoothTkTrackFlag, theTrackerRecHitBuilderToken, theTrajectoryFlag, theUpdatingAtVtx, and theUpdatorAtVtx.
|
virtual |
|
private |
Build a track at the PCA WITHOUT any vertex constriant.
Definition at line 674 of file MuonTrackLoader.cc.
References pwdgSkimBPark_cfi::beamSpot, FreeTrajectoryState::charge(), Trajectory::chiSquared(), FreeTrajectoryState::curvilinearError(), debug, TrajectoryStateOnSurface::freeState(), Trajectory::geometricalInnermostState(), TrajectoryStateOnSurface::globalPosition(), TrackerBounds::isInside(), LogTrace, metname, FreeTrajectoryState::momentum(), ndof, Trajectory::ndof(), AlCaHLTBitMon_ParallelJobs::p, FreeTrajectoryState::position(), theAllowNoVtxFlag, theService, theUpdatorAtVtx, HLT_2024v11_cff::track, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 755 of file MuonTrackLoader.cc.
References alongMomentum, Surface::bounds(), TrajectoryStateOnSurface::curvilinearError(), Trajectory::direction(), Trajectory::firstMeasurement(), TrajectoryStateOnSurface::globalParameters(), Bounds::inside(), Trajectory::lastMeasurement(), LogTrace, metname, GlobalTrajectoryParameters::momentum(), oppositeToMomentum, AlCaHLTBitMon_ParallelJobs::p, GlobalTrajectoryParameters::position(), TrajectoryMeasurement::recHit(), Trajectory::recHits(), Trajectory::seedRef(), GeomDet::surface(), theService, GeomDet::toLocal(), TrajectoryMeasurement::updatedState(), and findQualityFiles::v.
|
private |
Takes a track at the PCA and applies the vertex constriant.
Definition at line 724 of file MuonTrackLoader.cc.
References pwdgSkimBPark_cfi::beamSpot, FreeTrajectoryState::charge(), FreeTrajectoryState::curvilinearError(), debug, LogTrace, metname, FreeTrajectoryState::momentum(), AlCaHLTBitMon_ParallelJobs::p, FreeTrajectoryState::position(), theService, theUpdatorAtVtx, HLT_2024v11_cff::track, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
edm::OrphanHandle<reco::TrackCollection> MuonTrackLoader::loadTracks | ( | TrajectoryContainer & | , |
edm::Event & | , | ||
const TrackerTopology & | ttopo, | ||
const std::string & | = "" , |
||
bool | = true |
||
) |
Convert the trajectories into tracks and load the tracks in the event.
Referenced by loadTracks().
edm::OrphanHandle<reco::TrackCollection> MuonTrackLoader::loadTracks | ( | TrajectoryContainer & | , |
edm::Event & | , | ||
std::vector< bool > & | , | ||
const TrackerTopology & | ttopo, | ||
const std::string & | = "" , |
||
bool | = true |
||
) |
Convert the trajectories into tracks and load the tracks in the event.
edm::OrphanHandle<reco::TrackCollection> MuonTrackLoader::loadTracks | ( | TrajectoryContainer & | , |
edm::Event & | , | ||
const std::vector< std::pair< Trajectory *, reco::TrackRef > > & | , | ||
edm::Handle< reco::TrackCollection > const & | trackHandle, | ||
const TrackerTopology & | ttopo, | ||
const std::string & | = "" , |
||
bool | = true |
||
) |
Convert the trajectories into tracks and load the tracks in the event.
OrphanHandle< reco::MuonTrackLinksCollection > MuonTrackLoader::loadTracks | ( | CandidateContainer & | muonCands, |
edm::Event & | event, | ||
const TrackerTopology & | ttopo | ||
) |
Convert the trajectories into tracks and load the tracks in the event.
Definition at line 362 of file MuonTrackLoader.cc.
References edm::OrphanHandleBase::isValid(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, electronStore::links, loadTracks(), LogDebug, LogTrace, metname, eostools::move(), position, theL2SeededTkLabel, thePutTkTrackFlag, theSmoothTkTrackFlag, and JetHT_cfg::trackCollection.
|
staticprivate |
Definition at line 48 of file MuonTrackLoader.cc.
References filterCSVwithJSON::copy, MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, hfClusterShapes_cfi::hits, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, MuonSubdetId::ME0, DetId::Muon, MuonSubdetId::RPC, and DetId::Tracker.
|
private |
Definition at line 106 of file MuonTrackLoader.h.
|
private |
Definition at line 115 of file MuonTrackLoader.h.
Referenced by buildTrackAtPCA(), and MuonTrackLoader().
|
private |
Definition at line 108 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 109 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Label for L2SeededTracks.
Definition at line 112 of file MuonTrackLoader.h.
Referenced by loadTracks(), and MuonTrackLoader().
|
private |
Definition at line 113 of file MuonTrackLoader.h.
Referenced by loadTracks(), and MuonTrackLoader().
|
private |
Definition at line 95 of file MuonTrackLoader.h.
Referenced by buildTrackAtPCA(), buildTrackExtra(), and buildTrackUpdatedAtPCA().
|
private |
Definition at line 105 of file MuonTrackLoader.h.
|
private |
Definition at line 103 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 102 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 114 of file MuonTrackLoader.h.
Referenced by loadTracks(), and MuonTrackLoader().
|
private |
Definition at line 104 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 100 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 97 of file MuonTrackLoader.h.
Referenced by MuonTrackLoader().
|
private |
Definition at line 98 of file MuonTrackLoader.h.
Referenced by buildTrackAtPCA(), buildTrackUpdatedAtPCA(), and MuonTrackLoader().