ATLAS Offline Software
Loading...
Searching...
No Matches
TrkPriVxPurity.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRKVERTEXFITTERVALIDATIONUTILS_TRKPRIVXPURITY_H
6#define TRKVERTEXFITTERVALIDATIONUTILS_TRKPRIVXPURITY_H
7
8#include <vector>
9#include "GaudiKernel/MsgStream.h"
10
36
37namespace Trk
38{
39
41 {
42
43 public:
44
51 TrkPriVxPurity(int ntrk, const std::vector<double>& puWeights,
52 const std::vector<double>& noTruth,
53 int brLinks, const std::vector<double>& inWeights,
54 const std::vector<double>& outWeights);
55
60
64 unsigned int fittedTracks() const;
65
69 const std::vector<double>& pileUpWeights() const;
70
74 const std::vector<double>& noTruthFound() const;
75
79 unsigned int brokenLinks() const;
80
84 const std::vector<double>& inlierWeights()const;
85
89 const std::vector<double>& outlierWeights()const;
90
94 MsgStream& dump(MsgStream& sl) const;
95
99 std::ostream& dump(std::ostream& sl) const;
100
101 private:
102
103 unsigned int m_fittedTracks;
104 std::vector<double> m_puWeights;
105 std::vector<double> m_noTruth;
106 unsigned int m_brokenLinks;
107
108 std::vector<double> m_inWeights;
109 std::vector<double> m_outWeights;
110 };
111
112 inline unsigned int TrkPriVxPurity::fittedTracks() const
113 { return m_fittedTracks; }
114
115 inline const std::vector<double>& TrkPriVxPurity::noTruthFound() const
116 { return m_noTruth; }
117
118 inline const std::vector<double>& TrkPriVxPurity::outlierWeights()const
119 { return m_outWeights; }
120
121 inline const std::vector<double>& TrkPriVxPurity::inlierWeights()const
122 { return m_inWeights; }
123
124 inline unsigned int TrkPriVxPurity::brokenLinks() const
125 {return m_brokenLinks; }
126
127 inline const std::vector<double>& TrkPriVxPurity::pileUpWeights() const
128 {return m_puWeights; }
129
130}// end of namespace definitions
131
132#endif
unsigned int brokenLinks() const
Number of lost pointers: these must software bugs if any.
unsigned int fittedTracks() const
Number of fitted tracks.
std::vector< double > m_outWeights
std::vector< double > m_puWeights
~TrkPriVxPurity()
Destructor.
const std::vector< double > & inlierWeights() const
List of track weights for inliers (only tracks from signal event are listed)
const std::vector< double > & pileUpWeights() const
Weights of tracks from pileUp events.
std::vector< double > m_inWeights
const std::vector< double > & outlierWeights() const
List of track weights for outliers (only tracks from the signal event are listed)
std::vector< double > m_noTruth
const std::vector< double > & noTruthFound() const
Weights of not associated tracks.
unsigned int m_fittedTracks
TrkPriVxPurity(int ntrk, const std::vector< double > &puWeights, const std::vector< double > &noTruth, int brLinks, const std::vector< double > &inWeights, const std::vector< double > &outWeights)
Constructor, requiring a number of fitted tracks, wectors of weghts for inlyers, outlyers,...
unsigned int m_brokenLinks
Ensure that the ATLAS eigen extensions are properly loaded.
-event-from-file