]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- bug fixes (increase classdef)
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Sep 2011 12:54:59 +0000 (12:54 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Sep 2011 12:54:59 +0000 (12:54 +0000)
- new variable (TPCsignalN in AliPerformanceDEdx)
(Markus Koehler)

PWG1/TPC/AliPerformanceDEdx.cxx
PWG1/TPC/AliPerformanceDEdx.h
PWG1/TPC/AliPerformanceMatch.h
PWG1/TPC/AliPerformanceTPC.h

index fb3590568a4d2a1ef8a727d2e2cb8e705ca73e2c..454f537f10a68b0aa7d4e8cf0ecb048d92b593a3 100644 (file)
@@ -152,12 +152,12 @@ void AliPerformanceDEdx::Init()
    //Int_t binsQA[8]    = {300, 50, 50,  50, 50, 50, 80, nPBins};
    //Double_t xminQA[8] = {0, -4,-20,-250, -1, -2, 0, pMin};
    //Double_t xmaxQA[8] = {300, 4, 20, 250,  1,  2, 160, pMax};
-   Int_t binsQA[8]    = {300, 144, 50,  50, 50, 50, 80, nPBins};
-   Double_t xminQA[8] = {0, -TMath::Pi(),-20,-250, -1, -2, 0, pMin};
-   Double_t xmaxQA[8] = {300, TMath::Pi(), 20, 250,  1,  2, 160, pMax};
+   Int_t binsQA[9]    = {300, 144, 50,  50, 50, 50, 80, nPBins, 160};
+   Double_t xminQA[9] = {0, -TMath::Pi(),-20,-250, -1, -2, 0, pMin, 0.};
+   Double_t xmaxQA[9] = {300, TMath::Pi(), 20, 250,  1,  2, 160, pMax ,160.};
 
    //fDeDxHisto = new THnSparseF("fDeDxHisto","dedx:alpha:y:z:snp:tgl:ncls:momentum",8,binsQA,xminQA,xmaxQA);
-   fDeDxHisto = new THnSparseF("fDeDxHisto","dedx:phi:y:z:snp:tgl:ncls:momentum",8,binsQA,xminQA,xmaxQA);
+   fDeDxHisto = new THnSparseF("fDeDxHisto","dedx:phi:y:z:snp:tgl:ncls:momentum:TPCSignalN",9,binsQA,xminQA,xmaxQA);
    fDeDxHisto->SetBinEdges(7,binsP);
 
    fDeDxHisto->GetAxis(0)->SetTitle("dedx (a.u.)");
@@ -168,6 +168,7 @@ void AliPerformanceDEdx::Init()
    fDeDxHisto->GetAxis(5)->SetTitle("tan#lambda");
    fDeDxHisto->GetAxis(6)->SetTitle("ncls");
    fDeDxHisto->GetAxis(7)->SetTitle("p (GeV/c)");
+   fDeDxHisto->GetAxis(8)->SetTitle("number of cls used for dEdx");
    //fDeDxHisto->Sumw2();
 
    // Init cuts
@@ -245,6 +246,8 @@ void AliPerformanceDEdx::ProcessInnerTPC(AliStack* const stack, AliESDtrack *con
 
   Float_t dedx = esdTrack->GetTPCsignal();
   Int_t ncls = esdTrack->GetTPCNcls();
+  Int_t TPCSignalN = esdTrack->GetTPCsignalN();
+
 
   Double_t pt = innerParam->Pt();
   Double_t lam = TMath::ATan2(innerParam->Pz(),innerParam->Pt());
@@ -258,7 +261,7 @@ void AliPerformanceDEdx::ProcessInnerTPC(AliStack* const stack, AliESDtrack *con
   Double_t tgl = innerParam->GetTgl();
 
   //Double_t vDeDxHisto[8] = {dedx,alpha,y,z,snp,tgl,ncls,p};
-  Double_t vDeDxHisto[8] = {dedx,phi,y,z,snp,tgl,ncls,p};
+  Double_t vDeDxHisto[9] = {dedx,phi,y,z,snp,tgl,ncls,p,TPCSignalN};
   fDeDxHisto->Fill(vDeDxHisto); 
 
   if(!stack) return;
@@ -426,7 +429,7 @@ void AliPerformanceDEdx::Analyse()
   char name[256];
   char title[256];
 
-  for(Int_t i=1; i<8; i++) { 
+  for(Int_t i=1; i<9; i++) { 
     AddProjection(aFolderObj, "dedx", fDeDxHisto, 0, i);
   }
 
@@ -438,6 +441,7 @@ void AliPerformanceDEdx::Analyse()
   fDeDxHisto->GetAxis(5)->SetRangeUser(-0.9,0.89);
   fDeDxHisto->GetAxis(6)->SetRangeUser(60.,160.);
   fDeDxHisto->GetAxis(7)->SetRangeUser(0.4,0.499);
+  fDeDxHisto->GetAxis(8)->SetRangeUser(60.,160.);
   
   
   selString = "mipsres";
@@ -447,7 +451,7 @@ void AliPerformanceDEdx::Analyse()
   TObjArray *arr[7] = {0};
   TF1 *f1[7] = {0};
   
-  for(Int_t i=0; i<7; i++) 
+  for(Int_t i=0; i<8; i++) 
   { 
     arr[i] = new TObjArray;
     f1[i] = new TF1("gaus","gaus");
@@ -491,7 +495,8 @@ void AliPerformanceDEdx::Analyse()
     fDeDxHisto->GetAxis(5)->SetRangeUser(-1,1);
     fDeDxHisto->GetAxis(6)->SetRangeUser(80,160);
     fDeDxHisto->GetAxis(7)->SetRangeUser(0.4,0.55);
-    
+    fDeDxHisto->GetAxis(8)->SetRangeUser(80,160);
+
     selString = "mips";
     AddProjection(aFolderObj, "dedx", fDeDxHisto, 0, &selString);
     
@@ -513,7 +518,8 @@ void AliPerformanceDEdx::Analyse()
     fDeDxHisto->GetAxis(5)->SetRangeUser(-3,3);
     fDeDxHisto->GetAxis(6)->SetRangeUser(0,160);
     fDeDxHisto->GetAxis(7)->SetRangeUser(1e-2,10);    
-  
+    fDeDxHisto->GetAxis(8)->SetRangeUser(0,160);
+
     printf("exportToFolder\n");
     // export objects to analysis folder
     fAnalysisFolder = ExportToFolder(aFolderObj);
index ba3cb0651650b4e2765152caa76d179b3a99457e..1a113aea8450de971639a34d70154e3a576d4112 100644 (file)
@@ -99,7 +99,7 @@ private:
   AliPerformanceDEdx(const AliPerformanceDEdx&); // not implemented
   AliPerformanceDEdx& operator=(const AliPerformanceDEdx&); // not implemented
 
-  ClassDef(AliPerformanceDEdx,3);
+  ClassDef(AliPerformanceDEdx,4);
 };
 
 #endif
index fcf5a30c5883418f88513137b60d9fe326583734..8ef04ecdf76a74cfd55815879b536480aa1f0a24 100644 (file)
@@ -127,7 +127,7 @@ private:
   AliPerformanceMatch(const AliPerformanceMatch&); // not implemented
   AliPerformanceMatch& operator=(const AliPerformanceMatch&); // not implemented
 
-  ClassDef(AliPerformanceMatch,2);
+  ClassDef(AliPerformanceMatch,3);
 };
 
 #endif
index 31890f40e4b6252c7d1824e3c6700a085c247697..8a3f94ef43518d42e474c28339e34da56bd85f54 100644 (file)
@@ -108,7 +108,7 @@ private:
   AliPerformanceTPC(const AliPerformanceTPC&); // not implemented
   AliPerformanceTPC& operator=(const AliPerformanceTPC&); // not implemented
 
-  ClassDef(AliPerformanceTPC,10);
+  ClassDef(AliPerformanceTPC,11);
 };
 
 #endif