]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FORWARD/analysis2/AliAODForwardMult.h
Some fixes
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / AliAODForwardMult.h
index 38d20e6154ebc1c3ac6fafa5719d31fe71d42d45..eb6c96eb0c92d51169517312a7684439c61db2eb 100644 (file)
@@ -183,11 +183,11 @@ public:
    */  
   TH2D& GetHistogram() { return fHist; } // Get histogram 
   /** 
-   * Get the trigger mask 
+   * Get the trigger bits 
    * 
-   * @return Trigger mask 
+   * @return Trigger bits 
    */
-  UInt_t GetTriggerMask() const { return fTriggers; } // Get triggers
+  UInt_t GetTriggerBits() const { return fTriggers; } // Get triggers
   /** 
    * Set the trigger mask 
    * 
@@ -369,6 +369,21 @@ public:
    * @return Newly allocated histogram 
    */
   static TH1I* MakeTriggerHistogram(const char* name="triggers");
+  /** 
+   * Utility function to make a trigger mask from the passed string. 
+   * 
+   * The string is a comma or space seperated list of case-insensitive
+   * strings
+   * 
+   * - INEL 
+   * - INEL>0
+   * - NSD 
+   * 
+   * @param what Which triggers to put in the mask. 
+   * 
+   * @return The generated trigger mask. 
+   */
+  static UInt_t MakeTriggerMask(const char* what);
 protected: 
   Bool_t  fIsMC;     // Whether this is from MC 
   TH2D    fHist;     // Histogram of d^2N_{ch}/(deta dphi) for this event