#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 274 of file GhostTrackVertexFinder.cc.
GhostTrackVertexFinder::GhostTrackVertexFinder | ( | double | maxFitChi2, |
double | mergeThreshold, | ||
double | primcut, | ||
double | seccut, | ||
FitType | fitType | ||
) |
Definition at line 283 of file GhostTrackVertexFinder.cc.
GhostTrackVertexFinder::~GhostTrackVertexFinder | ( | ) |
Definition at line 294 of file GhostTrackVertexFinder.cc.
|
private |
Definition at line 298 of file GhostTrackVertexFinder.cc.
References ghostTrackFitter_.
Referenced by vertices().
|
private |
Definition at line 750 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackVertexFinder::FinderInfo::ghostTrack, reco::GhostTrackState::isValid(), CachingVertex< N >::isValid(), reco::GhostTrackState::linearize(), reco::GhostTrackVertexFinder::FinderInfo::pred, reco::GhostTrackVertexFinder::FinderInfo::states, vertexAtState(), and vertices().
Referenced by vertices().
|
private |
Definition at line 799 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackVertexFinder::FinderInfo::beamSpot, MillePedeFileConverter_cfg::e, VertexState::error(), fitType_, reco::GhostTrackVertexFinder::FinderInfo::ghostTrack, reco::GhostTrackVertexFinder::FinderInfo::hasBeamSpot, CachingVertex< N >::isValid(), kAlwaysWithGhostTrack, mergeTrackHelper(), VertexState::position(), stateMean(), CachingVertex< N >::tracks(), VertexFitter< N >::vertex(), vertexFitter(), CachingVertex< N >::vertexState(), VertexTrackFactory< N >::vertexTrack(), and extraflags_cff::vtx.
Referenced by recursiveMerge().
|
private |
Definition at line 932 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackVertexFinder::FinderInfo::beamSpot, MillePedeFileConverter_cfg::e, VertexState::error(), fitType_, reco::GhostTrackVertexFinder::FinderInfo::ghostTrack, reco::GhostTrackVertexFinder::FinderInfo::hasBeamSpot, training_settings::idx, CachingVertex< N >::isValid(), kAlwaysWithGhostTrack, reco::GhostTrackPrediction::lambda(), LinearizedTrackStateFactory::linearizedTrackState(), VertexState::position(), TransientVertex::position(), reco::GhostTrackVertexFinder::FinderInfo::pred, primcut_, relinearizeTrack(), relinearizeTracks(), seccut_, funct::sqr(), reco::GhostTrackVertexFinder::FinderInfo::states, std::swap(), HiIsolationCommonParameters_cff::track, reco::TransientTrack::track(), trackVertexCompat(), VertexFitter< N >::vertex(), vertexAtState(), vertexFitter(), VertexTrackFactory< N >::vertexTrack(), vertices(), and extraflags_cff::vtx.
Referenced by vertices().
|
private |
Definition at line 842 of file GhostTrackVertexFinder.cc.
References fitChi2(), mps_fire::i, CachingVertex< N >::isValid(), SiStripPI::max, maxFitChi2_, mergeThreshold_, mergeVertices(), min(), gen::n, trackingPlots::other, primcut_, seccut_, std::swap(), vertexCompat(), and vertices().
Referenced by vertices().
|
private |
Definition at line 1072 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackVertexFinder::FinderInfo::beamSpot, vertices_cff::chi2, MillePedeFileConverter_cfg::e, VertexState::error(), reco::GhostTrackVertexFinder::FinderInfo::field, reco::SequentialGhostTrackFitter::fit(), reco::GhostTrackVertexFinder::FinderInfo::ghostTrack, reco::GhostTrackVertexFinder::FinderInfo::hasBeamSpot, training_settings::idx, CachingVertex< N >::isValid(), LinearizedTrackStateFactory::linearizedTrackState(), ndof, VertexState::position(), reco::GhostTrackVertexFinder::FinderInfo::pred, reco::GhostTrackVertexFinder::FinderInfo::prior, reco::GhostTrackVertexFinder::FinderInfo::states, std::swap(), HiIsolationCommonParameters_cff::track, transientGhostTrack(), groupFilesInBlocks::tt, VertexFitter< N >::vertex(), vertexAtState(), vertexFitter(), VertexTrackFactory< N >::vertexTrack(), vertices(), and extraflags_cff::vtx.
Referenced by vertices().
|
staticprivate |
Definition at line 237 of file GhostTrackVertexFinder.cc.
References conv, diffTreeTool::diff, CachingVertex< N >::error(), GlobalErrorBase< T, ErrorWeightType >::matrix(), CachingVertex< N >::position(), and funct::sqr().
Referenced by recursiveMerge().
|
private |
Definition at line 306 of file GhostTrackVertexFinder.cc.
References reco::TrackKinematics::add(), FreeTrajectoryState::charge(), gather_cfg::cout, TransientVertex::degreesOfFreedom(), reco::GhostTrackPrediction::direction(), MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, reco::TransientTrack::initialFreeState(), reco::GhostTrackPrediction::lambda(), FreeTrajectoryState::momentum(), TransientVertex::originalTracks(), TransientVertex::position(), TransientVertex::positionError(), primcut_, primVertexFitter_, reco::GhostTrackPrediction::rho(), reco::GhostTrackPrediction::rho2(), seccut_, secVertexFitter_, mathSSE::sqrt(), TransientVertex::totalChiSquared(), HiIsolationCommonParameters_cff::track, reco::TransientTrack::trackBaseRef(), l1t::tracks, tracks_, reco::TrackKinematics::vectorSum(), extraflags_cff::vtx, and vtxErrorLong().
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 377 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::Vertex::error(), and reco::Vertex::position().
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 413 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackFitter::fit(), ghostTrackFitter(), reco::GhostTrack::prediction(), mps_fire::result, 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 388 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::Vertex::error(), reco::Vertex::position(), 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 438 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackFitter::fit(), ghostTrackFitter(), reco::GhostTrack::prediction(), mps_fire::result, 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 400 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::Vertex::error(), reco::Vertex::position(), 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 465 of file GhostTrackVertexFinder.cc.
References reco::GhostTrackFitter::fit(), ghostTrackFitter(), LinearizedTrackStateFactory::linearizedTrackState(), reco::GhostTrack::prediction(), mps_fire::result, 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 636 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::Vertex::error(), reco::Vertex::position(), reco::GhostTrack::prediction(), mps_fire::result, and vertices().
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 664 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::Vertex::error(), reco::Vertex::position(), reco::GhostTrack::prediction(), mps_fire::result, 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 693 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), dummyPrediction(), reco::Vertex::error(), LinearizedTrackStateFactory::linearizedTrackState(), VertexState::position(), reco::Vertex::position(), reco::GhostTrack::prediction(), mps_fire::result, VertexTrackFactory< N >::vertexTrack(), and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const GlobalPoint & | primaryPosition, |
const GlobalError & | primaryError, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 513 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 533 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 std::vector< TransientTrack > & | primaries, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 554 of file GhostTrackVertexFinder.cc.
References 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 596 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::Vertex::error(), reco::Vertex::position(), and vertices().
std::vector< TransientVertex > GhostTrackVertexFinder::vertices | ( | const reco::Vertex & | primaryVertex, |
const reco::BeamSpot & | beamSpot, | ||
const GhostTrack & | ghostTrack | ||
) | const |
Definition at line 605 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::Vertex::error(), reco::Vertex::position(), 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 615 of file GhostTrackVertexFinder.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::Vertex::error(), reco::Vertex::position(), 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 1196 of file GhostTrackVertexFinder.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, reco::GhostTrackVertexFinder::FinderInfo::field, fitType_, reco::GhostTrackVertexFinder::FinderInfo::ghostTrack, info(), initialVertices(), CachingVertex< N >::isValid(), kRefitGhostTrackWithVertices, reco::GhostTrackVertexFinder::FinderInfo::pred, reco::GhostTrack::prediction(), reassignTracks(), recursiveMerge(), refitGhostTrack(), mps_fire::result, reco::GhostTrackVertexFinder::FinderInfo::states, std::swap(), transientGhostTrack(), vertices(), and extraflags_cff::vtx.
|
private |
Definition at line 180 of file GhostTrackVertexFinder.h.
Referenced by mergeVertices(), reassignTracks(), and vertices().
|
mutableprivate |
Definition at line 182 of file GhostTrackVertexFinder.h.
Referenced by ghostTrackFitter().
|
private |
Definition at line 176 of file GhostTrackVertexFinder.h.
Referenced by recursiveMerge().
|
private |
Definition at line 177 of file GhostTrackVertexFinder.h.
Referenced by recursiveMerge().
|
private |
Definition at line 178 of file GhostTrackVertexFinder.h.
Referenced by reassignTracks(), recursiveMerge(), and vertexFitter().
|
mutableprivate |
Definition at line 183 of file GhostTrackVertexFinder.h.
Referenced by vertexFitter().
|
private |
Definition at line 179 of file GhostTrackVertexFinder.h.
Referenced by reassignTracks(), recursiveMerge(), and vertexFitter().
|
mutableprivate |
Definition at line 184 of file GhostTrackVertexFinder.h.
Referenced by vertexFitter().