]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpidLQ.cxx
module.mk depends in addition on header.tpl, clean.tpl, and alibtool
[u/mrichter/AliRoot.git] / TRD / AliTRDpidLQ.cxx
index 1a5af5150de72af269c4e6bb08fe8996db58e6be..c89044c7b9441f14917cb9bcfa093bdf054e500d 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.2.8.2  2002/07/24 10:09:31  alibrary
-Updating VirtualMC
-
-Revision 1.2.8.1  2002/06/10 15:28:58  hristov
-Merged with v3-08-02
-
-Revision 1.4  2002/03/28 15:44:55  cblume
-Remove const from GetIndex()
-
-Revision 1.3  2002/03/28 14:59:07  cblume
-Coding conventions
-
-Revision 1.4  2002/03/28 15:44:55  cblume
-Remove const from GetIndex()
-
-Revision 1.3  2002/03/28 14:59:07  cblume
-Coding conventions
-
-Revision 1.2  2001/11/07 11:04:22  hristov
-Minor corrections needed on Sun (arrays with undefined size created by new, inline decration removed when the body was hot in the header file)
-
-Revision 1.1  2001/11/06 17:19:41  cblume
-Add detailed geometry and simple simulator
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -63,7 +37,6 @@ Add detailed geometry and simple simulator
 #include <TParticle.h>
 
 #include "AliRun.h"
-#include "AliTRD.h"
 #include "AliTRDpidLQ.h"
 #include "AliTRDcluster.h"
 #include "AliTRDtrack.h"
@@ -119,7 +92,7 @@ AliTRDpidLQ::AliTRDpidLQ(const char* name, const char* title)
 }
 
 //_____________________________________________________________________________
-AliTRDpidLQ::AliTRDpidLQ(const AliTRDpidLQ &p)
+AliTRDpidLQ::AliTRDpidLQ(const AliTRDpidLQ &p):AliTRDpid(p)
 {
   //
   // AliTRDpidLQ copy constructor
@@ -220,7 +193,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
@@ -285,9 +258,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
@@ -334,7 +305,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);
@@ -370,7 +341,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];
@@ -408,7 +379,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);
 
@@ -417,7 +388,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
@@ -430,7 +401,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