]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpidLQ.cxx
Avarage separation correlation function introduced
[u/mrichter/AliRoot.git] / TRD / AliTRDpidLQ.cxx
index 2d6150087c89e7c683333261425aafc650a509c3..4042ec331160e7e02a30ef55bfbdb2fb974f777b 100644 (file)
  * 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