#include <RecoPixelVertexing/PixelVertexFinding/PVPositionBuilder.h>
Public Member Functions | |
Measurement1D | average (const reco::TrackRefVector &trks) const |
Calculate unweighted average of Z of tracks from const collection of track pointers. More... | |
PVPositionBuilder () | |
Constructor does nothing, no data members. More... | |
Measurement1D | wtAverage (const reco::TrackRefVector &trks) const |
Calculate Error-Weighted average of Z of tracks from const collection of track pointers. More... | |
This helper class calculates the average Z position of a collection of tracks. You have the option of calculating the straight average, or making a weighted average using the error of the Z of the tracks. This class is used by the pixel vertexing to make a PVCluster and is used by other PVCluster-related classes
Definition at line 17 of file PVPositionBuilder.h.
PVPositionBuilder::PVPositionBuilder | ( | ) |
Constructor does nothing, no data members.
Constructor does nothing since this class has no data.
Definition at line 5 of file PVPositionBuilder.cc.
Measurement1D PVPositionBuilder::average | ( | const reco::TrackRefVector & | trks | ) | const |
Calculate unweighted average of Z of tracks from const collection of track pointers.
Definition at line 7 of file PVPositionBuilder.cc.
References mps_fire::i, vertices_cff::ntracks, edm::RefVector< C, T, F >::size(), and mathSSE::sqrt().
Referenced by DivisiveVertexFinder::findVertexes().
Measurement1D PVPositionBuilder::wtAverage | ( | const reco::TrackRefVector & | trks | ) | const |
Calculate Error-Weighted average of Z of tracks from const collection of track pointers.
Definition at line 21 of file PVPositionBuilder.cc.
References mps_fire::i, vertices_cff::ntracks, edm::RefVector< C, T, F >::size(), and mathSSE::sqrt().
Referenced by DivisiveVertexFinder::findVertexes().