PandaRoot
PndSdsTotDigiPar.h
Go to the documentation of this file.
1 //
2 // C++ Interface: PndSdsChargeConvDigiPar
3 //
4 #ifndef PNDSDSTOTDIGIPAR_H
5 #define PNDSDSTOTDIGIPAR_H
6 
7 #include <TVector2.h>
8 #include "FairParGenericSet.h"
9 #include "FairParamList.h"
10 
11 #include <iostream>
12 
14 
15 class PndSdsTotDigiPar : public FairParGenericSet {
16  public:
17  PndSdsTotDigiPar(const char *name = "PndSdsParCharConv", const char *title = "PndSds charge digi parameter", const char *context = "TestDefaultContext");
19  void clear(void){};
20  void putParams(FairParamList *list);
21  Bool_t getParams(FairParamList *list);
22 
23  virtual void Print(std::ostream &out = std::cout) const;
24 
25  friend std::ostream &operator<<(std::ostream &out, const PndSdsTotDigiPar &dt)
26  {
27  dt.Print(out);
28  return out;
29  }
30 
31  Double_t GetChargingTime() const { return fChargingTime; }
32  Double_t GetConstCurrent() const { return fConstCurrent; }
33  Double_t GetClockFrequency() const { return fClockFrequency; }
34 
35  void SetChargingTime(Double_t x) { fChargingTime = x; }
36  void SetConstCurrent(Double_t x) { fConstCurrent = x; }
37  void SetClockFrequency(Double_t x) { fClockFrequency = x; };
38 
39  private:
40  // Parameters
41  Double_t fChargingTime; // time until capacitor is loaded [ns]
42  Double_t fConstCurrent; // current unloading the capacitor [e/ns]
43  Double_t fClockFrequency; // clockfrequency of the readout chip [MHz]
44 
45  ClassDef(PndSdsTotDigiPar, 1);
46 };
47 
48 #endif
Bool_t getParams(FairParamList *list)
void SetChargingTime(Double_t x)
Double_t GetClockFrequency() const
void SetConstCurrent(Double_t x)
PndSdsTotDigiPar(const char *name="PndSdsParCharConv", const char *title="PndSds charge digi parameter", const char *context="TestDefaultContext")
Charge Digitization Parameter Class for SDS.
Double_t GetChargingTime() const
friend std::ostream & operator<<(std::ostream &out, const PndSdsTotDigiPar &dt)
Double_t GetConstCurrent() const
void SetClockFrequency(Double_t x)
virtual void Print(std::ostream &out=std::cout) const
void putParams(FairParamList *list)