BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TTrackMC.h File Reference
#include <string>
#include "CLHEP/Alist/AList.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/LorentzVector.h"

Go to the source code of this file.

Classes

class  TTrackMC
 A class to have MC information of TTrack. More...
 

Macros

#define TTrackClassified   1
 
#define TTrackGarbage   1
 
#define TTrackCharge   2
 
#define TTrackBad   4
 
#define TTrackGhost   8
 
#define TTrackGood   16
 
#define TTrackHep   65536
 
#define TTrackWire   131072
 
#define TTrackPt   524288
 
#define TTrackPz   1048576
 
#define TTrackUnique   2097152
 
#define TTrackMatchingLoose   4194304
 
#define TTrackMatchingTight   8388608
 
#define HEP_SHORT_NAMES
 
#define TTrackMC_INLINE_DEFINE_HERE
 

Functions

std::string TrackMCStatus (const TTrackMC &)
 
std::string TrackMCStatus (const MdcRec_mctrk &)
 
std::string TrackMCQualityString (unsigned quality)
 

Macro Definition Documentation

◆ HEP_SHORT_NAMES

#define HEP_SHORT_NAMES

Definition at line 40 of file TTrackMC.h.

◆ TTrackBad

#define TTrackBad   4

Definition at line 20 of file TTrackMC.h.

◆ TTrackCharge

#define TTrackCharge   2

Definition at line 19 of file TTrackMC.h.

◆ TTrackClassified

#define TTrackClassified   1

Definition at line 16 of file TTrackMC.h.

◆ TTrackGarbage

#define TTrackGarbage   1

Definition at line 18 of file TTrackMC.h.

◆ TTrackGhost

#define TTrackGhost   8

Definition at line 21 of file TTrackMC.h.

◆ TTrackGood

#define TTrackGood   16

Definition at line 22 of file TTrackMC.h.

◆ TTrackHep

#define TTrackHep   65536

Definition at line 24 of file TTrackMC.h.

◆ TTrackMatchingLoose

#define TTrackMatchingLoose   4194304

Definition at line 29 of file TTrackMC.h.

◆ TTrackMatchingTight

#define TTrackMatchingTight   8388608

Definition at line 30 of file TTrackMC.h.

◆ TTrackMC_INLINE_DEFINE_HERE

#define TTrackMC_INLINE_DEFINE_HERE

Definition at line 162 of file TTrackMC.h.

◆ TTrackPt

#define TTrackPt   524288

Definition at line 26 of file TTrackMC.h.

◆ TTrackPz

#define TTrackPz   1048576

Definition at line 27 of file TTrackMC.h.

◆ TTrackUnique

#define TTrackUnique   2097152

Definition at line 28 of file TTrackMC.h.

◆ TTrackWire

#define TTrackWire   131072

Definition at line 25 of file TTrackMC.h.

Function Documentation

◆ TrackMCQualityString()

std::string TrackMCQualityString ( unsigned  quality)

Definition at line 313 of file TTrackMC.cxx.

313 {
314 if (quality & TTrackGood) return std::string("Good");
315 else if (quality & TTrackGhost) return std::string("Ghost");
316 else if (quality & TTrackBad) return std::string("Bad");
317 else if (quality & TTrackCharge) return std::string("Charge");
318 else if (quality & TTrackGarbage) return std::string("Garbage");
319 return std::string("Unknown");
320}
#define TTrackGhost
Definition: TTrackMC.h:21
#define TTrackBad
Definition: TTrackMC.h:20
#define TTrackGarbage
Definition: TTrackMC.h:18
#define TTrackCharge
Definition: TTrackMC.h:19
#define TTrackGood
Definition: TTrackMC.h:22

Referenced by TTrackMC::qualityString(), and TrackMCStatus().

◆ TrackMCStatus() [1/2]

std::string TrackMCStatus ( const MdcRec_mctrk m)

Definition at line 308 of file TTrackMC.cxx.

308 {
309 return TrackMCStatus(m.quality);
310}
std::string TrackMCStatus(unsigned quality)
Definition: TTrackMC.cxx:290

◆ TrackMCStatus() [2/2]

std::string TrackMCStatus ( const TTrackMC m)

Definition at line 303 of file TTrackMC.cxx.

303 {
304 return TrackMCStatus(m.quality());
305}
unsigned quality(void) const
returns quality.
Definition: TTrackMC.h:217