CbmRoot
CbmKFPartEfficiencies Class Reference

#include <CbmKFPartEfficiencies.h>

Inheritance diagram for CbmKFPartEfficiencies:
[legend]
Collaboration diagram for CbmKFPartEfficiencies:
[legend]

Public Member Functions

 CbmKFPartEfficiencies ()
 
virtual ~CbmKFPartEfficiencies ()
 
int GetParticleIndex (int pdg)
 
virtual void AddCounter (TString shortname, TString name)
 
CbmKFPartEfficienciesoperator+= (CbmKFPartEfficiencies &a)
 
void CalcEff ()
 
void Inc (bool isReco, int nClones, TString name)
 
void IncReco (bool isGhost, bool isBg, TString name)
 
void PrintEff ()
 
void AddFromFile (TString fileName)
 
 ClassDef (CbmKFPartEfficiencies, 1)
 

Public Attributes

int partPDG [nParticles]
 
TString partName [nParticles]
 
TString partTitle [nParticles]
 
std::vector< std::vector< int > > partDaughterPdg
 
float partMHistoMin [nParticles]
 
float partMHistoMax [nParticles]
 
int partMaxMult [nParticles]
 

Static Public Attributes

static const int nParticles = 70
 

Private Attributes

std::vector< TString > names
 
std::map< TString, int > indices
 
std::map< int, int > fPdgToIndex
 
TL1TracksCatCounters< double > ratio_reco
 
TL1TracksCatCounters< int > mc
 
TL1TracksCatCounters< int > reco
 
TL1TracksCatCounters< double > ratio_ghost
 
TL1TracksCatCounters< double > ratio_bg
 
TL1TracksCatCounters< double > ratio_clone
 
TL1TracksCatCounters< int > ghost
 
TL1TracksCatCounters< int > bg
 
TL1TracksCatCounters< int > clone
 

Friends

std::fstream & operator<< (std::fstream &strm, CbmKFPartEfficiencies &a)
 
std::fstream & operator>> (std::fstream &strm, CbmKFPartEfficiencies &a)
 

Detailed Description

Definition at line 7 of file CbmKFPartEfficiencies.h.

Constructor & Destructor Documentation

◆ CbmKFPartEfficiencies()

CbmKFPartEfficiencies::CbmKFPartEfficiencies ( )
inline

◆ ~CbmKFPartEfficiencies()

virtual CbmKFPartEfficiencies::~CbmKFPartEfficiencies ( )
inlinevirtual

Definition at line 439 of file CbmKFPartEfficiencies.h.

Member Function Documentation

◆ AddCounter()

virtual void CbmKFPartEfficiencies::AddCounter ( TString  shortname,
TString  name 
)
inlinevirtual

◆ AddFromFile()

void CbmKFPartEfficiencies::AddFromFile ( TString  fileName)
inline

Definition at line 568 of file CbmKFPartEfficiencies.h.

◆ CalcEff()

void CbmKFPartEfficiencies::CalcEff ( )
inline

Definition at line 475 of file CbmKFPartEfficiencies.h.

References bg, clone, ghost, mc, ratio_bg, ratio_clone, ratio_ghost, ratio_reco, and reco.

◆ ClassDef()

CbmKFPartEfficiencies::ClassDef ( CbmKFPartEfficiencies  ,
 
)

◆ GetParticleIndex()

int CbmKFPartEfficiencies::GetParticleIndex ( int  pdg)
inline

Definition at line 441 of file CbmKFPartEfficiencies.h.

References fPdgToIndex.

◆ Inc()

void CbmKFPartEfficiencies::Inc ( bool  isReco,
int  nClones,
TString  name 
)
inline

Definition at line 485 of file CbmKFPartEfficiencies.h.

References clone, TL1TracksCatCounters< T >::counters, indices, mc, and reco.

◆ IncReco()

void CbmKFPartEfficiencies::IncReco ( bool  isGhost,
bool  isBg,
TString  name 
)
inline

