1 #ifndef KFPartEfficiencies_H 
    2 #define KFPartEfficiencies_H 
   30     int mPartPDG[
nParticles] = {310,3122,-3122,3312,-3312,3334,-3334, 
 
   32                                 3224,3114,-3114,-3224, 
 
   34                                 3324, -3324, 1003314, -1003314, 
 
   41                                 421,-421,100421,-100421, 
 
   45                                 10421, -10421, 10411, -10411, 20411, -20411,
 
   48     TString mPartName[
nParticles] = {
"ks",
"lambda",
"lambdab",
"xi-",
"xi+",
"omega-",
"omega+",
 
   49                                      "k*0",
"k*0b",
"k*+",
"k*-",
 
   50                                      "sigma*+",
"sigma*-",
"sigma*+b",
"sigma*-b",
 
   52                                      "xi*0", 
"xi*0b", 
"xi*-_{#Lambda,K}", 
"xi*+_{#Lambda,K}",
 
   55                                      "phi_{KK}", 
"rho_{#pi#pi}",
 
   56                                      "rho_{ee}", 
"rho_{#mu#mu}",
 
   58                                      "J#Psi_ee",
"J#Psi_#mu#mu",
 
   59                                      "D0",
"D0b",
"D0_4",
"D0b_4",
 
   62                                      "lambdac", 
"lambdacb",
 
   63                                      "D*0", 
"D*0b", 
"D*+", 
"D*-", 
"D*+_4", 
"D*-_4",
 
  116     float mPartMHistoMin[
nParticles] = {0.3, 1., 1., 1., 1.,1.,1.,
 
  131                                         1.8,1.8,1.8,1.8,1.8,1.8,
 
  133     float mPartMHistoMax[
nParticles] = {1.3, 2., 2., 3., 3., 3., 3.,
 
  148                                         3.8,3.8,3.8,3.8,3.8,3.8,
 
  334     std::map<int, int>::iterator it;
 
  342     names.push_back(name);
 
  385     if (isGhost) 
ghost.     counters[index]++;
 
  392     std::ios_base::fmtflags coutFlags = cout.flags();
 
  394     std::cout.setf(ios::fixed);
 
  395     std::cout.setf(ios::showpoint);
 
  396     std::cout.precision(3);
 
  397     std::cout << 
"Particle     : " 
  405          <<
" | "<< 
"  N MC "  << std::endl;
 
  408     for (
int iC = 0; iC < NCounters; iC++){
 
  409         std::cout << 
names[iC]
 
  417              << 
"  | " << setw(6) << 
mc.
counters[iC]  << std::endl;
 
  421     cout.flags(coutFlags);
 
  456     std::fstream 
file(fileName.Data(),fstream::in);
 
void Inc(bool isReco, int nClones, TString name)
TTracksCatCounters< double > ratio_bg
friend std::fstream & operator>>(std::fstream &strm, KFPartEfficiencies &a)
map< TString, int > indices
void IncReco(bool isGhost, bool isBg, TString name)
TTracksCatCounters< double > ratio_reco
TTracksCatCounters< int > mc
vector< vector< int > > partDaughterPdg
float partMHistoMin[nParticles]
TTracksCatCounters< int > bg
TString partTitle[nParticles]
TString partName[nParticles]
KFPartEfficiencies & operator+=(KFPartEfficiencies &a)
TTracksCatCounters< double > ratio_clone
TTracksCatCounters< int > clone
TTracksCatCounters< double > ratio_ghost
virtual ~KFPartEfficiencies()
friend std::fstream & operator<<(std::fstream &strm, KFPartEfficiencies &a)
static const int nParticles
TTracksCatCounters< int > reco
int GetParticleIndex(int pdg)
void AddFromFile(TString fileName)
virtual void AddCounter(TString shortname, TString name)
map< int, int > fPdgToIndex
float partMHistoMax[nParticles]
TTracksCatCounters< int > ghost