/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ ////////////////////////////////////////////////////////////////////////// // // // Container for PID information // // // // Authors: // // Prashant Shukla // // Alex Bercuci // // // ////////////////////////////////////////////////////////////////////////// #include #include "AliTRDCalPID.h" ClassImp(AliTRDCalPID) const Char_t* AliTRDCalPID::fPartName[AliPID::kSPECIES] = { "electron", "muon", "pion", "kaon", "proton"}; const Char_t* AliTRDCalPID::fPartSymb[AliPID::kSPECIES] = { "EL", "MU", "PI", "KA", "PR"}; Color_t AliTRDCalPID::fgPartColor[AliPID::kSPECIES] = { kRed, kGreen, kBlue, kYellow, kMagenta}; Float_t AliTRDCalPID::fgTrackMomentum[kNMom] = { 0.6, 0.8, 1.0, 1.5, 2.0 , 3.0, 4.0, 5.0, 6.0, 8.0, 10.0 }; Float_t AliTRDCalPID::fgTrackMomentumBinning[kNMom+1] = { 0.5, 0.7, 0.9, 1.25, 1.75, 2.5 , 3.5, 4.5, 5.5, 7.0, 9.0, 12.0 }; //_________________________________________________________________________ AliTRDCalPID::AliTRDCalPID() :TNamed("pid", "PID for TRD") ,fModel(0x0) { // // The Default constructor // } //_____________________________________________________________________________ AliTRDCalPID::AliTRDCalPID(const Text_t *name, const Text_t *title) :TNamed(name,title) ,fModel(0x0) { // // The main constructor // } //_________________________________________________________________________ AliTRDCalPID::~AliTRDCalPID() { // // Destructor // if (fModel) { delete fModel; } } //_________________________________________________________________________ Int_t AliTRDCalPID::GetPartIndex(Int_t pdg) { // // Return the index to a given particle, defined by its PDG code // for(Int_t is=0; is