]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerRawDigit.h
Be sure to load mapping when needed
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerRawDigit.h
index 55e23d2dfac1bfffe7de8d81a22b64af2688429a..808621e7b922b511d21b9444ffa350b4ae0b8002 100644 (file)
@@ -10,6 +10,7 @@
 */
 
 #include "AliEMCALRawDigit.h" 
+#include "AliEMCALTriggerTypes.h" 
 
 class AliEMCALTriggerRawDigit : public AliEMCALRawDigit 
 {
@@ -20,10 +21,14 @@ public:
        
        virtual ~AliEMCALTriggerRawDigit();
        
-       void    SetL0Trigger(Int_t v) {fL0Trigger = v;}
+       void    SetTriggerBit(const TriggerType_t type, const Int_t mode) {fTriggerBits = (fTriggerBits | (1 << (type + kTriggerTypeEnd * mode)));}
+       
        Bool_t  SetL0Time(   Int_t i);
        
-       Int_t   GetL0Trigger(                       ) const {return  fL0Trigger;}
+       Int_t   GetTriggerBit(const TriggerType_t type, const Int_t mode) const;
+
+       Int_t   GetTriggerBits() const {return fTriggerBits;}
+       
        Bool_t  GetL0Time(const Int_t i, Int_t& time) const;
        Bool_t  GetL0Times(Int_t times[]            ) const;
        Int_t   GetNL0Times(                        ) const {return fNL0Times;}
@@ -40,7 +45,7 @@ private:
        AliEMCALTriggerRawDigit(const AliEMCALTriggerRawDigit &cd);            // Not implemented
        AliEMCALTriggerRawDigit &operator=(const AliEMCALTriggerRawDigit &cd); // Not implemented
 
-       Int_t   fL0Trigger;
+       Int_t   fTriggerBits;
        Int_t   fNL0Times;
        Int_t   fL0Times[10];