AliRoot Core  3dc7879 (3dc7879)
AliTriggerScalersESD.h
Go to the documentation of this file.
1 #ifndef ALITRIGGERSCALERSESD_H
2 #define ALITRIGGERSCALERSESD_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 /* $Id$ */
7 
9 //
10 // Class to define the ALICE Trigger Scalers
11 //
12 // For each trigger class there are six scalers:
13 //
14 // LOCB L0 triggers before any vetos
15 // LOCA L0 triggers after all vetos
16 // L1CB L1 triggers before any vetos
17 // L1CA L1 triggers after all vetos
18 // L2CB L2 triggers before any vetos
19 // L2CA L2 triggers after all vetos
20 // LMCB L2 triggers before any vetos
21 // LMCA L2 triggers after all vetos
22 //
24 
25 class AliTriggerScalersESD : public TObject {
26 
27 public:
30  UChar_t classIndex,
31  ULong64_t LOCB, ULong64_t LOCA,
32  ULong64_t L1CB, ULong64_t L1CA,
33  ULong64_t L2CB, ULong64_t L2CA
34  );
36  UChar_t classIndex,
37  ULong64_t LOCB, ULong64_t LOCA,
38  ULong64_t L1CB, ULong64_t L1CA,
39  ULong64_t L2CB, ULong64_t L2CA,
40  ULong64_t LMCB, ULong64_t LMCA
41  );
42 
43  AliTriggerScalersESD(UChar_t xlassIndex,ULong64_t* s64);
44  virtual ~AliTriggerScalersESD() {}
45  virtual void Print( const Option_t* opt ="" ) const;
46 
49 
50  void SetLMCB(ULong64_t count) { fLMCB=count; }
51  void SetLMCA(ULong64_t count) { fLMCA=count; }
52  ULong64_t GetLOCB() const { return fLOCB; }
53  ULong64_t GetLOCA() const { return fLOCA; }
54  ULong64_t GetL1CB() const { return fL1CB; }
55  ULong64_t GetL1CA() const { return fL1CA; }
56  ULong64_t GetL2CB() const { return fL2CB; }
57  ULong64_t GetL2CA() const { return fL2CA; }
58  ULong64_t GetLMCB() const { return fLMCB; }
59  ULong64_t GetLMCA() const { return fLMCA; }
60  void GetAllScalers(ULong64_t *scalers) const;
61  void GetAllScalersM012(ULong64_t *scalers) const;
62 
63  UChar_t GetClassIndex() const { return fClassIndex; }
64 
65 private:
66  UChar_t fClassIndex; // number of triggered classes
67  ULong64_t fLOCB; // L0 triggers before any vetos (64 bits)
68  ULong64_t fLOCA; // L0 triggers after all vetos (64 bits)
69  ULong64_t fL1CB; // L1 triggers before any vetos (64 bits)
70  ULong64_t fL1CA; // L1 triggers after all vetos (64 bits)
71  ULong64_t fL2CB; // L2 triggers before any vetos (64 bits)
72  ULong64_t fL2CA; // L2 triggers after all vetos (64 bits)
73  ULong64_t fLMCB; // L2 triggers before any vetos (64 bits)
74  ULong64_t fLMCA; // L2 triggers after all vetos (64 bits)
75 
76  ClassDef( AliTriggerScalersESD, 2 ) // Define a Run Trigger Scalers (Scalers)
77 };
78 
79 #endif
void SetLMCA(ULong64_t count)
ULong64_t GetL1CB() const
void GetAllScalersM012(ULong64_t *scalers) const
void SetLMCB(ULong64_t count)
ULong64_t GetLMCB() const
ULong64_t GetL2CA() const
UChar_t GetClassIndex() const
ULong64_t GetL2CB() const
ULong64_t GetLOCB() const
virtual void Print(const Option_t *opt="") const
void GetAllScalers(ULong64_t *scalers) const
ULong64_t GetLMCA() const
ULong64_t GetL1CA() const
AliTriggerScalersESD & operator=(const AliTriggerScalersESD &scal)
ULong64_t GetLOCA() const