Definition at line 493 of file CbmKFPartEfficiencies.h.

References bg, TL1TracksCatCounters< T >::counters, ghost, and indices.

◆ operator+=()

CbmKFPartEfficiencies& CbmKFPartEfficiencies::operator+= ( CbmKFPartEfficiencies a)
inline

Definition at line 466 of file CbmKFPartEfficiencies.h.

References bg, clone, ghost, mc, and reco.

◆ PrintEff()

void CbmKFPartEfficiencies::PrintEff ( )
inline

Friends And Related Function Documentation

◆ operator<<

std::fstream& operator<< ( std::fstream &  strm,
CbmKFPartEfficiencies a 
)
friend

Definition at line 536 of file CbmKFPartEfficiencies.h.

◆ operator>>

std::fstream& operator>> ( std::fstream &  strm,
CbmKFPartEfficiencies a 
)
friend

Definition at line 552 of file CbmKFPartEfficiencies.h.

Member Data Documentation

◆ bg

TL1TracksCatCounters<int> CbmKFPartEfficiencies::bg
private

Definition at line 601 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), IncReco(), operator+=(), and PrintEff().

◆ clone

TL1TracksCatCounters<int> CbmKFPartEfficiencies::clone
private

Definition at line 602 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), Inc(), operator+=(), and PrintEff().

◆ fPdgToIndex

std::map<int, int> CbmKFPartEfficiencies::fPdgToIndex
private

Definition at line 589 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies(), and GetParticleIndex().

◆ ghost

TL1TracksCatCounters<int> CbmKFPartEfficiencies::ghost
private

Definition at line 600 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), IncReco(), operator+=(), and PrintEff().

◆ indices

std::map<TString, int> CbmKFPartEfficiencies::indices
private

Definition at line 587 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), Inc(), and IncReco().

◆ mc

TL1TracksCatCounters<int> CbmKFPartEfficiencies::mc
private

Definition at line 593 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), Inc(), operator+=(), and PrintEff().

◆ names

std::vector<TString> CbmKFPartEfficiencies::names
private

Definition at line 585 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), and PrintEff().

◆ nParticles

const int CbmKFPartEfficiencies::nParticles = 70
static

Definition at line 573 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partDaughterPdg

std::vector<std::vector<int> > CbmKFPartEfficiencies::partDaughterPdg

Definition at line 577 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partMaxMult

int CbmKFPartEfficiencies::partMaxMult[nParticles]

Definition at line 580 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partMHistoMax

float CbmKFPartEfficiencies::partMHistoMax[nParticles]

Definition at line 579 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partMHistoMin

float CbmKFPartEfficiencies::partMHistoMin[nParticles]

Definition at line 578 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partName

TString CbmKFPartEfficiencies::partName[nParticles]

Definition at line 575 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partPDG

int CbmKFPartEfficiencies::partPDG[nParticles]

Definition at line 574 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ partTitle

TString CbmKFPartEfficiencies::partTitle[nParticles]

Definition at line 576 of file CbmKFPartEfficiencies.h.

Referenced by CbmKFPartEfficiencies().

◆ ratio_bg

TL1TracksCatCounters<double> CbmKFPartEfficiencies::ratio_bg
private

Definition at line 597 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), and PrintEff().

◆ ratio_clone

TL1TracksCatCounters<double> CbmKFPartEfficiencies::ratio_clone
private

Definition at line 598 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), and CalcEff().

◆ ratio_ghost

TL1TracksCatCounters<double> CbmKFPartEfficiencies::ratio_ghost
private

Definition at line 596 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), and PrintEff().

◆ ratio_reco

TL1TracksCatCounters<double> CbmKFPartEfficiencies::ratio_reco
private

Definition at line 591 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), and PrintEff().

◆ reco

TL1TracksCatCounters<int> CbmKFPartEfficiencies::reco
private

Definition at line 594 of file CbmKFPartEfficiencies.h.

Referenced by AddCounter(), CalcEff(), Inc(), operator+=(), and PrintEff().


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