]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Initialization per-event added
authorddobrigk <david.dobrigkeit.chinellato@cern.ch>
Tue, 8 Jul 2014 14:25:32 +0000 (11:25 -0300)
committerddobrigk <david.dobrigkeit.chinellato@cern.ch>
Tue, 8 Jul 2014 14:26:13 +0000 (11:26 -0300)
PWGLF/STRANGENESS/Cascades/AliAnalysisTaskStrangenessVsMultiplicity.cxx
PWGLF/STRANGENESS/Cascades/AliAnalysisTaskStrangenessVsMultiplicityMC.cxx

index a5254516430ad6bd9ccafeb8a7454d07bd06c69f..b5e6affe2461784a8caed07d6c82624fe29f35e8 100644 (file)
@@ -99,7 +99,7 @@ AliAnalysisTaskStrangenessVsMultiplicity::AliAnalysisTaskStrangenessVsMultiplici
   : AliAnalysisTaskSE(), fListHist(0), fTreeEvent(0), fTreeV0(0), fTreeCascade(0), fPIDResponse(0), fESDtrackCuts(0), fPPVsMultUtils(0), fUtils(0), 
   fkSaveV0Tree      ( kFALSE ),
   fkSaveCascadeTree ( kTRUE  ),
-  fkRunVertexers    ( kTRUE  ), 
+  fkRunVertexers    ( kTRUE  ),
   fkSkipEventSelection( kFALSE ),
   //---> Variables for fTreeEvent
   fAmplitude_V0A   (0),   
@@ -623,7 +623,8 @@ void AliAnalysisTaskStrangenessVsMultiplicity::UserExec(Option_t *)
   fEvSel_VtxZCut                = kFALSE; 
   fEvSel_IsNotPileup            = kFALSE; 
   fEvSel_IsNotPileupInMultBins  = kFALSE; 
-  fEvSel_HasVtxContributor      = kFALSE; 
+  fEvSel_HasVtxContributor      = kFALSE;
+  fEvSel_Triggered              = kFALSE;
 
   fEvSel_nTracklets   = -1; 
   fEvSel_nSPDClusters = -1; 
index a77031d7648d8d0e3bc9d321c4cfad645f00e390..baccf808791e92f1d9ad122f84be7974f55dbaf7 100644 (file)
@@ -1045,6 +1045,13 @@ void AliAnalysisTaskStrangenessVsMultiplicityMC::UserExec(Option_t *)
    AliMCEvent  *lMCevent  = 0x0; 
    AliStack    *lMCstack  = 0x0; 
   
+    //Zero all booleans, etc
+    fEvSel_HasAtLeastSPDVertex    = kFALSE;
+    fEvSel_VtxZCut                = kFALSE;
+    fEvSel_IsNotPileup            = kFALSE;
+    fEvSel_IsNotPileupInMultBins  = kFALSE;
+    fEvSel_HasVtxContributor      = kFALSE;
+    fEvSel_Triggered              = kFALSE;
   // Connect to the InputEvent   
   // After these lines, we should have an ESD/AOD event + the number of V0s in it.