BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TTrackMC.cxx File Reference
#include <cfloat>
#include "TrkReco/TMDCUtil.h"
#include "TrkReco/TMDCWireHitMC.h"
#include "TrkReco/TrkReco.h"
#include "TrkReco/TTrack.h"
#include "TrkReco/TTrackMC.h"
#include "TrkReco/TTrackHEP.h"
#include "MdcTables/MdcTables.h"

Go to the source code of this file.

Functions

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

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}

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

◆ TrackMCStatus() [1/3]

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/3]

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.

◆ TrackMCStatus() [3/3]

std::string TrackMCStatus ( unsigned  quality)

Definition at line 290 of file TTrackMC.cxx.

290 {
291 //...This is a local function to hide from user...
292
293 std::string matching;
294 if (quality & TTrackHep) {
295 if (quality & TTrackMatchingTight) matching += "tight";
296 else if (quality & TTrackMatchingLoose) matching += "loose";
297 else matching = "bad";
298 }
299 return TrackMCQualityString(quality) + " " + matching;
300}
std::string TrackMCQualityString(unsigned quality)
Definition: TTrackMC.cxx:313

Referenced by TrackMCStatus().