1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //////////////////////////////////////////////////////////////////////////
20 // Container for PID information //
23 // Prashant Shukla <shukla@pi0.physi.uni-heidelberg.de> //
24 // Alex Bercuci <a.bercuci@gsi.de> //
26 //////////////////////////////////////////////////////////////////////////
35 #include "AliESDtrack.h"
37 #include "AliTRDCalPID.h"
38 #include "AliTRDcalibDB.h"
40 ClassImp(AliTRDCalPID)
42 Char_t* AliTRDCalPID::fPartName[AliPID::kSPECIES] = { "electron", "muon", "pion", "kaon", "proton"};
43 Char_t* AliTRDCalPID::fPartSymb[AliPID::kSPECIES] = { "EL", "MU", "PI", "KA", "PR"};
44 Color_t AliTRDCalPID::fPartColor[AliPID::kSPECIES] = { kRed, kGreen, kBlue, kYellow, kMagenta};
45 Float_t AliTRDCalPID::fTrackMomentum[kNMom] = {
46 0.6, 0.8, 1.0, 1.5, 2.0
47 ,3.0, 4.0, 5.0, 6.0, 8.0, 10.0};
49 //_________________________________________________________________________
50 AliTRDCalPID::AliTRDCalPID()
51 :TNamed("pid", "PID for TRD")
55 // The Default constructor
60 //_____________________________________________________________________________
61 AliTRDCalPID::AliTRDCalPID(const Text_t *name, const Text_t *title)
66 // The main constructor
71 //_________________________________________________________________________
72 AliTRDCalPID::~AliTRDCalPID()
84 //_________________________________________________________________________
85 Int_t AliTRDCalPID::GetPartIndex(Int_t pdg)
87 for(Int_t is=0; is<AliPID::kSPECIES; is++){
88 if(TMath::Abs(pdg) == AliPID::ParticleCode(is)) return is;