1 #ifndef ALIESDZDCSCALERS_H
2 #define ALIESDZDCSCALERS_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //-------------------------------------------------------------------------
8 // This class is used to store data in events where scalers are read
9 // Scaler format: 1(in)+1(out) floats from Benotto's card downstairs
10 // 4(in)+4(out) floats from Benotto's card upstairs
11 // 32 floats from VME scaler
12 //-------------------------------------------------------------------------
18 class AliESDZDCScalers: public TObject {
22 AliESDZDCScalers(const AliESDZDCScalers& zdc);
23 AliESDZDCScalers& operator=(const AliESDZDCScalers& zdc);
24 virtual void Copy(TObject &obj) const;
26 UInt_t GetScalerDown(Int_t i) const {return fScalerDown[i];}
27 UInt_t GetScalerUp(Int_t i) const {return fScalerUp[i];}
28 UInt_t GetVMEScaler(Int_t i) const {return fVMEScaler[i];}
29 const UInt_t* GetScalerDown() const {return fScalerDown;}
30 const UInt_t* GetScalerUp() const {return fScalerUp;}
31 const UInt_t* GetVMEScaler() const {return fVMEScaler;}
33 void SetScalerDown(UInt_t count[2])
34 {for(Int_t k=0; k<2; k++) fScalerDown[k] = count[k];}
35 void SetScalerUp(UInt_t count[8])
36 {for(Int_t k=0; k<8; k++) fScalerUp[k] = count[k];}
37 void SetVMEScaler(UInt_t count[32])
38 {for(Int_t k=0; k<32; k++) fVMEScaler[k] = count[k];}
41 void Print(const Option_t *opt=0) const;
44 UInt_t fScalerDown[2]; // counts from Benotto's card downstairs
45 UInt_t fScalerUp[8]; // counts from Benotto's card upstairs
46 UInt_t fVMEScaler[32]; // counts from VME scaler
48 ClassDef(AliESDZDCScalers,1)