Updated tasks
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Apr 2013 15:37:55 +0000 (15:37 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Apr 2013 15:37:55 +0000 (15:37 +0000)
PWGLF/FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.cxx
PWGLF/FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.h
PWGLF/FORWARD/GEO/AliAnalysisTaskZDCpAcalib.cxx

index b985b41..ab80ddb 100644 (file)
@@ -67,6 +67,7 @@ AliAnalysisTaskZDCTreeMaker::AliAnalysisTaskZDCTreeMaker():
     fOutput(0x0),
     fCentralityTree(0x0),
     fIsEventSelected(kFALSE),
+    fIsPileupFromSPD(kFALSE),
     fxVertex(0),        
     fyVertex(0),        
     fzVertex(0),        
@@ -127,6 +128,7 @@ AliAnalysisTaskZDCTreeMaker::AliAnalysisTaskZDCTreeMaker(const char *name):
     fOutput(0x0),
     fCentralityTree(0x0),
     fIsEventSelected(kFALSE),
+    fIsPileupFromSPD(kFALSE),
     fxVertex(0),       
     fyVertex(0),       
     fzVertex(0),       
@@ -289,6 +291,7 @@ void AliAnalysisTaskZDCTreeMaker::UserExec(Option_t */*option*/)
       
       // use response of AliPhysicsSelection
       fIsEventSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kAnyINT);       
+      fIsPileupFromSPD = esd->IsPileupFromSPD(5);
 
       AliCentrality *centrality = esd->GetCentrality();
       fCentralityV0M = centrality->GetCentralityPercentile("V0M");
@@ -375,6 +378,7 @@ void AliAnalysisTaskZDCTreeMaker::UserExec(Option_t */*option*/)
       
       // use response of AliPhysicsSelection
       fIsEventSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kCINT5);       
+      fIsPileupFromSPD = aod->IsPileupFromSPD(5);
       
       AliCentrality *centrality = aod->GetCentrality();
       fCentralityV0M = centrality->GetCentralityPercentile("V0M");
index c391bfa..85bd141 100644 (file)
@@ -46,9 +46,10 @@ class AliAnalysisTaskZDCTreeMaker : public AliAnalysisTaskSE {
   //
   TTree   *fCentralityTree;     //! output tree
   //
-  //char     fTrigClass[100];  //  fired trigger classes
+  char     fTrigClass[100];    //  fired trigger classes
   //
   Bool_t   fIsEventSelected;    //  is physics selection on
+  Bool_t   fIsPileupFromSPD;   //  is pilue up from SPD
   //
   Double_t fxVertex;           //  X vertex from ITS
   Double_t fyVertex;           //  Y vertex from ITS
@@ -98,7 +99,7 @@ class AliAnalysisTaskZDCTreeMaker : public AliAnalysisTaskSE {
   AliAnalysisTaskZDCTreeMaker& operator= (const AliAnalysisTaskZDCTreeMaker& ana);
   AliAnalysisTaskZDCTreeMaker(const AliAnalysisTaskZDCTreeMaker& c);
   //
-  ClassDef(AliAnalysisTaskZDCTreeMaker,1); 
+  ClassDef(AliAnalysisTaskZDCTreeMaker,2); 
 
 };
 
index 58b8f8f..132830e 100644 (file)
@@ -209,12 +209,13 @@ void AliAnalysisTaskZDCpAcalib::UserExec(Option_t */*option*/)
       sprintf(fTrigClass,"%s",triggerClass.Data());
       
       // use response of AliPhysicsSelection
-      fIsEventSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kCINT5);       
+      fIsEventSelected =
+      (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kINT7);       
 
           
-      AliESDVZERO *vzeroAOD = esd->GetVZEROData();
-      fIsV0ATriggered = vzeroAOD->GetV0ADecision();
-      fIsV0CTriggered = vzeroAOD->GetV0CDecision();
+      AliESDVZERO *vzeroESD = esd->GetVZEROData();
+      fIsV0ATriggered = vzeroESD->GetV0ADecision();
+      fIsV0CTriggered = vzeroESD->GetV0CDecision();
         
       AliESDZDC *esdZDC = esd->GetESDZDC();