ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::TrkPriVxPurity Class Reference

#include <TrkPriVxPurity.h>

Collaboration diagram for Trk::TrkPriVxPurity:

Public Member Functions

 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, pileup tracks and tracks with no truth association. More...
 
 ~TrkPriVxPurity ()
 Destructor. More...
 
unsigned int fittedTracks () const
 Number of fitted tracks
More...
 
const std::vector< double > & pileUpWeights () const
 Weights of tracks from pileUp events
More...
 
const std::vector< double > & noTruthFound () const
 Weights of not associated tracks
More...
 
unsigned int brokenLinks () const
 Number of lost pointers: these must software bugs if any. More...
 
const std::vector< double > & inlierWeights () const
 List of track weights for inliers (only tracks from signal event are listed) More...
 
const std::vector< double > & outlierWeights () const
 List of track weights for outliers (only tracks from the signal event are listed)
More...
 
MsgStream & dump (MsgStream &sl) const
 Dump info method. More...
 
std::ostream & dump (std::ostream &sl) const
 Dump info method. More...
 

Private Attributes

unsigned int m_fittedTracks
 
std::vector< double > m_puWeights
 
std::vector< double > m_noTruth
 
unsigned int m_brokenLinks
 
std::vector< double > m_inWeights
 
std::vector< double > m_outWeights
 

Detailed Description

A prototype data class for primary vertex purity. Provides a truth information summary about the fitted primary vertex:

– Number tracks fitted to the vertex

– Number of tracks w/o original info stored

– Number of tracks w/o truth associated: While the PU navigation is not available, this number includes both fake reconstructed and pileup tracks

– Vector of weights for tracks fitted to the vertex, but originating elswhere: So far these are only signal event outliers, products of decay of long-living particles, conversions and do on... Once the PU truth navigation is available, these will also be tracks coming from PU.

– Vector of weights of tracks w.r.t. fitted vertex

Author
Kirill Prokofiev, October 2006.

Definition at line 40 of file TrkPriVxPurity.h.

Constructor & Destructor Documentation

◆ TrkPriVxPurity()

Trk::TrkPriVxPurity::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, pileup tracks and tracks with no truth association.

Number of tracks with broken links to the truth (possible software bugs) is also stored.

Definition at line 10 of file TrkPriVxPurity.cxx.

13  :
14  m_fittedTracks(ntrk), m_puWeights(puWeights),
15  m_noTruth(noTruth),m_brokenLinks(brLinks),
16  m_inWeights(inWeights),
17  m_outWeights(outWeights)
18  {}

◆ ~TrkPriVxPurity()

Trk::TrkPriVxPurity::~TrkPriVxPurity ( )
inline

Destructor.

Definition at line 59 of file TrkPriVxPurity.h.

59 {}

Member Function Documentation

◆ brokenLinks()

unsigned int Trk::TrkPriVxPurity::brokenLinks ( ) const
inline

Number of lost pointers: these must software bugs if any.

Definition at line 124 of file TrkPriVxPurity.h.

125  {return m_brokenLinks; }

◆ dump() [1/2]

MsgStream & Trk::TrkPriVxPurity::dump ( MsgStream &  sl) const

Dump info method.

Definition at line 22 of file TrkPriVxPurity.cxx.

23  {
24  sl<<"***** Primary Vertex Purity Info *****"<<std::endl;
25  sl<<"Total number of fitted tracks "<<m_fittedTracks<<std::endl;
26  sl<<"Number of track with internally broken links "<<m_brokenLinks<<std::endl;
27  if(!m_inWeights.empty())
28  {
29  sl<<"The weights of inlier tracks: ";
30  std::vector<double>::const_iterator i = m_inWeights.begin();
31  for(;i!=m_inWeights.end();++i) sl<<*i<<" ";
32  sl<<std::endl;
33  }
34 
35  if(!m_outWeights.empty())
36  {
37  sl<<"The weights of outlier tracks: ";
38  std::vector<double>::const_iterator i = m_outWeights.begin();
39  for(;i!=m_outWeights.end();++i) sl<<*i<<" ";
40  sl<<std::endl;
41  }
42 
43  if(!m_puWeights.empty())
44  {
45  sl<<"The weights of tracks from PileUp: ";
46  std::vector<double>::const_iterator i = m_puWeights.begin();
47  for(;i!=m_puWeights.end();++i) sl<<*i<<" ";
48  sl<<std::endl;
49  }
50 
51  if(!m_noTruth.empty())
52  {
53  sl<<"The weights of tracks w/o truth matching: ";
54  std::vector<double>::const_iterator i = m_noTruth.begin();
55  for(;i!=m_noTruth.end();++i) sl<<*i<<" ";
56  sl<<std::endl;
57  }
58 
59  return sl;
60  }// end of msg stream dump method

◆ dump() [2/2]

std::ostream & Trk::TrkPriVxPurity::dump ( std::ostream &  sl) const

