PandaRoot
qualityNumbers Struct Reference

Holding statically callable quality numbers. More...

#include <PndTrackingQA.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 38 of file PndTrackingQA.h.

Member Function Documentation

◆ QualityNumberToString()

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

Definition at line 66 of file PndTrackingQA.h.

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

67  {
68  if (qNumber == kPossiblePrim)
69  return "PossiblePrimary";
70  if (qNumber == kPossibleSec)
71  return "PossibleSec";
72  if (qNumber == kAtLeastThreeSec)
73  return "AtLeastThreeSec";
74  if (qNumber == kAtLeastThreePrim)
75  return "AtLeastThreePrim";
76  if (qNumber == kLessThanThreePrim)
77  return "LessThanThreePrim";
78  if (qNumber == kMcPossibleSec)
79  return "McPossibleSec";
80  if (qNumber == kMcAtLeastThreeSec)
81  return "McAtLeastThreeSec";
82  if (qNumber == kMcAtLeastThreePrim)
83  return "McAtLeastThreePrim";
84  if (qNumber == kMcLessThanThreePrim)
85  return "McLessThanThreePrim";
86  if (qNumber == kMcAllTracksWithHits)
87  return "McAllTracksWithHits";
88  if (qNumber == kMcAllTracks)
89  return "McAllTracks";
90  if (qNumber == kPartiallyImpure)
91  return "PartiallyImpure";
92  if (qNumber == kPartiallyPure)
93  return "PartiallyPure";
94  if (qNumber == kFullyPure)
95  return "FullyPure";
96  if (qNumber == kFullyImpure)
97  return "FullyImpure";
98  if (qNumber == kGhost)
99  return "Ghost";
100  if (qNumber == kClone)
101  return "Clone";
102  if (qNumber == kNotFound)
103  return "NotFound";
104  if (qNumber == kFound)
105  return "Found";
106  return std::to_string(qNumber);
107  };
static const int kMcAtLeastThreeSec
Definition: PndTrackingQA.h:50
static const int kGhost
Definition: PndTrackingQA.h:60
static const int kLessThanThreePrim
Definition: PndTrackingQA.h:46
static const int kPossiblePrim
Definition: PndTrackingQA.h:43
static const int kAtLeastThreeSec
Definition: PndTrackingQA.h:44
static const int kMcPossibleSec
Definition: PndTrackingQA.h:49
static const int kPartiallyPure
Definition: PndTrackingQA.h:56
static const int kPossibleSec
Definition: PndTrackingQA.h:42
static const int kPartiallyImpure
Definition: PndTrackingQA.h:55
static const int kAtLeastThreePrim
Definition: PndTrackingQA.h:45
static const int kMcLessThanThreePrim
Definition: PndTrackingQA.h:50
static const int kMcAllTracksWithHits
Definition: PndTrackingQA.h:51
static const int kFound
Definition: PndTrackingQA.h:64
static const int kMcAllTracks
Definition: PndTrackingQA.h:52
static const int kFullyImpure
Definition: PndTrackingQA.h:57
static const int kMcAtLeastThreePrim
Definition: PndTrackingQA.h:50
static const int kClone
Definition: PndTrackingQA.h:61
static const int kFullyPure
Definition: PndTrackingQA.h:58
static const int kNotFound
Definition: PndTrackingQA.h:63

Member Data Documentation

◆ kAtLeastThreePrim

const int qualityNumbers::kAtLeastThreePrim = -4
static

Definition at line 45 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kAtLeastThreeSec

const int qualityNumbers::kAtLeastThreeSec = -3
static

Definition at line 44 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kClone

const int qualityNumbers::kClone = 6
static

Definition at line 61 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kFound

const int qualityNumbers::kFound = 8
static

Definition at line 64 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kFullyImpure

const int qualityNumbers::kFullyImpure = 3
static

Definition at line 57 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kFullyPure

const int qualityNumbers::kFullyPure = 4
static

Definition at line 58 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kGhost

const int qualityNumbers::kGhost = 5
static

Definition at line 60 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kLessThanThreePrim

const int qualityNumbers::kLessThanThreePrim = -5
static

Definition at line 46 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kMcAllTracks

const int qualityNumbers::kMcAllTracks = -13
static

Definition at line 52 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kMcAllTracksWithHits

const int qualityNumbers::kMcAllTracksWithHits = -12
static

Definition at line 51 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kMcAtLeastThreePrim

const int qualityNumbers::kMcAtLeastThreePrim = -10
static

Definition at line 50 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kMcAtLeastThreeSec

const int qualityNumbers::kMcAtLeastThreeSec = -9
static

Definition at line 50 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kMcLessThanThreePrim

const int qualityNumbers::kMcLessThanThreePrim = -11
static

Definition at line 50 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kMcPossiblePrim

const int qualityNumbers::kMcPossiblePrim = -8
static

Definition at line 50 of file PndTrackingQA.h.

◆ kMcPossibleSec

const int qualityNumbers::kMcPossibleSec = -7
static

Definition at line 49 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kNotFound

const int qualityNumbers::kNotFound = 7
static

Definition at line 63 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kPartiallyImpure

const int qualityNumbers::kPartiallyImpure = 1
static

Definition at line 55 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kPartiallyPure

const int qualityNumbers::kPartiallyPure = 2
static

Definition at line 56 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kPossiblePrim

const int qualityNumbers::kPossiblePrim = -2
static

Definition at line 43 of file PndTrackingQA.h.

Referenced by QualityNumberToString().

◆ kPossibleSec

const int qualityNumbers::kPossibleSec = -1
static

Definition at line 42 of file PndTrackingQA.h.

Referenced by QualityNumberToString().


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