]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDZDCScalers.h
make jet event background tnamed, add reset
[u/mrichter/AliRoot.git] / STEER / AliESDZDCScalers.h
1 #ifndef ALIESDZDCSCALERS_H
2 #define ALIESDZDCSCALERS_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
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 //-------------------------------------------------------------------------
13
14 #include <TObject.h>
15 #include <TMath.h>
16
17
18 class AliESDZDCScalers: public TObject {
19
20 public:
21   AliESDZDCScalers();
22   AliESDZDCScalers(const AliESDZDCScalers& zdc);
23   AliESDZDCScalers& operator=(const AliESDZDCScalers& zdc);
24   virtual void Copy(TObject &obj) const;
25   
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;}
32   
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];}
39
40   void    Reset();
41   void    Print(const Option_t *opt=0) const;
42
43 private:
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
47
48   ClassDef(AliESDZDCScalers,1)
49   
50 };
51
52 #endif