14#ifndef R3BNEULANDHITMODULEPAR_H
15#define R3BNEULANDHITMODULEPAR_H
17#include "FairParGenericSet.h"
39 const char* title =
"Calibration of a NeuLAND module",
40 const char* context =
"TestDefaultContext",
79 assert(side == 1 || side == 2);
80 return -fTSync + (1.5 - side) * fTDiff;
85 assert(side == 1 || side == 2);
86 return fPedestal[side - 1];
90 assert(side == 1 || side == 2);
91 return fEnergyGain[side - 1];
96 assert(side == 1 || side == 2);
97 return fPMTSaturation[side - 1];
101 assert(side == 1 || side == 2);
102 return fPMTThreshold[side - 1];
106 void SetTDiff(
const Double_t val) { fTDiff = val; }
107 void SetTSync(
const Double_t val) { fTSync = val; }
111 assert(side == 1 || side == 2);
112 fPedestal[side - 1] = val;
116 assert(side == 1 || side == 2);
117 fEnergyGain[side - 1] = val;
122 assert(side == 1 || side == 2);
123 fPMTSaturation[side - 1] = val;
127 assert(side == 1 || side == 2);
128 fPMTThreshold[side - 1] = val;
135 Double_t fEffectiveSpeed;
137 Double_t fEnergyGain[2];
138 Double_t fLightAttenuationLength;
139 Double_t fPMTSaturation[2];
140 Double_t fPMTThreshold[2];
virtual ~R3BNeulandHitModulePar(void)
Destructor.
Double_t GetPMTSaturation(const Int_t side) const
R3BNeulandHitModulePar(const char *name="NeulandHitModulePar", const char *title="Calibration of a NeuLAND module", const char *context="TestDefaultContext", Bool_t own=kTRUE)
Standard constructor.
void SetModuleId(const Int_t i)
void SetPMTSaturation(const Double_t val, const Int_t side)
Double_t GetEffectiveSpeed() const
Int_t GetPedestal(const Int_t side) const
void clear(void)
A method to reset the parameter values.
void printParams()
A method to print value of parameters to the standard output using FairLogger.
void SetTDiff(const Double_t val)
Int_t GetModuleId() const
Accessor functions.
Double_t GetLightAttenuationLength() const
Double_t GetTDiff() const
Double_t GetTimeOffset(const Int_t side) const
void SetTSync(const Double_t val)
Bool_t getParams(FairParamList *list)
A method to read parameters using RuntimeDB.
void SetPedestal(const Int_t val, const Int_t side)
void SetEnergyGain(const Double_t val, const Int_t side)
void SetPMTThreshold(const Double_t val, const Int_t side)
void putParams(FairParamList *list)
A method to write parameters using RuntimeDB.
Double_t GetTSync() const
void SetEffectiveSpeed(const Double_t val)
Double_t GetPMTThreshold(const Int_t side) const
void SetLightAttenuationLength(const Double_t val)
Double_t GetEnergyGain(const Int_t side) const