/************************************************************************** * Copyright(c) 2005-2007, 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$ */ //----------------------------------------------------------------- // ITS PID method # 1 // Implementation of the ITS PID class // Very naive one... Should be made better by the detector experts... // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch //----------------------------------------------------------------- #include "TMath.h" #include "AliITSPIDResponse.h" #include "AliITSPidParams.h" #include "AliExternalTrackParam.h" ClassImp(AliITSPIDResponse) AliITSPIDResponse::AliITSPIDResponse(Bool_t isMC): fRes(0.13), fKp1(15.77), fKp2(4.95), fKp3(0.312), fKp4(2.14), fKp5(0.82) { if(!isMC){ fBBtpcits[0]=0.73; fBBtpcits[1]=14.68; fBBtpcits[2]=0.905; fBBtpcits[3]=1.2; fBBtpcits[4]=6.6; fBBsa[0]=2.73198E7; //pure PHOBOS parameterization fBBsa[1]=6.92389; fBBsa[2]=1.90088E-6; fBBsa[3]=1.90088E-6; fBBsa[4]=3.40644E-7; fBBsaHybrid[0]=1.43505E7; //PHOBOS+Polinomial parameterization fBBsaHybrid[1]=49.3402; fBBsaHybrid[2]=1.77741E-7; fBBsaHybrid[3]=1.77741E-7; fBBsaHybrid[4]=1.01311E-7; fBBsaHybrid[5]=77.2777; fBBsaHybrid[6]=33.4099; fBBsaHybrid[7]=46.0089; fBBsaHybrid[8]=-2.26583; fBBsaElectron[0]=4.05799E6; //electrons in the ITS fBBsaElectron[1]=38.5713; fBBsaElectron[2]=1.46462E-7; fBBsaElectron[3]=1.46462E-7; fBBsaElectron[4]=4.40284E-7; fResolSA[0]=1.; // 0 cluster tracks should not be used fResolSA[1]=0.25; // rough values for tracks with 1 fResolSA[2]=0.131; // value from pp 2010 run (L. Milano, 16-Jun-11) fResolSA[3]=0.113; // value from pp 2010 run fResolSA[4]=0.104; // value from pp 2010 run for(Int_t i=0; i<5;i++) fResolTPCITS[i]=0.13; }else{ fBBtpcits[0]=1.04; fBBtpcits[1]=27.14; fBBtpcits[2]=1.00; fBBtpcits[3]=0.964; fBBtpcits[4]=2.59; fBBsa[0]=2.02078E7; //pure PHOBOS parameterization fBBsa[1]=14.0724; fBBsa[2]=3.84454E-7; fBBsa[3]=3.84454E-7; fBBsa[4]=2.43913E-7; fBBsaHybrid[0]=1.05381E7; //PHOBOS+Polinomial parameterization fBBsaHybrid[1]=89.3933; fBBsaHybrid[2]=2.4831E-7; fBBsaHybrid[3]=2.4831E-7; fBBsaHybrid[4]=7.80591E-8; fBBsaHybrid[5]=62.9214; fBBsaHybrid[6]=32.347; fBBsaHybrid[7]=58.7661; fBBsaHybrid[8]=-3.39869; fBBsaElectron[0]=2.26807E6; //electrons in the ITS fBBsaElectron[1]=99.985; fBBsaElectron[2]=0.000714841; fBBsaElectron[3]=0.000259585; fBBsaElectron[4]=1.39412E-7; fResolSA[0]=1.; // 0 cluster tracks should not be used fResolSA[1]=0.25; // rough values for tracks with 1 fResolSA[2]=0.126; // value from pp 2010 simulations (L. Milano, 16-Jun-11) fResolSA[3]=0.109; // value from pp 2010 simulations fResolSA[4]=0.097; // value from pp 2010 simulations for(Int_t i=0; i<5;i++) fResolTPCITS[i]=0.13; } } /* //_________________________________________________________________________ AliITSPIDResponse::AliITSPIDResponse(Double_t *param): fRes(param[0]), fKp1(15.77), fKp2(4.95), fKp3(0.312), fKp4(2.14), fKp5(0.82) { // // The main constructor // for (Int_t i=0; i<5;i++) { fBBsa[i]=0.; fBBtpcits[i]=0.; fResolSA[i]=0.; fResolTPCITS[i]=0.; } } */ //_________________________________________________________________________ Double_t AliITSPIDResponse::BetheAleph(Double_t p, Double_t mass) const { // // returns AliExternalTrackParam::BetheBloch normalized to // fgMIP at the minimum // Double_t bb= AliExternalTrackParam::BetheBlochAleph(p/mass,fKp1,fKp2,fKp3,fKp4,fKp5); return bb; } //_________________________________________________________________________ Double_t AliITSPIDResponse::Bethe(Double_t p, Double_t mass, Bool_t isSA) const { // // returns AliExternalTrackParam::BetheBloch normalized to // fgMIP at the minimum // Double_t bg=p/mass; Double_t beta = bg/TMath::Sqrt(1.+ bg*bg); Double_t gamma=bg/beta; Double_t bb=1.; Double_t par[5]; if(isSA){ if(mass>0.0005 && mass<0.00052){ //if is an electron use a specific BB parameterization //To be used only between 100 and 160 MeV/c for(Int_t ip=0; ip<5;ip++) par[ip]=fBBsaElectron[ip]; }else{ for(Int_t ip=0; ip<5;ip++) par[ip]=fBBsa[ip]; } }else{ for(Int_t ip=0; ip<5;ip++) par[ip]=fBBtpcits[ip]; } Double_t eff=1.0; if(bg=0. && beta>0.){ bb=(par[1]+2.0*TMath::Log(gamma)-beta*beta)*(par[0]/(beta*beta))*eff; } return bb; } //_________________________________________________________________________ Double_t AliITSPIDResponse::BetheITSsaHybrid(Double_t p, Double_t mass) const { // // returns AliExternalTrackParam::BetheBloch normalized to // fgMIP at the minimum. The PHOBOS parameterization is used for beta*gamma>0.76. // For beta*gamma<0.76 a polinomial function is used Double_t bg=p/mass; Double_t beta = bg/TMath::Sqrt(1.+ bg*bg); Double_t gamma=bg/beta; Double_t bb=1.; Double_t par[9]; //parameters for pi, K, p for(Int_t ip=0; ip<9;ip++) par[ip]=fBBsaHybrid[ip]; //if it is an electron the PHOBOS part of the parameterization is tuned for e //in the range used for identification beta*gamma is >0.76 for electrons //To be used only between 100 and 160 MeV/c if(mass>0.0005 && mass<0.00052)for(Int_t ip=0; ip<5;ip++) par[ip]=fBBsaElectron[ip]; if(gamma>=0. && beta>0. && bg>0.1){ if(bg>0.76){//PHOBOS Double_t eff=1.0; if(bg(0.5*(bethep+bethek))) return AliPID::kProton; Double_t masspi=AliPID::ParticleMass(AliPID::kPion); Double_t bethepi=Bethe(mom,masspi,isSA); if(signal>(0.5*(bethepi+bethek))) return AliPID::kKaon; return AliPID::kPion; }