]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixes for V0 condition in pA
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Sep 2012 11:10:55 +0000 (11:10 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Sep 2012 11:10:55 +0000 (11:10 +0000)
PWGLF/FORWARD/analysis2/AliFMDEventInspector.cxx
PWGLF/FORWARD/analysis2/AliFMDEventInspector.h

index 93f2de5520fbb9ac872b776a55458a052c32ca5c..c09571c9e47ce0594c0307a3ddd7bcf460be8b7c 100644 (file)
@@ -38,6 +38,7 @@
 #include "AliHeader.h"
 #include "AliGenEventHeader.h"
 #include "AliCollisionGeometry.h"
 #include "AliHeader.h"
 #include "AliGenEventHeader.h"
 #include "AliCollisionGeometry.h"
+#include "AliVVZERO.h"
 
 //====================================================================
 AliFMDEventInspector::AliFMDEventInspector()
 
 //====================================================================
 AliFMDEventInspector::AliFMDEventInspector()
@@ -671,6 +672,18 @@ AliFMDEventInspector::ReadCentrality(const AliESDEvent& esd,
   return true;
 }
 
   return true;
 }
 
+//____________________________________________________________________
+Bool_t
+AliFMDEventInspector::CheckpAExtraV0(const AliESDEvent& esd) const
+{
+  if (fCollisionSystem != AliForwardUtil::kPPb) return true;
+
+   AliVVZERO* esdV0 = esd.GetVZEROData();
+   if ((esdV0->GetV0ADecision()!=1) || (esdV0->GetV0CDecision()!=1)) 
+     return false;
+   return true;
+}
+
 //____________________________________________________________________
 Bool_t
 AliFMDEventInspector::ReadTriggers(const AliESDEvent& esd, UInt_t& triggers,
 //____________________________________________________________________
 Bool_t
 AliFMDEventInspector::ReadTriggers(const AliESDEvent& esd, UInt_t& triggers,
@@ -712,7 +725,7 @@ AliFMDEventInspector::ReadTriggers(const AliESDEvent& esd, UInt_t& triggers,
   // on the AliPhysicsSelection obejct.  If we called the latter
   // then the AliPhysicsSelection object would overcount by a 
   // factor of 2! :-(
   // on the AliPhysicsSelection obejct.  If we called the latter
   // then the AliPhysicsSelection object would overcount by a 
   // factor of 2! :-(
-  Bool_t  offline  = ih->IsEventSelected() ;
+  Bool_t  offline  = ih->IsEventSelected();
   Bool_t  fastonly = (ih->IsEventSelected() & AliVEvent::kFastOnly);
   TString trigStr  = esd.GetFiredTriggerClasses();
 
   Bool_t  fastonly = (ih->IsEventSelected() & AliVEvent::kFastOnly);
   TString trigStr  = esd.GetFiredTriggerClasses();
 
@@ -725,6 +738,7 @@ AliFMDEventInspector::ReadTriggers(const AliESDEvent& esd, UInt_t& triggers,
   
   if (CheckFastPartition(fastonly))     offline = false;
   if (offline && CheckCosmics(trigStr)) offline = false;
   
   if (CheckFastPartition(fastonly))     offline = false;
   if (offline && CheckCosmics(trigStr)) offline = false;
+  if (!CheckpAExtraV0(esd))             offline = false;
 
   DMSG(fDebug,2,"Event is %striggered by off-line", offline ? "" : "NOT ");
 
 
   DMSG(fDebug,2,"Event is %striggered by off-line", offline ? "" : "NOT ");
 
index c1bd0586ff47a3eb9840f4255f07a92dcbc24d25..ede32279d6ec1886a83ae0d648dcf59a7e3a5a27 100644 (file)
@@ -310,6 +310,7 @@ protected:
    */
   Bool_t ReadTriggers(const AliESDEvent& esd, UInt_t& triggers, 
                      UShort_t& nClusters);
    */
   Bool_t ReadTriggers(const AliESDEvent& esd, UInt_t& triggers, 
                      UShort_t& nClusters);
+  Bool_t CheckpAExtraV0(const AliESDEvent& esd) const;
   /** 
    * Check, for the @f$\sqrt{s}=2.76GeV@f$ pp run wether this event
    * was in the fast partition, and if so, filter it out.
   /** 
    * Check, for the @f$\sqrt{s}=2.76GeV@f$ pp run wether this event
    * was in the fast partition, and if so, filter it out.
@@ -467,7 +468,7 @@ protected:
   AliDisplacedVertexSelection fDisplacedVertex; //Displaced vertex selector
   TList    fCollWords;     //! Configured collision words 
   TList    fBgWords;       //! Configured background words 
   AliDisplacedVertexSelection fDisplacedVertex; //Displaced vertex selector
   TList    fCollWords;     //! Configured collision words 
   TList    fBgWords;       //! Configured background words 
-  ClassDef(AliFMDEventInspector,4); // Inspect the event 
+  ClassDef(AliFMDEventInspector,5); // Inspect the event 
 };
 
 #endif
 };
 
 #endif