]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEERBase/AliTriggerScalers.h
Fix in the last caall to CleanOwnPrimaryVertex
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTriggerScalers.h
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 //
22 //////////////////////////////////////////////////////////////////////////////
23
24 class AliTriggerScalers : public TObject {
25
26 public:
27                          AliTriggerScalers();
28                          AliTriggerScalers(
29                               UChar_t    classIndex, 
30                                UInt_t    LOCB,        
31                                UInt_t    LOCA,        
32                                UInt_t    L1CB,        
33                                UInt_t    L1CA,        
34                                UInt_t    L2CB,        
35                                UInt_t    L2CA       
36                          );   
37               virtual   ~AliTriggerScalers() {}
38               
39        virtual Bool_t    IsSortable() const { return kTRUE; }
40         virtual Int_t    Compare( const TObject* obj ) const;
41          virtual void    Print( const Option_t* opt ="" ) const;
42                UInt_t    GetLOCB() const { return fLOCB; }
43                UInt_t    GetLOCA() const { return fLOCA; }
44                UInt_t    GetL1CB() const { return fL1CB; }
45                UInt_t    GetL1CA() const { return fL1CA; }
46                UInt_t    GetL2CB() const { return fL2CB; }
47                UInt_t    GetL2CA() const { return fL2CA; }
48                  void    GetAllScalers(UInt_t *scalers) const;
49               UChar_t    GetClassIndex() const { return fClassIndex; }
50 private: 
51    
52               UChar_t    fClassIndex;      // class index 
53                UInt_t    fLOCB;            //  L0 triggers before any vetos  (32 bits)
54                UInt_t    fLOCA;            //  L0 triggers after all vetos   (32 bits)
55                UInt_t    fL1CB;            //  L1 triggers before any vetos  (32 bits)
56                UInt_t    fL1CA;            //  L1 triggers after all vetos   (32 bits)
57                UInt_t    fL2CB;            //  L2 triggers before any vetos  (32 bits)
58                UInt_t    fL2CA;            //  L2 triggers after all vetos   (32 bits)
59
60
61                          AliTriggerScalers( const AliTriggerScalers &run );
62     AliTriggerScalers&   operator=(const AliTriggerScalers& clus);
63
64    ClassDef( AliTriggerScalers, 1 )  // Define a Run Trigger Scalers (Scalers)
65 };
66
67 #endif