name = "Photon high purity, ";
if (IsPi0("low"))
- name += "Pi0 low purity, ";
+ name = "Pi0 low purity, ";
else if (IsPi0("medium"))
- name += "Pi0 medium purity, ";
+ name = "Pi0 medium purity, ";
else if (IsPi0("high"))
- name += "Pi0 high purity, ";
+ name = "Pi0 high purity, ";
if (IsElectron("low"))
- name += "Electron low purity, ";
+ name = "Electron low purity, ";
else if (IsElectron("medium"))
- name += "Electron medium purity, ";
+ name = "Electron medium purity, ";
else if (IsElectron("high"))
- name += "Electron high purity, ";
+ name = "Electron high purity, ";
if (IsHadron()) {
name = "hadron";
virtual void Paint(Option_t * option="");
virtual void Print() const ;
+ void SetTof(Float_t tof) { fTof = tof ; }
+ Float_t ToF() const { return fTof ; }
void SetType(Int_t type) ;
void SetIndexInList(Int_t val) {
fIndexInList = val ;
}
//This has to disappear
- enum EParticleType { kUNDEFINED=-1,
+ enum EParticleType { kTYPE = 8,
+ kUNDEFINED=-1,
kNEUTRALEMFAST, kNEUTRALHAFAST, kNEUTRALEMSLOW, kNEUTRALHASLOW,
kCHARGEDEMFAST, kCHARGEDHAFAST, kCHARGEDEMSLOW, kCHARGEDHASLOW } ;
protected:
Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
+ Float_t fTof ; // time of fliht
Int_t fType ; // particle type obtained by "virtual" reconstruction
private: