]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
Preliminary work to get centrality in
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / AliForwardMCCorrectionsTask.cxx
index d973b5b5667eb48b481bda8057c7e7c7bd1ba6fe..068325cf2941963c2b11a9a09337204cf40fcfc3 100644 (file)
@@ -23,7 +23,7 @@
 #include "AliInputEventHandler.h"
 #include "AliStack.h"
 #include "AliMCEvent.h"
-#include "AliFMDStripIndex.h"
+//#include "AliFMDStripIndex.h"
 #include <TH1.h>
 #include <TH3D.h>
 #include <TDirectory.h>
@@ -491,11 +491,11 @@ AliForwardMCCorrectionsTask::UserExec(Option_t*)
     return;
   }
 
-  UInt_t   triggers;
-  Bool_t   gotTrigggers;
-  Bool_t   gotInel;
-  Double_t vZ;
-  Bool_t   gotVertex;
+  // UInt_t   triggers;
+  // Bool_t   gotTrigggers = false;
+  Bool_t   gotInel = false;
+  // Double_t vZ;
+  Bool_t   gotVertex = false;
 #if 0
   // Use event inspector instead 
   // Get the triggers 
@@ -554,9 +554,9 @@ AliForwardMCCorrectionsTask::UserExec(Option_t*)
        continue;
 
       // Get the detector coordinates 
-      UShort_t d, s, t;
-      Char_t r;
-      AliFMDStripIndex::Unpack(trackRef->UserId(), d, r, s, t);
+      UShort_t d = 0, s = 0, t = 0;
+      Char_t r = '\0';
+      // AliFMDStripIndex::Unpack(trackRef->UserId(), d, r, s, t);
       
       // Check if mother (?) is charged and that we haven't dealt with it 
       // already
@@ -786,10 +786,10 @@ AliForwardMCCorrectionsTask::Terminate(Option_t*)
     list->Add(vl);
 
     // Get event counts 
-    Int_t nEventsAll   = eventsAll->GetBinContent(v);
-    Int_t nEventsTr    = eventsTr->GetBinContent(v);
-    Int_t nEventsVtx   = eventsVtx->GetBinContent(v);
-    Int_t nEventsTrVtx = eventsTrVtx->GetBinContent(v);
+    Int_t nEventsAll   = Int_t(eventsAll->GetBinContent(v));
+    Int_t nEventsTr    = Int_t(eventsTr->GetBinContent(v));
+    // Int_t nEventsVtx   = eventsVtx->GetBinContent(v);
+    // Int_t nEventsTrVtx = eventsTrVtx->GetBinContent(v);
 
     // Project event histograms, set names, and store  
     TH2D* primIAllV   = GetVertexProj(v, primIAll);