]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/analysis/AliFMDAnalysisTaskBackgroundCorrection.cxx
This is an upgrade to the FMD analysis which includes better sharing correction,...
[u/mrichter/AliRoot.git] / FMD / analysis / AliFMDAnalysisTaskBackgroundCorrection.cxx
index 5f6946f11a33e84f0617647f7a7dd7789ec56d52..6f70730de5e9e3ee48007e5aaf0bb54ce2034a45 100644 (file)
@@ -28,6 +28,7 @@ AliFMDAnalysisTaskBackgroundCorrection::AliFMDAnalysisTaskBackgroundCorrection()
 : fDebug(0),
   fOutputList(0),
   fInputList(0),
+  fHitList(0),
   fArray(0),
   fInputArray(0),
   fVertexString(0x0),
@@ -46,6 +47,7 @@ AliFMDAnalysisTaskBackgroundCorrection::AliFMDAnalysisTaskBackgroundCorrection(c
     fDebug(0),
     fOutputList(0),
     fInputList(0),
+    fHitList(0),
     fArray(),
     fInputArray(0),
     fVertexString(0x0),
@@ -71,6 +73,9 @@ void AliFMDAnalysisTaskBackgroundCorrection::CreateOutputObjects()
   if(!fOutputList)
     fOutputList = new TList();
   fOutputList->SetName("BackgroundCorrectedPerEvent");
+  if(!fHitList)
+    fHitList = new TList();
+  fHitList->SetName("HitsList");
   
   
   TH2F* hMult = 0;
@@ -107,6 +112,7 @@ void AliFMDAnalysisTaskBackgroundCorrection::CreateOutputObjects()
                              nSec, 0, 2*TMath::Pi());
            
            hHits->Sumw2();
+           fHitList->Add(hHits);
            fOutputList->Add(hHits);
            vtxArray->AddAtAndExpand(hMult,i);