/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ //----------------------------------------------------------------- // Class for dE/dx and Time Bin of Max. Cluster for Electrons and // pions in TRD. // It is instantiated in class AliTRDpidESD for particle identification // in TRD // Prashant Shukla //----------------------------------------------------------------- #include "AliTRDprobdist.h" ClassImp(AliTRDprobdist) //_________________________________________________________________________ AliTRDprobdist::AliTRDprobdist(Int_t multiplicity) { // // The main constructor // if (multiplicity == 1) FillData(); // if (multiplicity == 2000) FillData2000(); // if (multiplicity == 4000) FillData4000(); // if (multiplicity == 6000) FillData6000(); // if (multiplicity == 8000) FillData8000(); } //_________________________________________________________________________ Double_t AliTRDprobdist::GetMeanPI(Int_t ip) const { // Gets mean of de/dx dist. of pi Double_t integral=0.; Double_t norm=0.; for(Int_t ie=0; ie fNEbins-1) iEnBin = fNEbins-1; if(k==0){ // electron if(mom<=fTrackMomentum[0]) probability = fProbEL[0][iEnBin]; if(mom>=fTrackMomentum[fNMom-1]) probability = fProbEL[fNMom-1][iEnBin]; } if(k==2){ // pion if(mom<=fTrackMomentum[0]) probability = fProbPI[0][iEnBin]; if(mom>=fTrackMomentum[fNMom-1]) probability = fProbPI[fNMom-1][iEnBin]; } if(k==0) // electron for(Int_t ip=1; ip=fTrackMomentum[fNMom-1]) probabilityT = fProbELT[fNMom-1][iTBin]; } if(k==2){ // pion if(mom<=fTrackMomentum[0]) probabilityT = fProbPIT[0][iTBin]; if(mom>=fTrackMomentum[fNMom-1]) probabilityT = fProbPIT[fNMom-1][iTBin]; } if(k==0) // electron for(Int_t ip=1; ip> fNMom; for(Int_t ip=0; ip> fTrackMomentum[ip] >> fNEbins; for(Int_t ie=0; ie> fEnergyLoss[ip][ie]>> fProbPI[ip][ie]>> fProbEL[ip][ie]; fEnergyLoss[ip][ie]=fADCNorm*fEnergyLoss[ip][ie]; } } fEnBinSize=fEnergyLoss[0][1]-fEnergyLoss[0][0]; // Time Bin of Max. Cluster Distributions for e and pi ifstream fileint("tt.dat"); fileint >> fNMom; for(Int_t ip=0; ip> fTrackMomentum[ip] >> fNTbins; for(Int_t it=0; it> fTimBin[ip][it]>> fProbPIT[ip][it]>> fProbELT[ip][it]; } } fTBinSize=1; } */