]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Code clean up (debug messages)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Feb 2006 15:36:04 +0000 (15:36 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Feb 2006 15:36:04 +0000 (15:36 +0000)
ITS/AliITSPident.cxx
ITS/AliITSReconstructor.cxx
ITS/AliITSSteerPid.cxx

index 446e6e73b9b194c864f9f36a4d68fb370698a2b9..3b51d0985c16efd21df9995750958f74c43548f1 100644 (file)
@@ -57,8 +57,7 @@ AliITSPident::AliITSPident(Double_t mom,Double_t invPt,Double_t dEdx,AliITSSteer
   for(Int_t la=0;la<4;la++){//loop on layers
     Double_t parp[3];Double_t park[3];Double_t parpi[3];
     sp->GetParFitLayer(la,fMom,parp,park,parpi);
-    // cout<<"lay = "<<la<<endl;
-    //for(Int_t i=0;i<3;i++)cout<<parp[i]<<"  "<<park[i]<<"  "<<parpi[i]<<endl;
+
     Double_t range[6];
     range[0]=0.3*parp[1];
     range[1]=2.*parp[1];
@@ -92,17 +91,9 @@ AliITSPident::AliITSPident(Double_t mom,Double_t invPt,Double_t dEdx,AliITSSteer
     
   }
 
-  cout<<"PROTONS"<<endl;
   fPBayesp=CookCombinedBayes(condFun,prior,0);
-  for(Int_t la=0;la<4;la++)cout<<"    lay "<<la<<"->prob "<<condFun[la][0];cout<<endl;cout<<"bayes = "<<fPBayesp<<endl;
-  cout<<"KAONS"<<endl;
   fPBayesk=CookCombinedBayes(condFun,prior,1); 
-  for(Int_t la=0;la<4;la++)cout<<"    lay "<<la<<"->prob "<<condFun[la][1];cout<<endl;cout<<"bayes = "<<fPBayesk<<endl;
-  cout<<"PIONS"<<endl;
   fPBayespi=CookCombinedBayes(condFun,prior,2); 
-  for(Int_t la=0;la<4;la++)cout<<"    lay "<<la<<"->prob "<<condFun[la][2];cout<<endl;cout<<"bayes = "<<fPBayespi<<endl;
-  
   fdEdx=dEdx;
 }
 
@@ -155,15 +146,9 @@ AliITSPident::AliITSPident(AliITStrackV2 *trackITS,AliITSSteerPid *sp,Float_t *Q
     
   }
 
-  cout<<"PROTONS"<<endl;
   fPBayesp=CookCombinedBayes(condFun,prior,0);
-  for(Int_t la=0;la<4;la++)cout<<"    lay "<<la<<"->prob "<<condFun[la][0];cout<<endl;cout<<"bayes = "<<fPBayesp<<endl;
-  cout<<"KAONS"<<endl;
   fPBayesk=CookCombinedBayes(condFun,prior,1); 
-  for(Int_t la=0;la<4;la++)cout<<"    lay "<<la<<"->prob "<<condFun[la][1];cout<<endl;cout<<"bayes = "<<fPBayesk<<endl;
-  cout<<"PIONS"<<endl;
   fPBayespi=CookCombinedBayes(condFun,prior,2); 
-  for(Int_t la=0;la<4;la++)cout<<"    lay "<<la<<"->prob "<<condFun[la][2];cout<<endl;cout<<"bayes = "<<fPBayespi<<endl;
   fdEdx=trackITS->GetdEdx();
 
 }
index cee6b58ff0cc4d9770983649b6e5b5569ba7aea4..4bd865e4e0e7971fa90870976bb8b63e26c0bdb5 100644 (file)
@@ -210,9 +210,11 @@ void AliITSReconstructor::FillESD(AliRunLoader* runLoader,
   AliITSpidESD *pidESD = 0;
   TString selectedPIDmethod = GetOption();
   if(selectedPIDmethod.Contains("LandauFitPID")){
+    Info("FillESD","ITS LandauFitPID option has been selected\n");
     pidESD=loader->GetITSpid();
   }
   else{
+    Info("FillESD","ITS default PID\n");
     pidESD=loader->GetITSpid();
   }
   if(pidESD!=0){
index ed4f7b8f1906a3676c13e12e98190ebf3704e902..64e7a428aa58f10f7f07d286bd6a6c82f58da1b1 100644 (file)
@@ -43,7 +43,6 @@ AliITSSteerPid& AliITSSteerPid::operator=(const AliITSSteerPid& /* ob */){
 //______________________________________________________________
 void AliITSSteerPid::InitLayer(TString fileITS,TString fileFitPar){
   // it opens the files useful for the PID 
-  printf("££££ InitLayer.....\n");
   TFile *fClonarr2=new TFile (fileITS,"r");
   fVect2=(TClonesArray*)fClonarr2->Get("vectfitits_0");//truncated mean
   fVect2lay1=(TClonesArray*)fClonarr2->Get("vectfitits_1");//lay 1
@@ -54,7 +53,6 @@ void AliITSSteerPid::InitLayer(TString fileITS,TString fileFitPar){
   TFile *fFitPar=new TFile (fileFitPar);
   fFitTree=(TTree*)fFitPar->Get("tree");
  
-   printf("££££ InitLayer.....DONE \n");
 }
 
 //______________________________________________________________
@@ -74,7 +72,8 @@ AliITSPidParItem* AliITSSteerPid::GetItemLayer(Int_t nolay,Float_t mom){
 
 //______________________________________________________________
 void AliITSSteerPid::GetParFitLayer(Int_t nolay,Float_t mom,Double_t *parp,Double_t *park,Double_t *parpi){
-  //it gives the parameters of the convoluted functions (WL, MP, WG) for protons, kaons and pions for a given momentum and ITS layer
+  //it gives the parameters of the convoluted functions (WL, MP, WG) for 
+  //protons, kaons and pions for a given momentum and ITS layer
 
   Double_t parfit0pro[3]={0,0,0};
   Double_t parfit1pro[3]={0,0,0};
@@ -107,14 +106,16 @@ void AliITSSteerPid::GetParFitLayer(Int_t nolay,Float_t mom,Double_t *parp,Doubl
 }//______________________________________________________________
 void AliITSSteerPid::GetLangausProPars(Float_t mom,Double_t *parfit0,Double_t *parfit1,Double_t *parfit3,Double_t *par){
  
-  //It finds the parameters of the convoluted Landau-Gaussian response function for protons (Width Landau, Most Probable, Width Gaussian)
+  //It finds the parameters of the convoluted Landau-Gaussian response 
+  //function for protons (Width Landau, Most Probable, Width Gaussian)
   par[0]=parfit0[0]+parfit0[1]/mom;
   par[1]=parfit1[0]/(mom*mom)+parfit1[1]/(mom*mom)*TMath::Log(mom*mom)+parfit1[2];
   par[2]=parfit3[0]/(mom*mom)+parfit3[1]/(mom*mom)*TMath::Log(mom*mom)+parfit3[2];
 }
 //______________________________________________________________
 void AliITSSteerPid::GetLangausKaoPars(Float_t mom,Double_t *parfit0,Double_t *parfit1,Double_t *parfit3,Double_t *par){
-  // It finds the parameters of the convoluted Landau-Gaussian response function for kaons (Width Landau, Most Probable, Width Gaussian)
+  // It finds the parameters of the convoluted Landau-Gaussian response 
+  //function for kaons (Width Landau, Most Probable, Width Gaussian)
 
   par[0]=parfit0[0]+parfit0[1]/(mom*mom);
   par[1]=parfit1[0]/(mom*mom)+parfit1[1]/(mom*mom)*TMath::Log(mom*mom)+parfit1[2];
@@ -123,7 +124,8 @@ void AliITSSteerPid::GetLangausKaoPars(Float_t mom,Double_t *parfit0,Double_t *p
 
 //______________________________________________________________
 void AliITSSteerPid::GetLangausPiPars(Float_t mom,Double_t *parfit0,Double_t *parfit1,Double_t *parfit3,Double_t *par){
-  //It finds the parameters of the convoluted Landau-Gaussian response function for pions (Width Landau, Most Probable, Width Gaussian)
+  //It finds the parameters of the convoluted Landau-Gaussian response 
+  //function for pions (Width Landau, Most Probable, Width Gaussian)
 
   par[0]=parfit0[0]/(mom*mom)+parfit0[1]/(mom*mom)*TMath::Log(mom*mom)+parfit0[2];
   par[1]=parfit1[0]/(mom)+parfit1[1]/(mom)*TMath::Log(mom*mom)+parfit1[2];