ROOT logo
/**************************************************************************
 * 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 <shukla@pi0.physi.uni-heidelberg.de>               //
//   Alex Bercuci <a.bercuci@gsi.de>                                    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include <TObjArray.h>

#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<AliPID::kSPECIES; is++){
    if(TMath::Abs(pdg) == AliPID::ParticleCode(is)) return is;
  }
  return -1;
}
 AliTRDCalPID.cxx:1
 AliTRDCalPID.cxx:2
 AliTRDCalPID.cxx:3
 AliTRDCalPID.cxx:4
 AliTRDCalPID.cxx:5
 AliTRDCalPID.cxx:6
 AliTRDCalPID.cxx:7
 AliTRDCalPID.cxx:8
 AliTRDCalPID.cxx:9
 AliTRDCalPID.cxx:10
 AliTRDCalPID.cxx:11
 AliTRDCalPID.cxx:12
 AliTRDCalPID.cxx:13
 AliTRDCalPID.cxx:14
 AliTRDCalPID.cxx:15
 AliTRDCalPID.cxx:16
 AliTRDCalPID.cxx:17
 AliTRDCalPID.cxx:18
 AliTRDCalPID.cxx:19
 AliTRDCalPID.cxx:20
 AliTRDCalPID.cxx:21
 AliTRDCalPID.cxx:22
 AliTRDCalPID.cxx:23
 AliTRDCalPID.cxx:24
 AliTRDCalPID.cxx:25
 AliTRDCalPID.cxx:26
 AliTRDCalPID.cxx:27
 AliTRDCalPID.cxx:28
 AliTRDCalPID.cxx:29
 AliTRDCalPID.cxx:30
 AliTRDCalPID.cxx:31
 AliTRDCalPID.cxx:32
 AliTRDCalPID.cxx:33
 AliTRDCalPID.cxx:34
 AliTRDCalPID.cxx:35
 AliTRDCalPID.cxx:36
 AliTRDCalPID.cxx:37
 AliTRDCalPID.cxx:38
 AliTRDCalPID.cxx:39
 AliTRDCalPID.cxx:40
 AliTRDCalPID.cxx:41
 AliTRDCalPID.cxx:42
 AliTRDCalPID.cxx:43
 AliTRDCalPID.cxx:44
 AliTRDCalPID.cxx:45
 AliTRDCalPID.cxx:46
 AliTRDCalPID.cxx:47
 AliTRDCalPID.cxx:48
 AliTRDCalPID.cxx:49
 AliTRDCalPID.cxx:50
 AliTRDCalPID.cxx:51
 AliTRDCalPID.cxx:52
 AliTRDCalPID.cxx:53
 AliTRDCalPID.cxx:54
 AliTRDCalPID.cxx:55
 AliTRDCalPID.cxx:56
 AliTRDCalPID.cxx:57
 AliTRDCalPID.cxx:58
 AliTRDCalPID.cxx:59
 AliTRDCalPID.cxx:60
 AliTRDCalPID.cxx:61
 AliTRDCalPID.cxx:62
 AliTRDCalPID.cxx:63
 AliTRDCalPID.cxx:64
 AliTRDCalPID.cxx:65
 AliTRDCalPID.cxx:66
 AliTRDCalPID.cxx:67
 AliTRDCalPID.cxx:68
 AliTRDCalPID.cxx:69
 AliTRDCalPID.cxx:70
 AliTRDCalPID.cxx:71
 AliTRDCalPID.cxx:72
 AliTRDCalPID.cxx:73
 AliTRDCalPID.cxx:74
 AliTRDCalPID.cxx:75
 AliTRDCalPID.cxx:76
 AliTRDCalPID.cxx:77
 AliTRDCalPID.cxx:78
 AliTRDCalPID.cxx:79
 AliTRDCalPID.cxx:80
 AliTRDCalPID.cxx:81
 AliTRDCalPID.cxx:82
 AliTRDCalPID.cxx:83
 AliTRDCalPID.cxx:84
 AliTRDCalPID.cxx:85
 AliTRDCalPID.cxx:86
 AliTRDCalPID.cxx:87
 AliTRDCalPID.cxx:88