Added member function IsMC
authorcholm <Christian.Holm.Christensen@cern.ch>
Fri, 26 Sep 2014 07:34:03 +0000 (09:34 +0200)
committercholm <Christian.Holm.Christensen@cern.ch>
Fri, 26 Sep 2014 07:34:03 +0000 (09:34 +0200)
PWGLF/FORWARD/analysis2/AliForwardQATask.h

index 6c576dd..aec633f 100644 (file)
@@ -210,6 +210,12 @@ public:
    * @param option Not used
    */
   void Print(Option_t* option="") const;
+  /** 
+   * Check if we're running over MC data
+   * 
+   * @return true if the event inspector thinks it's MC
+   */
+  Bool_t IsMC() const { return GetEventInspector().IsMC(); }
 protected: 
   /** 
    * Copy constructor