]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add option to constrain tracks on ESDs
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2012 06:49:57 +0000 (06:49 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2012 06:49:57 +0000 (06:49 +0000)
PWGGA/CaloTrackCorrelations/macros/AddTaskCaloTrackCorr.C

index 4fdd37e85f043ecb98d723d12c7f11e486e05c76..d2927d2855e7c8c9a840bf8848a72491232c28a7 100644 (file)
@@ -351,6 +351,7 @@ AliCaloTrackReader * ConfigureReader()
     gROOT->LoadMacro("$ALICE_ROOT/PWGJE/macros/CreateTrackCutsPWGJE.C");
     AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10041004);
     reader->SetTrackCuts(esdTrackCuts);
+    reader->SwitchOnConstrainTrackToVertex();
   }
   else if(kInputDataType=="AOD")
   {
@@ -1259,6 +1260,7 @@ void SetHistoRangeAndNBins (AliHistogramRanges* histoRanges)
   // track-cluster residuals
   histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.15,0.15,300);
   histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.15,0.15,300);
+  histoRanges->SetHistodRRangeAndNBins(0.,0.15,150);//QA
 
   // QA, electron, charged
   histoRanges->SetHistoPOverERangeAndNBins(0,10.,100);
@@ -1266,7 +1268,6 @@ void SetHistoRangeAndNBins (AliHistogramRanges* histoRanges)
   
   // QA
   histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
-  histoRanges->SetHistodRRangeAndNBins(0.,TMath::Pi(),150);
   histoRanges->SetHistoRatioRangeAndNBins(0.,2.,100);
   histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
   histoRanges->SetHistoNClusterCellRangeAndNBins(0,500,500);