#include <GhostTrackVertexFinder.h>
Classes | |
struct | FinderInfo |
Public Types | |
enum | FitType { kAlwaysWithGhostTrack, kSingleTracksWithGhostTrack, kRefitGhostTrackWithVertices } |
Public Member Functions | |
GhostTrackVertexFinder () | |
GhostTrackVertexFinder (double maxFitChi2, double mergeThreshold, double primcut, double seccut, FitType fitType) | |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const GlobalVector &direction, double coneRadius, const std::vector< TransientTrack > &tracks) const |
std::vector< TransientVertex > | vertices (const GlobalPoint &primaryPosition, const GlobalError &primaryError, const GlobalVector &direction, double coneRadius, const std::vector< TransientTrack > &tracks) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const GlobalVector &direction, double coneRadius, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &tracks) const |
std::vector< TransientVertex > | vertices (const GlobalPoint &primaryPosition, const GlobalError &primaryError, const GlobalVector &direction, double coneRadius, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &tracks) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const GlobalVector &direction, double coneRadius, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &primaries, const std::vector< TransientTrack > &tracks) const |
std::vector< TransientVertex > | vertices (const GlobalPoint &primaryPosition, const GlobalError &primaryError, const GlobalVector &direction, double coneRadius, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &primaries, const std::vector< TransientTrack > &tracks) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const reco::Track &ghostTrack, const std::vector< TransientTrack > &tracks, const std::vector< float > &weights=std::vector< float >()) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const reco::Track &ghostTrack, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &tracks, const std::vector< float > &weights=std::vector< float >()) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const reco::Track &ghostTrack, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &primaries, const std::vector< TransientTrack > &tracks, const std::vector< float > &weights=std::vector< float >()) const |
std::vector< TransientVertex > | vertices (const GlobalPoint &primaryPosition, const GlobalError &primaryError, const GhostTrack &ghostTrack) const |
std::vector< TransientVertex > | vertices (const GlobalPoint &primaryPosition, const GlobalError &primaryError, const reco::BeamSpot &beamSpot, const GhostTrack &ghostTrack) const |
std::vector< TransientVertex > | vertices (const GlobalPoint &primaryPosition, const GlobalError &primaryError, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &primaries, const GhostTrack &ghostTrack) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const GhostTrack &ghostTrack) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const reco::BeamSpot &beamSpot, const GhostTrack &ghostTrack) const |
std::vector< TransientVertex > | vertices (const reco::Vertex &primaryVertex, const reco::BeamSpot &beamSpot, const std::vector< TransientTrack > &primaries, const GhostTrack &ghostTrack) const |
std::vector< TransientVertex > | vertices (const GhostTrack &ghostTrack, const CachingVertex< 5 > &primary=CachingVertex< 5 >(), const reco::BeamSpot &beamSpot=reco::BeamSpot(), bool hasBeamSpot=false, bool hasPrimaries=false) const |
~GhostTrackVertexFinder () | |
Private Member Functions | |
GhostTrackFitter & | ghostTrackFitter () const |
std::vector< CachingVertex< 5 > > | initialVertices (const FinderInfo &info) const |
CachingVertex< 5 > | mergeVertices (const CachingVertex< 5 > &vertex1, const CachingVertex< 5 > &vertex2, const FinderInfo &info, bool isPrimary) const |
bool | reassignTracks (std::vector< CachingVertex< 5 > > &vertices, const FinderInfo &info) const |
bool | recursiveMerge (std::vector< CachingVertex< 5 > > &vertices, const FinderInfo &info) const |
void | refitGhostTrack (std::vector< CachingVertex< 5 > > &vertices, FinderInfo &info) const |
VertexFitter< 5 > & | vertexFitter (bool primary) const |
Static Private Member Functions | |
static double | vertexCompat (const CachingVertex< 5 > &vtx1, const CachingVertex< 5 > &vtx2, const FinderInfo &info, double scale1=1.0, double scale2=1.0) |
Private Attributes | |
FitType | fitType_ |
std::unique_ptr< GhostTrackFitter > | ghostTrackFitter_ |
double | maxFitChi2_ |
double | mergeThreshold_ |
double | primcut_ |
std::unique_ptr< VertexFitter< 5 > > | primVertexFitter_ |
double | seccut_ |
std::unique_ptr< VertexFitter< 5 > > | secVertexFitter_ |
Definition at line 29 of file GhostTrackVertexFinder.h.
Enumerator | |
---|---|
kAlwaysWithGhostTrack | |
kSingleTracksWithGhostTrack | |
kRefitGhostTrackWithVertices |
Definition at line 31 of file GhostTrackVertexFinder.h.
GhostTrackVertexFinder::GhostTrackVertexFinder | ( | ) |
Definition at line 268 of file GhostTrackVertexFinder.cc.
GhostTrackVertexFinder::GhostTrackVertexFinder | ( | double | maxFitChi2, |
double | mergeThreshold, | ||
double | primcut, | ||
double | seccut, | ||
FitType | fitType | ||
) |
Definition at line 271 of file GhostTrackVertexFinder.cc.
GhostTrackVertexFinder::~GhostTrackVertexFinder | ( | ) |
Definition at line 275 of file GhostTrackVertexFinder.cc.
|
private |
Definition at line 277 of file GhostTrackVertexFinder.cc.
References ghostTrackFitter_.
Referenced by vertices().
|
private |
Definition at line 647 of file GhostTrackVertexFinder.cc.
References info(), vertexAtState(), vertices(), and L1BJetProducer_cff::vtx.
Referenced by vertices().
|
private |
Definition at line 688 of file GhostTrackVertexFinder.cc.
References MillePedeFileConverter_cfg::e, fitType_, info(), phase2tkutil::isPrimary(), kAlwaysWithGhostTrack, mergeTrackHelper(), stateMean(), CachingVertex< N >::tracks(), VertexFitter< N >::vertex(), vertexFitter(), CachingVertex< N >::vertexState(), VertexTrackFactory< N >::vertexTrack(), and L1BJetProducer_cff::vtx.
Referenced by recursiveMerge().
|
private |
Definition at line 792 of file GhostTrackVertexFinder.cc.
References MillePedeFileConverter_cfg::e, fitType_, heavyIonCSV_trainingSettings::idx, info(), kAlwaysWithGhostTrack, LinearizedTrackStateFactory::linearizedTrackState(), primcut_, relinearizeTrack(), relinearizeTracks(), seccut_, funct::sqr(), edm::swap(), HLT_2023v12_cff::track, DiMuonV_cfg::tracks, trackVertexCompat(), trackerHitRTTI::vector, VertexFitter< N >::vertex(), vertexAtState(), vertexFitter(), VertexTrackFactory< N >::vertexTrack(), vertices(), and L1BJetProducer_cff::vtx.
Referenced by vertices().
|
private |
Definition at line 720 of file GhostTrackVertexFinder.cc.
References fitChi2(), mps_fire::i, dqmdumpme::indices, info(), dqmiolumiharvest::j, SiStripPI::max, maxFitChi2_, mergeThreshold_, mergeVertices(), SiStripPI::min, dqmiodumpmetadata::n, BeamSpotFilterParameters_cfi::newVtx, trackingPlots::other, primcut_, seccut_, edm::swap(), vertexCompat(), and vertices().
Referenced by vertices().
|
private |
Definition at line 902 of file GhostTrackVertexFinder.cc.
References nano_mu_local_reco_cff::chi2, MillePedeFileConverter_cfg::e, reco::SequentialGhostTrackFitter::fit(), heavyIonCSV_trainingSettings::idx, info(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LinearizedTrackStateFactory::linearizedTrackState(), ndof, edm::swap(), HLT_2023v12_cff::track, transientGhostTrack(), groupFilesInBlocks::tt, trackerHitRTTI::vector, VertexFitter< N >::vertex(), vertexAtState(), vertexFitter(), VertexTrackFactory< N >::vertexTrack(), vertices(), and L1BJetProducer_cff::vtx.
Referenced by vertices().
|
staticprivate |
Definition at line 239 of file GhostTrackVertexFinder.cc.
References conv, change_name::diff, CachingVertex< N >::error(), GlobalErrorBase< T, ErrorWeightType >::matrix(), CachingVertex< N >::position(), and funct::sqr().
Referenced by recursiveMerge().
|
private |
Definition at line 284 of file GhostTrackVertexFinder.cc.
References primcut_, primVertexFitter_, seccut_, and secVertexFitter_.
Referenced by mergeVertices(), reassignTracks(), and refitGhostTrack().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 341 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, and DiMuonV_cfg::tracks.
Referenced by initialVertices(), reassignTracks(), recursiveMerge(), refitGhostTrack(), and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 380 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackFitter::fit(), ghostTrackFitter(), reco::GhostTrack::prediction(), mps_fire::result, DiMuonV_cfg::tracks, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 352 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, DiMuonV_cfg::tracks, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 399 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, reco::GhostTrackFitter::fit(), ghostTrackFitter(), reco::GhostTrack::prediction(), mps_fire::result, DiMuonV_cfg::tracks, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | primaries, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 365 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, DiMuonV_cfg::tracks, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | primaries, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 419 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, reco::GhostTrackFitter::fit(), ghostTrackFitter(), LinearizedTrackStateFactory::linearizedTrackState(), reco::GhostTrack::prediction(), mps_fire::result, DiMuonV_cfg::tracks, VertexTrackFactory< N >::vertexTrack(), and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::Track & | ghostTrack, | ||
const std::vector< TransientTrack > & | tracks, | ||
const std::vector< float > & | weights = std::vector<float>() |
||
) | const |
Definition at line 549 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::GhostTrack::prediction(), BeamMonitor_cff::primaryVertex, mps_fire::result, DiMuonV_cfg::tracks, vertices(), and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::Track & | ghostTrack, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | tracks, | ||
const std::vector< float > & | weights = std::vector<float>() |
||
) | const |
Definition at line 575 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::GhostTrack::prediction(), BeamMonitor_cff::primaryVertex, mps_fire::result, DiMuonV_cfg::tracks, vertices(), and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::Track & | ghostTrack, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | primaries, | ||
const std::vector< TransientTrack > & | tracks, | ||
const std::vector< float > & | weights = std::vector<float>() |
||
) | const |
Definition at line 602 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), LinearizedTrackStateFactory::linearizedTrackState(), reco::GhostTrack::prediction(), BeamMonitor_cff::primaryVertex, mps_fire::result, DiMuonV_cfg::tracks, VertexTrackFactory< N >::vertexTrack(), vertices(), and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 454 of file GhostTrackVertexFinder.cc.
References reco::GhostTrack::prediction(), mps_fire::result, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const reco::BeamSpot & | beamSpot, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 469 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, reco::GhostTrack::prediction(), mps_fire::result, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | primaries, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 485 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, LinearizedTrackStateFactory::linearizedTrackState(), reco::GhostTrack::prediction(), mps_fire::result, VertexTrackFactory< N >::vertexTrack(), and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 516 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::BeamSpot & | beamSpot, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 522 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | primaries, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 531 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GhostTrack & | ghostTrack, |
const CachingVertex< 5 > & | primary = CachingVertex<5>() , |
||
const reco::BeamSpot & | beamSpot = reco::BeamSpot() , |
||
bool | hasBeamSpot = false , |
||
bool | hasPrimaries = false |
||
) | const |
Definition at line 1005 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, gather_cfg::cout, MillePedeFileConverter_cfg::e, fitType_, info(), initialVertices(), CachingVertex< N >::isValid(), kRefitGhostTrackWithVertices, reco::GhostTrack::prediction(), reassignTracks(), recursiveMerge(), refitGhostTrack(), mps_fire::result, edm::swap(), DiMuonV_cfg::tracks, transientGhostTrack(), trackerHitRTTI::vector, vertices(), and L1BJetProducer_cff::vtx.
|
private |
Definition at line 155 of file GhostTrackVertexFinder.h.
Referenced by mergeVertices(), reassignTracks(), and vertices().
|
mutableprivate |
Definition at line 157 of file GhostTrackVertexFinder.h.
Referenced by ghostTrackFitter().
|
private |
Definition at line 151 of file GhostTrackVertexFinder.h.
Referenced by recursiveMerge().
|
private |
Definition at line 152 of file GhostTrackVertexFinder.h.
Referenced by recursiveMerge().
|
private |
Definition at line 153 of file GhostTrackVertexFinder.h.
Referenced by reassignTracks(), recursiveMerge(), and vertexFitter().
|
mutableprivate |
Definition at line 158 of file GhostTrackVertexFinder.h.
Referenced by vertexFitter().
|
private |
Definition at line 154 of file GhostTrackVertexFinder.h.
Referenced by reassignTracks(), recursiveMerge(), and vertexFitter().
|
mutableprivate |
Definition at line 159 of file GhostTrackVertexFinder.h.
Referenced by vertexFitter().