* 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$ */
///////////////////////////////////////////////////////////////////////////////
// //
#include <TParticle.h>
#include "AliRun.h"
-#include "AliTRD.h"
#include "AliTRDpidLQ.h"
#include "AliTRDcluster.h"
#include "AliTRDtrack.h"
}
//_____________________________________________________________________________
-AliTRDpidLQ::AliTRDpidLQ(const AliTRDpidLQ &p)
+AliTRDpidLQ::AliTRDpidLQ(const AliTRDpidLQ &p):AliTRDpid(p)
{
//
// AliTRDpidLQ copy constructor
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
}
//_____________________________________________________________________________
-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
// 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);
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];
// 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);
}
//_____________________________________________________________________________
-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
}
//_____________________________________________________________________________
-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