Coverity fixes
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerData.h
index 8f311f5..76bbef6 100644 (file)
@@ -5,7 +5,7 @@
 
 /*
 EMCal trigger data container: can be used independently of the data stream (simulation or raw data)
-for persistency of produced data presently stored in TTreeD
+for transient storage of trigger data
 Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
 */
 
@@ -30,8 +30,14 @@ public:
        
        virtual void SetPatches(TriggerType_t type, Int_t i, const TClonesArray& patches);
        
-       virtual void SetL1GammaThreshold(Int_t v) {fL1GammaThreshold = v;}
-       virtual void SetL1JetThreshold(  Int_t v) {  fL1JetThreshold = v;}
+       virtual void SetL1GammaThreshold(Int_t  v) {fL1GammaThreshold = v;}
+       virtual void SetL1JetThreshold(  Int_t  v) {  fL1JetThreshold = v;}
+       virtual void SetL1V0(            Int_t* v) {for (int i = 0; i < 2; i++) fL1V0[i] = v[i];}
+       virtual void SetL1FrameMask(     Int_t  v) {     fL1FrameMask = v;}            
+       virtual void SetL1TriggerType(   Int_t* v) {for (int i = 0; i < 8; i++) fL1TriggerType[i] = v[i];}
+
+       virtual void SetL1DataDecoded(   Int_t  v) {   fL1DataDecoded = v;} 
+       virtual void SetL1RawData(       Int_t  v) {       fL1RawData = v;}
 
        virtual void          GetL0Trigger(  Int_t i, Int_t j, Int_t& k  ) const {   k = fL0Trigger[i][j];}
        virtual Int_t         GetL0Trigger(  Int_t i, Int_t j            ) const {return fL0Trigger[i][j];}
@@ -41,8 +47,14 @@ public:
 
        virtual void          GetL1Region( Int_t i, Int_t arr[][64]             ) const;
        
-       virtual Int_t         GetL1GammaThreshold() const {return fL1GammaThreshold;}
-       virtual Int_t         GetL1JetThreshold()   const {return   fL1JetThreshold;}
+       virtual Int_t         GetL1GammaThreshold()           const {return fL1GammaThreshold;}
+       virtual Int_t         GetL1JetThreshold()             const {return   fL1JetThreshold;}
+       virtual void          GetL1V0(            Int_t  v[]) const {for (int i = 0; i < 2; i++) v[i] = fL1V0[i];}
+       virtual Int_t         GetL1FrameMask(               ) const {return fL1FrameMask;}            
+       virtual void          GetL1TriggerType(   Int_t  v[]) const {for (int i = 0; i < 8; i++) v[i] = fL1TriggerType[i];}
+       
+       virtual Int_t         GetL1DataDecoded(             ) const {return fL1DataDecoded;}
+       virtual Int_t             GetL1RawData(             ) const {return     fL1RawData;}
 
        virtual Int_t         GetMode() const {return fMode;}
        
@@ -54,9 +66,9 @@ private:
     AliEMCALTriggerData(const AliEMCALTriggerData& rhs);            // NOT implemented
        AliEMCALTriggerData& operator=(const AliEMCALTriggerData& rhs); // NOT implemented
        
-       Int_t                      fMode;
+       Int_t                      fMode;           // Simulation/Raw
        
-       Int_t           fL0Trigger[2][32];
+       Int_t               fL0Trigger[2][32];      // Triggering TRU
        
        TClonesArray*       fL0Patches[2];          // array of patches  
        
@@ -67,10 +79,17 @@ private:
        
        Int_t                fL1Region[2][48][64];  // STU FastOR
 
-       Int_t        fL1GammaThreshold;             //
-       Int_t          fL1JetThreshold;             //  
+       Int_t        fL1GammaThreshold;             // L1-g threshold
+       Int_t          fL1JetThreshold;             // L1-j threshold
        
-       ClassDef(AliEMCALTriggerData,1)
+       Int_t                    fL1V0[2];          // V0 charges
+       Int_t             fL1FrameMask;             // Frame mask
+       Int_t           fL1TriggerType[8];          // Trigger type
+       
+       Int_t           fL1DataDecoded;             // Raw data decoded
+       Int_t               fL1RawData;             // Raw data
+
+       ClassDef(AliEMCALTriggerData,2)
 };
 
 #endif