X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDpidLQ.cxx;h=4042ec331160e7e02a30ef55bfbdb2fb974f777b;hb=087f87e767d99562a3dd77cf52e64b53edf515dd;hp=2d6150087c89e7c683333261425aafc650a509c3;hpb=a3d851c25ee1abe3dab1f3717f2321eadb1eaab3;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDpidLQ.cxx b/TRD/AliTRDpidLQ.cxx index 2d6150087c8..4042ec33116 100644 --- a/TRD/AliTRDpidLQ.cxx +++ b/TRD/AliTRDpidLQ.cxx @@ -13,12 +13,7 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.1 2001/11/06 17:19:41 cblume -Add detailed geometry and simple simulator - -*/ +/* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // @@ -98,7 +93,7 @@ AliTRDpidLQ::AliTRDpidLQ(const char* name, const char* title) } //_____________________________________________________________________________ -AliTRDpidLQ::AliTRDpidLQ(const AliTRDpidLQ &p) +AliTRDpidLQ::AliTRDpidLQ(const AliTRDpidLQ &p):AliTRDpid(p) { // // AliTRDpidLQ copy constructor @@ -199,7 +194,7 @@ Bool_t AliTRDpidLQ::AssignLikelihood(AliTRDtrack *t) TH1F *hTmpPi; t->SetLikelihoodElectron(-1.); - if (isnan(t->GetP())) return kFALSE; + if (TMath::IsNaN(t->GetP())) return kFALSE; Float_t mom = t->GetP(); // Calculate the total charge in each plane @@ -264,9 +259,7 @@ Bool_t AliTRDpidLQ::AssignLikelihood(AliTRDtrack *t) } //_____________________________________________________________________________ -Bool_t AliTRDpidLQ::CreateHistograms(const Int_t nmom - , const Float_t minmom - , const Float_t maxmom) +Bool_t AliTRDpidLQ::CreateHistograms(Int_t nmom, Float_t minmom, Float_t maxmom) { // // Creates the histograms @@ -313,7 +306,7 @@ Bool_t AliTRDpidLQ::CreateHistograms(const Int_t nmom // Bool_t status = kTRUE; -// if (isnan(t->GetP())) return kFALSE; +// if (TMath::IsNaN(t->GetP())) return kFALSE; // Float_t mom = t->GetP(); // Int_t ipid = MCpid(t); @@ -349,7 +342,7 @@ Bool_t AliTRDpidLQ::FillSpectra(const AliTRDtrack *t) const Int_t kNpla = AliTRDgeometry::Nplan(); - if (isnan(t->GetP())) return kFALSE; + if (TMath::IsNaN(t->GetP())) return kFALSE; Float_t * charge = new Float_t[kNpla]; Int_t * nCluster = new Int_t[kNpla]; @@ -387,7 +380,7 @@ Int_t AliTRDpidLQ::GetIndex(const AliTRDtrack *t) // Returns the histogram index // - if (isnan(t->GetP())) return -1; + if (TMath::IsNaN(t->GetP())) return -1; Float_t mom = t->GetP(); Int_t ipid = MCpid(t); @@ -396,7 +389,7 @@ Int_t AliTRDpidLQ::GetIndex(const AliTRDtrack *t) } //_____________________________________________________________________________ -Int_t AliTRDpidLQ::GetIndex(const Float_t mom, const Int_t ipid) +Int_t AliTRDpidLQ::GetIndex(Float_t mom, Int_t ipid) { // // Returns the histogram index @@ -409,7 +402,7 @@ Int_t AliTRDpidLQ::GetIndex(const Float_t mom, const Int_t ipid) } //_____________________________________________________________________________ -Int_t AliTRDpidLQ::GetIndex(const Int_t imom, const Int_t ipid) +Int_t AliTRDpidLQ::GetIndex(Int_t imom, Int_t ipid) { // // Returns the histogram index