Data calibration header
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Dec 2005 13:03:12 +0000 (13:03 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Dec 2005 13:03:12 +0000 (13:03 +0000)
VZERO/AliVZEROCalibData.h [new file with mode: 0644]

diff --git a/VZERO/AliVZEROCalibData.h b/VZERO/AliVZEROCalibData.h
new file mode 100644 (file)
index 0000000..38d72dc
--- /dev/null
@@ -0,0 +1,43 @@
+#ifndef ALIVZEROCALIBDATA_H
+#define ALIVZEROCALIBDATA_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+////////////////////////////////////////////////
+//                                            // 
+//  class for VZERO calibration               //
+//                                            //
+////////////////////////////////////////////////
+
+#include "TNamed.h"
+#include "AliVZERO.h"
+
+class AliVZEROCalibData: public TNamed {
+
+ public:
+  AliVZEROCalibData();
+  AliVZEROCalibData(const char* name);
+  AliVZEROCalibData(const AliVZEROCalibData &calibda);
+  AliVZEROCalibData& operator= (const AliVZEROCalibData &calibda);
+  virtual ~AliVZEROCalibData();
+  void Reset();
+
+  Float_t  GetPedestal(Int_t channel)   const {return fPedestal[channel];}
+  Float_t* GetPedestal()   const {return (float*)fPedestal;}
+  Float_t  GetGain(Int_t channel)      const {return fGain[channel];}
+  Float_t* GetGain()   const {return (float*)fGain;}
+  //
+  void     SetPedestal(Float_t val, Int_t channel) {fPedestal[channel]=val;}
+  void     SetPedestal(Float_t* Pedestal);
+  void            SetGain(Float_t val, Int_t channel) {fGain[channel]=val;}
+  void            SetGain(Float_t* Gain);
+
+ protected:
+  Float_t  fPedestal[80];     // Mean pedestal values
+  Float_t  fGain[80];        // PM gains
+
+  ClassDef(AliVZEROCalibData,1)    // VZERO Calibration data
+};
+
+#endif