Dump info method.

Definition at line 62 of file TrkPriVxPurity.cxx.

63  {
64  sl<<"***** Primary Vertex Purity Info *****"<<std::endl;
65  sl<<"Total number of fitted tracks "<<m_fittedTracks<<std::endl;
66  sl<<"Number of track with internally broken links "<<m_brokenLinks<<std::endl;
67  if(!m_inWeights.empty())
68  {
69  sl<<"The weights of inlier tracks: ";
70  std::vector<double>::const_iterator i = m_inWeights.begin();
71  for(;i!=m_inWeights.end();++i) sl<<*i<<" ";
72  sl<<std::endl;
73  }
74 
75  if(!m_outWeights.empty())
76  {
77  sl<<"The weights of outlier tracks: ";
78  std::vector<double>::const_iterator i = m_outWeights.begin();
79  for(;i!=m_outWeights.end();++i) sl<<*i<<" ";
80  sl<<std::endl;
81  }
82 
83  if(!m_puWeights.empty())
84  {
85  sl<<"The weights of tracks from PileUp: ";
86  std::vector<double>::const_iterator i = m_puWeights.begin();
87  for(;i!=m_puWeights.end();++i) sl<<*i<<" ";
88  sl<<std::endl;
89  }
90 
91  if(!m_noTruth.empty())
92  {
93  sl<<"The weights of tracks w/o truth matching: ";
94  std::vector<double>::const_iterator i = m_noTruth.begin();
95  for(;i!=m_noTruth.end();++i) sl<<*i<<" ";
96  sl<<std::endl;
97  }
98 
99  return sl;
100  }//end of ostream dump method

◆ fittedTracks()

unsigned int Trk::TrkPriVxPurity::fittedTracks ( ) const
inline

Number of fitted tracks

Definition at line 112 of file TrkPriVxPurity.h.

113  { return m_fittedTracks; }

◆ inlierWeights()

const std::vector< double > & Trk::TrkPriVxPurity::inlierWeights ( ) const
inline

List of track weights for inliers (only tracks from signal event are listed)

Definition at line 121 of file TrkPriVxPurity.h.

122  { return m_inWeights; }

◆ noTruthFound()

const std::vector< double > & Trk::TrkPriVxPurity::noTruthFound ( ) const
inline

Weights of not associated tracks

Definition at line 115 of file TrkPriVxPurity.h.

116  { return m_noTruth; }

◆ outlierWeights()

const std::vector< double > & Trk::TrkPriVxPurity::outlierWeights ( ) const
inline

List of track weights for outliers (only tracks from the signal event are listed)

Definition at line 118 of file TrkPriVxPurity.h.

119  { return m_outWeights; }

◆ pileUpWeights()

const std::vector< double > & Trk::TrkPriVxPurity::pileUpWeights ( ) const
inline

Weights of tracks from pileUp events

Definition at line 127 of file TrkPriVxPurity.h.

128  {return m_puWeights; }

Member Data Documentation

◆ m_brokenLinks

unsigned int Trk::TrkPriVxPurity::m_brokenLinks
private

Definition at line 106 of file TrkPriVxPurity.h.

◆ m_fittedTracks

unsigned int Trk::TrkPriVxPurity::m_fittedTracks
private

Definition at line 103 of file TrkPriVxPurity.h.

◆ m_inWeights

std::vector<double> Trk::TrkPriVxPurity::m_inWeights
private

Definition at line 108 of file TrkPriVxPurity.h.

◆ m_noTruth

std::vector<double> Trk::TrkPriVxPurity::m_noTruth
private

Definition at line 105 of file TrkPriVxPurity.h.

◆ m_outWeights

std::vector<double> Trk::TrkPriVxPurity::m_outWeights
private

Definition at line 109 of file TrkPriVxPurity.h.

◆ m_puWeights

std::vector<double> Trk::TrkPriVxPurity::m_puWeights
private

Definition at line 104 of file TrkPriVxPurity.h.


The documentation for this class was generated from the following files:
Trk::TrkPriVxPurity::m_outWeights
std::vector< double > m_outWeights
Definition: TrkPriVxPurity.h:109
lumiFormat.i
int i
Definition: lumiFormat.py:85
Trk::TrkPriVxPurity::m_inWeights
std::vector< double > m_inWeights
Definition: TrkPriVxPurity.h:108
Trk::TrkPriVxPurity::m_fittedTracks
unsigned int m_fittedTracks
Definition: TrkPriVxPurity.h:103
Trk::TrkPriVxPurity::m_puWeights
std::vector< double > m_puWeights
Definition: TrkPriVxPurity.h:104
Trk::TrkPriVxPurity::m_brokenLinks
unsigned int m_brokenLinks
Definition: TrkPriVxPurity.h:106
Trk::TrkPriVxPurity::m_noTruth
std::vector< double > m_noTruth
Definition: TrkPriVxPurity.h:105