LCOV - code coverage report
Current view: top level - STEER/STEERBase - AliTriggerScalers.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 12 25.0 %
Date: 2016-06-14 17:26:59 Functions: 6 18 33.3 %

          Line data    Source code
       1             : #ifndef ALITRIGGERSCALERS_H
       2             : #define ALITRIGGERSCALERS_H
       3             : 
       4             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       5             :  * See cxx source for full Copyright notice                               */
       6             : 
       7             : /* $Id: AliTriggerScalers.h 22322 2007-11-22 11:43:14Z cvetan $ */
       8             : 
       9             : ///////////////////////////////////////////////////////////////////////////////
      10             : //
      11             : //  Class to define the ALICE Trigger Scalers  
      12             : //
      13             : //  For each trigger class there are six scalers:
      14             : //
      15             : //    LOCB       L0 triggers before any vetos 
      16             : //    LOCA       L0 triggers after all vetos 
      17             : //    L1CB       L1 triggers before any vetos 
      18             : //    L1CA       L1 triggers after all vetos 
      19             : //    L2CB       L2 triggers before any vetos 
      20             : //    L2CA       L2 triggers after all vetos 
      21             : //    LMCB       LM triggers before any vetos 
      22             : //    LMCA       LM triggers after all vetos 
      23             : //
      24             : //////////////////////////////////////////////////////////////////////////////
      25             : 
      26             : class AliTriggerScalers : public TObject {
      27             : 
      28             : public:
      29             :                          AliTriggerScalers();
      30             :                          AliTriggerScalers(
      31             :                               UChar_t    classIndex, 
      32             :                                UInt_t    LOCB, UInt_t    LOCA,        
      33             :                                UInt_t    L1CB, UInt_t    L1CA,        
      34             :                                UInt_t    L2CB, UInt_t    L2CA       
      35             :                          );   
      36             :                          AliTriggerScalers(
      37             :                               UChar_t    classIndex, 
      38             :                                UInt_t    LOCB, UInt_t    LOCA,        
      39             :                                UInt_t    L1CB, UInt_t    L1CA,        
      40             :                                UInt_t    L2CB, UInt_t    L2CA,        
      41             :                                UInt_t    LMCB, UInt_t    LMCA       
      42             :                          );   
      43          12 :               virtual   ~AliTriggerScalers() {}
      44             :               
      45           0 :        virtual Bool_t    IsSortable() const { return kTRUE; }
      46             :         virtual Int_t    Compare( const TObject* obj ) const;
      47             :          virtual void    Print( const Option_t* opt ="" ) const;
      48           0 :                UInt_t    GetLOCB() const { return fLOCB; }
      49           0 :                UInt_t    GetLOCA() const { return fLOCA; }
      50           0 :                UInt_t    GetL1CB() const { return fL1CB; }
      51           0 :                UInt_t    GetL1CA() const { return fL1CA; }
      52           0 :                UInt_t    GetL2CB() const { return fL2CB; }
      53           0 :                UInt_t    GetL2CA() const { return fL2CA; }
      54           0 :                UInt_t    GetLMCB() const { return fLMCB; }
      55           0 :                UInt_t    GetLMCA() const { return fLMCA; }
      56             :                  void    GetAllScalers(UInt_t *scalers) const;
      57             :                  void    GetAllScalersM012(UInt_t *scalers) const;
      58           4 :               UChar_t    GetClassIndex() const { return fClassIndex; }
      59             : private: 
      60             :    
      61             :               UChar_t    fClassIndex;      // class index 
      62             :                UInt_t    fLOCB;            //  L0 triggers before any vetos  (32 bits)
      63             :                UInt_t    fLOCA;            //  L0 triggers after all vetos   (32 bits)
      64             :                UInt_t    fL1CB;            //  L1 triggers before any vetos  (32 bits)
      65             :                UInt_t    fL1CA;            //  L1 triggers after all vetos   (32 bits)
      66             :                UInt_t    fL2CB;            //  L2 triggers before any vetos  (32 bits)
      67             :                UInt_t    fL2CA;            //  L2 triggers after all vetos   (32 bits)
      68             :                UInt_t    fLMCB;            //  LM triggers before any vetos  (32 bits)
      69             :                UInt_t    fLMCA;            //  LM triggers after all vetos   (32 bits)
      70             : 
      71             : 
      72             :                          AliTriggerScalers( const AliTriggerScalers &run );
      73             :     AliTriggerScalers&   operator=(const AliTriggerScalers& clus);
      74             : 
      75         184 :    ClassDef( AliTriggerScalers, 2 )  // Define a Run Trigger Scalers (Scalers)
      76             : };
      77             : 
      78             : #endif

Generated by: LCOV version 1.11