PandaRoot
qualityNumbers Struct Reference

Holding statically callable quality numbers. More...

#include <PndTrackingQATimebased.h>

Static Public Member Functions

static std::string QualityNumberToString (int qNumber)
 

Static Public Attributes

static const int kPossibleSec = -1
 
static const int kPossiblePrim = -2
 
static const int kAtLeastThreeSec = -3
 
static const int kAtLeastThreePrim = -4
 
static const int kLessThanThreePrim = -5
 
static const int kMcPossibleSec = -7
 
static const int kMcPossiblePrim = -8
 
static const int kMcAtLeastThreeSec = -9
 
static const int kMcAtLeastThreePrim = -10
 
static const int kMcLessThanThreePrim = -11
 
static const int kMcAllTracksWithHits = -12
 
static const int kMcAllTracks = -13
 
static const int kPartiallyImpure = 1
 
static const int kPartiallyPure = 2
 
static const int kFullyImpure = 3
 
static const int kFullyPure = 4
 
static const int kGhost = 5
 
static const int kClone = 6
 
static const int kNotFound = 7
 
static const int kFound = 8
 

Detailed Description

Holding statically callable quality numbers.

Per event, a track can have a certain quality. On a MC level, it can be below a threshold to be even found. If found, it can be found fully, or partially. The struct holds the identifiers needed to categorize tracks. The rough idea is: Positive numbers are referring to reconstructed tracks, negative numbers to track before reconstruction. The five numbers from -5 to -1 are repeating from -11 to -7 and there referring to monte carlo data.

Definition at line 52 of file PndTrackingQATimebased.h.

Member Function Documentation

◆ QualityNumberToString()

static std::string qualityNumbers::QualityNumberToString ( int  qNumber)
inlinestatic

Definition at line 80 of file PndTrackingQATimebased.h.

References kAtLeastThreePrim, kAtLeastThreeSec, kClone, kFound, kFullyImpure, kFullyPure, kGhost, kLessThanThreePrim, kMcAllTracks, kMcAllTracksWithHits, kMcAtLeastThreePrim, kMcAtLeastThreeSec, kMcLessThanThreePrim, kMcPossibleSec, kNotFound, kPartiallyImpure, kPartiallyPure, kPossiblePrim, and kPossibleSec.

81  {
82  if (qNumber == kPossiblePrim)
83  return "PossiblePrimary";
84  if (qNumber == kPossibleSec)
85  return "PossibleSec";
86  if (qNumber == kAtLeastThreeSec)
87  return "AtLeastThreeSec";
88  if (qNumber == kAtLeastThreePrim)
89  return "AtLeastThreePrim";
90  if (qNumber == kLessThanThreePrim)
91  return "LessThanThreePrim";
92  if (qNumber == kMcPossibleSec)
93  return "McPossibleSec";
94  if (qNumber == kMcAtLeastThreeSec)
95  return "McAtLeastThreeSec";
96  if (qNumber == kMcAtLeastThreePrim)
97  return "McAtLeastThreePrim";
98  if (qNumber == kMcLessThanThreePrim)
99  return "McLessThanThreePrim";
100  if (qNumber == kMcAllTracksWithHits)
101  return "McAllTracksWithHits";
102  if (qNumber == kMcAllTracks)
103  return "McAllTracks";
104  if (qNumber == kPartiallyImpure)
105  return "PartiallyImpure";
106  if (qNumber == kPartiallyPure)
107  return "PartiallyPure";
108  if (qNumber == kFullyPure)
109  return "FullyPure";
110  if (qNumber == kFullyImpure)
111  return "FullyImpure";
112  if (qNumber == kGhost)
113  return "Ghost";
114  if (qNumber == kClone)
115  return "Clone";
116  if (qNumber == kNotFound)
117  return "NotFound";
118  if (qNumber == kFound)
119  return "Found";
120  return std::to_string(qNumber);
121  };
static const int kMcAtLeastThreeSec
static const int kGhost
static const int kLessThanThreePrim
static const int kPossiblePrim
static const int kAtLeastThreeSec
static const int kMcPossibleSec
static const int kPartiallyPure
static const int kPossibleSec
static const int kPartiallyImpure
static const int kAtLeastThreePrim
static const int kMcLessThanThreePrim
static const int kMcAllTracksWithHits
static const int kFound
static const int kMcAllTracks
static const int kFullyImpure
static const int kMcAtLeastThreePrim
static const int kClone
static const int kFullyPure
static const int kNotFound

Member Data Documentation

◆ kAtLeastThreePrim

const int qualityNumbers::kAtLeastThreePrim = -4
static

Definition at line 59 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kAtLeastThreeSec

const int qualityNumbers::kAtLeastThreeSec = -3
static

Definition at line 58 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kClone

const int qualityNumbers::kClone = 6
static

Definition at line 75 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kFound

const int qualityNumbers::kFound = 8
static

Definition at line 78 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kFullyImpure

const int qualityNumbers::kFullyImpure = 3
static

Definition at line 71 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kFullyPure

const int qualityNumbers::kFullyPure = 4
static

Definition at line 72 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kGhost

const int qualityNumbers::kGhost = 5
static

Definition at line 74 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kLessThanThreePrim

const int qualityNumbers::kLessThanThreePrim = -5
static

Definition at line 60 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAllTracks

const int qualityNumbers::kMcAllTracks = -13
static

Definition at line 66 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAllTracksWithHits

const int qualityNumbers::kMcAllTracksWithHits = -12
static

Definition at line 65 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAtLeastThreePrim

const int qualityNumbers::kMcAtLeastThreePrim = -10
static

Definition at line 64 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAtLeastThreeSec

const int qualityNumbers::kMcAtLeastThreeSec = -9
static

Definition at line 64 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcLessThanThreePrim

const int qualityNumbers::kMcLessThanThreePrim = -11
static

Definition at line 64 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcPossiblePrim

const int qualityNumbers::kMcPossiblePrim = -8
static

Definition at line 64 of file PndTrackingQATimebased.h.

◆ kMcPossibleSec

const int qualityNumbers::kMcPossibleSec = -7
static

Definition at line 63 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kNotFound

const int qualityNumbers::kNotFound = 7
static

Definition at line 77 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPartiallyImpure

const int qualityNumbers::kPartiallyImpure = 1
static

Definition at line 69 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPartiallyPure

const int qualityNumbers::kPartiallyPure = 2
static

Definition at line 70 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPossiblePrim

const int qualityNumbers::kPossiblePrim = -2
static

Definition at line 57 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPossibleSec

const int qualityNumbers::kPossibleSec = -1
static

Definition at line 56 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().


The documentation for this struct was generated from the following file: