ROOT logo
#ifndef HWALLDIGIPAR_H
#define HWALLDIGIPAR_H

#include "hparcond.h"

#define WALL_MAXCELLS 302

class HWallDigiPar : public HParCond {
protected:
  Float_t TDC_slope[WALL_MAXCELLS];
  Float_t TDC_offset[WALL_MAXCELLS];
  Float_t ADC_slope[WALL_MAXCELLS];
  Float_t ADC_offset[WALL_MAXCELLS];
  Float_t CFD_threshold[WALL_MAXCELLS];
  Float_t ADC_threshold[WALL_MAXCELLS];
public:
  HWallDigiPar(const Char_t* name="WallDigiPar",
               const Char_t* title="Digitization parameters for Forward Wall",
               const Char_t* context="WallDigiProduction");
  ~HWallDigiPar() {;}
  Float_t getTDC_Slope(Int_t cell)     { return TDC_slope[cell]; }
  Float_t getTDC_Offset(Int_t cell)    { return TDC_offset[cell]; }
  Float_t getADC_Slope(Int_t cell)     { return ADC_slope[cell]; }
  Float_t getADC_Offset(Int_t cell)    { return ADC_offset[cell]; }
  Float_t getCFD_Threshold(Int_t cell) { return CFD_threshold[cell]; }
  Float_t getADC_Threshold(Int_t cell) { return ADC_threshold[cell]; }

  void fill(Int_t cell,Float_t Ts,Float_t To,Float_t As,Float_t Ao,Float_t Ct,Float_t At) {
    TDC_slope[cell]     = Ts;
    TDC_offset[cell]    = To;
    ADC_slope[cell]     = As;
    ADC_offset[cell]    = Ao;
    CFD_threshold[cell] = Ct;
    ADC_threshold[cell] = At;
  }
  Int_t  getSize() { return WALL_MAXCELLS; }
  void   clear();
  void   putParams(HParamList*);
  Bool_t getParams(HParamList*);

  ClassDef(HWallDigiPar,1) // Container for the WALL digitisation parameters

};

#endif  /*!HWALLDIGIPAR_H*/
 hwalldigipar.h:1
 hwalldigipar.h:2
 hwalldigipar.h:3
 hwalldigipar.h:4
 hwalldigipar.h:5
 hwalldigipar.h:6
 hwalldigipar.h:7
 hwalldigipar.h:8
 hwalldigipar.h:9
 hwalldigipar.h:10
 hwalldigipar.h:11
 hwalldigipar.h:12
 hwalldigipar.h:13
 hwalldigipar.h:14
 hwalldigipar.h:15
 hwalldigipar.h:16
 hwalldigipar.h:17
 hwalldigipar.h:18
 hwalldigipar.h:19
 hwalldigipar.h:20
 hwalldigipar.h:21
 hwalldigipar.h:22
 hwalldigipar.h:23
 hwalldigipar.h:24
 hwalldigipar.h:25
 hwalldigipar.h:26
 hwalldigipar.h:27
 hwalldigipar.h:28
 hwalldigipar.h:29
 hwalldigipar.h:30
 hwalldigipar.h:31
 hwalldigipar.h:32
 hwalldigipar.h:33
 hwalldigipar.h:34
 hwalldigipar.h:35
 hwalldigipar.h:36
 hwalldigipar.h:37
 hwalldigipar.h:38
 hwalldigipar.h:39
 hwalldigipar.h:40
 hwalldigipar.h:41
 hwalldigipar.h:42
 hwalldigipar.h:43
 hwalldigipar.h:44
 hwalldigipar.h:45