HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hwalldigipar.h
Go to the documentation of this file.
1 #ifndef HWALLDIGIPAR_H
2 #define HWALLDIGIPAR_H
3 
4 #include "hparcond.h"
5 
6 #define WALL_MAXCELLS 302
7 
8 class HWallDigiPar : public HParCond {
9 protected:
16 public:
17  HWallDigiPar(const Char_t* name="WallDigiPar",
18  const Char_t* title="Digitization parameters for Forward Wall",
19  const Char_t* context="WallDigiProduction");
21  Float_t getTDC_Slope(Int_t cell) { return TDC_slope[cell]; }
22  Float_t getTDC_Offset(Int_t cell) { return TDC_offset[cell]; }
23  Float_t getADC_Slope(Int_t cell) { return ADC_slope[cell]; }
24  Float_t getADC_Offset(Int_t cell) { return ADC_offset[cell]; }
25  Float_t getCFD_Threshold(Int_t cell) { return CFD_threshold[cell]; }
26  Float_t getADC_Threshold(Int_t cell) { return ADC_threshold[cell]; }
27 
28  void fill(Int_t cell,Float_t Ts,Float_t To,Float_t As,Float_t Ao,Float_t Ct,Float_t At) {
29  TDC_slope[cell] = Ts;
30  TDC_offset[cell] = To;
31  ADC_slope[cell] = As;
32  ADC_offset[cell] = Ao;
33  CFD_threshold[cell] = Ct;
34  ADC_threshold[cell] = At;
35  }
36  Int_t getSize() { return WALL_MAXCELLS; }
37  void clear();
38  void putParams(HParamList*);
39  Bool_t getParams(HParamList*);
40 
41  ClassDef(HWallDigiPar,1) // Container for the WALL digitisation parameters
42 
43 };
44 
45 #endif /*!HWALLDIGIPAR_H*/
Bool_t getParams(HParamList *)
Definition: hwalldigipar.cc:48
Int_t getSize()
Definition: hwalldigipar.h:36
Float_t getTDC_Offset(Int_t cell)
Definition: hwalldigipar.h:22
Float_t getADC_Offset(Int_t cell)
Definition: hwalldigipar.h:24
Float_t ADC_offset[WALL_MAXCELLS]
Definition: hwalldigipar.h:13
Float_t getADC_Threshold(Int_t cell)
Definition: hwalldigipar.h:26
#define WALL_MAXCELLS
Definition: hwalldigipar.h:6
Float_t getADC_Slope(Int_t cell)
Definition: hwalldigipar.h:23
void fill(Int_t cell, Float_t Ts, Float_t To, Float_t As, Float_t Ao, Float_t Ct, Float_t At)
Definition: hwalldigipar.h:28
Float_t TDC_slope[WALL_MAXCELLS]
Definition: hwalldigipar.h:10
Float_t getCFD_Threshold(Int_t cell)
Definition: hwalldigipar.h:25
Float_t ADC_threshold[WALL_MAXCELLS]
Definition: hwalldigipar.h:15
HWallDigiPar(const Char_t *name="WallDigiPar", const Char_t *title="Digitization parameters for Forward Wall", const Char_t *context="WallDigiProduction")
Float_t ADC_slope[WALL_MAXCELLS]
Definition: hwalldigipar.h:12
void putParams(HParamList *)
Definition: hwalldigipar.cc:37
Float_t CFD_threshold[WALL_MAXCELLS]
Definition: hwalldigipar.h:14
Float_t TDC_offset[WALL_MAXCELLS]
Definition: hwalldigipar.h:11
Float_t getTDC_Slope(Int_t cell)
Definition: hwalldigipar.h:21