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 40 of file PndTrackingQATimebased.h.

Member Function Documentation

◆ QualityNumberToString()

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

Definition at line 68 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.

69  {
70  if (qNumber == kPossiblePrim)
71  return "PossiblePrimary";
72  if (qNumber == kPossibleSec)
73  return "PossibleSec";
74  if (qNumber == kAtLeastThreeSec)
75  return "AtLeastThreeSec";
76  if (qNumber == kAtLeastThreePrim)
77  return "AtLeastThreePrim";
78  if (qNumber == kLessThanThreePrim)
79  return "LessThanThreePrim";
80  if (qNumber == kMcPossibleSec)
81  return "McPossibleSec";
82  if (qNumber == kMcAtLeastThreeSec)
83  return "McAtLeastThreeSec";
84  if (qNumber == kMcAtLeastThreePrim)
85  return "McAtLeastThreePrim";
86  if (qNumber == kMcLessThanThreePrim)
87  return "McLessThanThreePrim";
88  if (qNumber == kMcAllTracksWithHits)
89  return "McAllTracksWithHits";
90  if (qNumber == kMcAllTracks)
91  return "McAllTracks";
92  if (qNumber == kPartiallyImpure)
93  return "PartiallyImpure";
94  if (qNumber == kPartiallyPure)
95  return "PartiallyPure";
96  if (qNumber == kFullyPure)
97  return "FullyPure";
98  if (qNumber == kFullyImpure)
99  return "FullyImpure";
100  if (qNumber == kGhost)
101  return "Ghost";
102  if (qNumber == kClone)
103  return "Clone";
104  if (qNumber == kNotFound)
105  return "NotFound";
106  if (qNumber == kFound)
107  return "Found";
108  return std::to_string(qNumber);
109  };
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 47 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kAtLeastThreeSec

const int qualityNumbers::kAtLeastThreeSec = -3
static

Definition at line 46 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kClone

const int qualityNumbers::kClone = 6
static

Definition at line 63 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kFound

const int qualityNumbers::kFound = 8
static

Definition at line 66 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kFullyImpure

const int qualityNumbers::kFullyImpure = 3
static

Definition at line 59 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kFullyPure

const int qualityNumbers::kFullyPure = 4
static

Definition at line 60 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kGhost

const int qualityNumbers::kGhost = 5
static

Definition at line 62 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kLessThanThreePrim

const int qualityNumbers::kLessThanThreePrim = -5
static

Definition at line 48 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAllTracks

const int qualityNumbers::kMcAllTracks = -13
static

Definition at line 54 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAllTracksWithHits

const int qualityNumbers::kMcAllTracksWithHits = -12
static

Definition at line 53 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAtLeastThreePrim

const int qualityNumbers::kMcAtLeastThreePrim = -10
static

Definition at line 52 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcAtLeastThreeSec

const int qualityNumbers::kMcAtLeastThreeSec = -9
static

Definition at line 52 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcLessThanThreePrim

const int qualityNumbers::kMcLessThanThreePrim = -11
static

Definition at line 52 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kMcPossiblePrim

const int qualityNumbers::kMcPossiblePrim = -8
static

Definition at line 52 of file PndTrackingQATimebased.h.

◆ kMcPossibleSec

const int qualityNumbers::kMcPossibleSec = -7
static

Definition at line 51 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kNotFound

const int qualityNumbers::kNotFound = 7
static

Definition at line 65 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPartiallyImpure

const int qualityNumbers::kPartiallyImpure = 1
static

Definition at line 57 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPartiallyPure

const int qualityNumbers::kPartiallyPure = 2
static

Definition at line 58 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPossiblePrim

const int qualityNumbers::kPossiblePrim = -2
static

Definition at line 45 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().

◆ kPossibleSec

const int qualityNumbers::kPossibleSec = -1
static

Definition at line 44 of file PndTrackingQATimebased.h.

Referenced by QualityNumberToString().


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