AliRoot Core  3dc7879 (3dc7879)
AliTriggerScalers.h
Go to the documentation of this file.
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 
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 //
25 
26 class AliTriggerScalers : public TObject {
27 
28 public:
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  );
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  virtual ~AliTriggerScalers() {}
44 
45  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  UInt_t GetLOCB() const { return fLOCB; }
49  UInt_t GetLOCA() const { return fLOCA; }
50  UInt_t GetL1CB() const { return fL1CB; }
51  UInt_t GetL1CA() const { return fL1CA; }
52  UInt_t GetL2CB() const { return fL2CB; }
53  UInt_t GetL2CA() const { return fL2CA; }
54  UInt_t GetLMCB() const { return fLMCB; }
55  UInt_t GetLMCA() const { return fLMCA; }
56  void GetAllScalers(UInt_t *scalers) const;
57  void GetAllScalersM012(UInt_t *scalers) const;
58  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 
74 
75  ClassDef( AliTriggerScalers, 2 ) // Define a Run Trigger Scalers (Scalers)
76 };
77 
78 #endif
UChar_t GetClassIndex() const
void GetAllScalers(UInt_t *scalers) const
UInt_t GetLOCB() const
virtual void Print(const Option_t *opt="") const
UInt_t GetL1CB() const
virtual Int_t Compare(const TObject *obj) const
UInt_t GetLMCB() const
UInt_t GetL2CA() const
AliTriggerScalers & operator=(const AliTriggerScalers &clus)
virtual Bool_t IsSortable() const
UInt_t GetL2CB() const
void GetAllScalersM012(UInt_t *scalers) const
UInt_t GetL1CA() const
UInt_t GetLMCA() const
virtual ~AliTriggerScalers()
UInt_t GetLOCA() const