#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 GhostTrack &ghostTrack, const CachingVertex< 5 > &primary=CachingVertex< 5 >(), const reco::BeamSpot &beamSpot=reco::BeamSpot(), bool hasBeamSpot=false, bool hasPrimaries=false) 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 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 > &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 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 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 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 std::vector< TransientTrack > &tracks) 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 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 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 std::vector< TransientTrack > &tracks, const std::vector< float > &weights=std::vector< float >()) 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 259 of file GhostTrackVertexFinder.cc.
GhostTrackVertexFinder::GhostTrackVertexFinder | ( | double | maxFitChi2, |
double | mergeThreshold, | ||
double | primcut, | ||
double | seccut, | ||
FitType | fitType | ||
) |
Definition at line 262 of file GhostTrackVertexFinder.cc.
GhostTrackVertexFinder::~GhostTrackVertexFinder | ( | ) |
Definition at line 266 of file GhostTrackVertexFinder.cc.
|
private |
Definition at line 268 of file GhostTrackVertexFinder.cc.
References ghostTrackFitter_.
Referenced by vertices().
|
private |
Definition at line 638 of file GhostTrackVertexFinder.cc.
References info(), reco::GhostTrackState::isValid(), reco::GhostTrackState::linearize(), vertexAtState(), vertices(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by vertices().
|
private |
Definition at line 679 of file GhostTrackVertexFinder.cc.
References MillePedeFileConverter_cfg::e, fitType_, info(), kAlwaysWithGhostTrack, mergeTrackHelper(), stateMean(), CachingVertex< N >::tracks(), VertexFitter< N >::vertex(), vertexFitter(), CachingVertex< N >::vertexState(), VertexTrackFactory< N >::vertexTrack(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by recursiveMerge().
|
private |
Definition at line 783 of file GhostTrackVertexFinder.cc.
References MillePedeFileConverter_cfg::e, fitType_, training_settings::idx, info(), kAlwaysWithGhostTrack, LinearizedTrackStateFactory::linearizedTrackState(), primcut_, relinearizeTrack(), relinearizeTracks(), seccut_, sqr(), std::swap(), HLT_2018_cff::track, PDWG_EXOHSCP_cff::tracks, trackVertexCompat(), VertexFitter< N >::vertex(), vertexAtState(), vertexFitter(), VertexTrackFactory< N >::vertexTrack(), vertices(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by vertices().
|
private |
Definition at line 711 of file GhostTrackVertexFinder.cc.
References fitChi2(), mps_fire::i, bTagCombinedSVVariables_cff::indices, info(), dqmiolumiharvest::j, SiStripPI::max, maxFitChi2_, mergeThreshold_, mergeVertices(), min(), dqmiodumpmetadata::n, BeamSpotFilterParameters_cfi::newVtx, trackingPlots::other, primcut_, seccut_, std::swap(), vertexCompat(), and vertices().
Referenced by vertices().
|
private |
Definition at line 893 of file GhostTrackVertexFinder.cc.
References hltPixelTracks_cff::chi2, MillePedeFileConverter_cfg::e, reco::SequentialGhostTrackFitter::fit(), training_settings::idx, info(), LinearizedTrackStateFactory::linearizedTrackState(), ndof, std::swap(), HLT_2018_cff::track, transientGhostTrack(), groupFilesInBlocks::tt, VertexFitter< N >::vertex(), vertexAtState(), vertexFitter(), VertexTrackFactory< N >::vertexTrack(), vertices(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by vertices().
|
staticprivate |
Definition at line 230 of file GhostTrackVertexFinder.cc.
References conv, change_name::diff, CachingVertex< N >::error(), GlobalErrorBase< T, ErrorWeightType >::matrix(), CachingVertex< N >::position(), and sqr().
Referenced by recursiveMerge().
|
private |
Definition at line 275 of file GhostTrackVertexFinder.cc.
References primcut_, primVertexFitter_, seccut_, and secVertexFitter_.
Referenced by mergeVertices(), reassignTracks(), and refitGhostTrack().
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 996 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, std::swap(), PDWG_EXOHSCP_cff::tracks, transientGhostTrack(), vertices(), and badGlobalMuonTaggersAOD_cff::vtx.
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 445 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 GlobalVector & | direction, | ||
double | coneRadius, | ||
const reco::BeamSpot & | beamSpot, | ||
const std::vector< TransientTrack > & | primaries, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 410 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, UEAnalysisJets_cfi::coneRadius, reco::GhostTrackFitter::fit(), ghostTrackFitter(), LinearizedTrackStateFactory::linearizedTrackState(), reco::GhostTrack::prediction(), mps_fire::result, PDWG_EXOHSCP_cff::tracks, VertexTrackFactory< N >::vertexTrack(), 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 390 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, UEAnalysisJets_cfi::coneRadius, reco::GhostTrackFitter::fit(), ghostTrackFitter(), reco::GhostTrack::prediction(), mps_fire::result, PDWG_EXOHSCP_cff::tracks, 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 371 of file GhostTrackVertexFinder.cc.
References UEAnalysisJets_cfi::coneRadius, reco::GhostTrackFitter::fit(), ghostTrackFitter(), reco::GhostTrack::prediction(), mps_fire::result, PDWG_EXOHSCP_cff::tracks, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const reco::BeamSpot & | beamSpot, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 460 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 476 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 507 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, 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 356 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, UEAnalysisJets_cfi::coneRadius, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, PDWG_EXOHSCP_cff::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 343 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, UEAnalysisJets_cfi::coneRadius, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, PDWG_EXOHSCP_cff::tracks, and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 332 of file GhostTrackVertexFinder.cc.
References UEAnalysisJets_cfi::coneRadius, RecoVertex::convertError(), RecoVertex::convertPos(), BeamMonitor_cff::primaryVertex, and PDWG_EXOHSCP_cff::tracks.
Referenced by initialVertices(), reassignTracks(), recursiveMerge(), refitGhostTrack(), and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::BeamSpot & | beamSpot, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 513 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 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::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 593 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), LinearizedTrackStateFactory::linearizedTrackState(), VertexState::position(), reco::GhostTrack::prediction(), BeamMonitor_cff::primaryVertex, mps_fire::result, PDWG_EXOHSCP_cff::tracks, VertexTrackFactory< N >::vertexTrack(), vertices(), and HLT_2018_cff::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 566 of file GhostTrackVertexFinder.cc.
References pwdgSkimBPark_cfi::beamSpot, RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::GhostTrack::prediction(), BeamMonitor_cff::primaryVertex, mps_fire::result, PDWG_EXOHSCP_cff::tracks, vertices(), and HLT_2018_cff::weights.
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 540 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::GhostTrack::prediction(), BeamMonitor_cff::primaryVertex, mps_fire::result, PDWG_EXOHSCP_cff::tracks, vertices(), and HLT_2018_cff::weights.
|
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().