1 #ifndef ALITRIGGERSCALERS_H
2 #define ALITRIGGERSCALERS_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliTriggerScalers.h 22322 2007-11-22 11:43:14Z cvetan $ */
9 ///////////////////////////////////////////////////////////////////////////////
11 // Class to define the ALICE Trigger Scalers
13 // For each trigger class there are six scalers:
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
22 //////////////////////////////////////////////////////////////////////////////
24 class AliTriggerScalers : public TObject {
37 virtual ~AliTriggerScalers() {}
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; }
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)
61 AliTriggerScalers( const AliTriggerScalers &run );
62 AliTriggerScalers& operator=(const AliTriggerScalers& clus);
64 ClassDef( AliTriggerScalers, 1 ) // Define a Run Trigger Scalers (Scalers)