// Warning("StartTimeIntegral", "Reseting Recorded Time.");
fStartTimeIntegral = kTRUE;
- for(Int_t i=0; i<fTypes; i++) fIntegratedTime[i] = 0;
+ for(Int_t i=0; i<fgkTypes; i++) fIntegratedTime[i] = 0;
fIntegratedLength = 0;
}
//_______________________________________________________________________
// S.Radomski@gsi.de
//
- static const Double_t cc = 2.99792458e-2;
+ static const Double_t kcc = 2.99792458e-2;
if (!fStartTimeIntegral) return;
fIntegratedLength += length;
- static Int_t pdgCode[fTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
+ static Int_t pdgCode[fgkTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
TDatabasePDG *db = TDatabasePDG::Instance();
Double_t xr, param[5];
if (length > 100) return;
- for (Int_t i=0; i<fTypes; i++) {
+ for (Int_t i=0; i<fgkTypes; i++) {
Double_t mass = db->GetParticle(pdgCode[i])->Mass();
Double_t correction = TMath::Sqrt( pt*pt * (1 + tgl*tgl) + mass * mass ) / p;
- Double_t time = length * correction / cc;
+ Double_t time = length * correction / kcc;
//cout << mass << "\t" << pt << "\t" << p << "\t"
// << correction << endl;
return 0.;
}
- static Int_t pdgCode[fTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
+ static Int_t pdgCode[fgkTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
- for (Int_t i=0; i<fTypes; i++)
+ for (Int_t i=0; i<fgkTypes; i++)
if (pdgCode[i] == TMath::Abs(pdg)) return fIntegratedTime[i];
Warning(":GetIntegratedTime","Particle type [%d] not found", pdg);
// Prints time for all hypothesis
//
- static Int_t pdgCode[fTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
+ static Int_t pdgCode[fgkTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
- for (Int_t i=0; i<fTypes; i++)
+ for (Int_t i=0; i<fgkTypes; i++)
printf("%d: %.2f ", pdgCode[i], fIntegratedTime[i]);
printf("\n");
}