14 for (
unsigned int i = 0;
i < trks.
size();
i++) {
15 sumZIP += trks[
i]->dz();
16 err += trks[
i]->dzError();
28 for (
unsigned int i = 0;
i < trks.
size();
i++) {
30 double err2 = trks[
i]->dzError();
33 sumUp += trks[
i]->dz() * 1 / err2;
PVPositionBuilder()
Constructor does nothing, no data members.
Measurement1D average(const reco::TrackRefVector &trks) const
Calculate unweighted average of Z of tracks from const collection of track pointers.
size_type size() const
Size of the RefVector.
Measurement1D wtAverage(const reco::TrackRefVector &trks) const
Calculate Error-Weighted average of Z of tracks from const collection of track pointers.