PandaRoot
PndSdsTotDigiPar.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //
14 // C++ Interface: PndSdsChargeConvDigiPar
15 //
16 #ifndef PNDSDSTOTDIGIPAR_H
17 #define PNDSDSTOTDIGIPAR_H
18 
19 #include <TVector2.h>
20 #include "FairParGenericSet.h"
21 #include "FairParamList.h"
22 
23 #include <iostream>
24 
26 
27 class PndSdsTotDigiPar : public FairParGenericSet {
28  public:
29  PndSdsTotDigiPar(const char *name = "PndSdsParCharConv", const char *title = "PndSds charge digi parameter", const char *context = "TestDefaultContext");
31  void clear(void){};
32  void putParams(FairParamList *list);
33  Bool_t getParams(FairParamList *list);
34 
35  virtual void Print(std::ostream &out = std::cout) const;
36 
37  friend std::ostream &operator<<(std::ostream &out, const PndSdsTotDigiPar &dt)
38  {
39  dt.Print(out);
40  return out;
41  }
42 
43  Double_t GetChargingTime() const { return fChargingTime; }
44  Double_t GetConstCurrent() const { return fConstCurrent; }
45  Double_t GetClockFrequency() const { return fClockFrequency; }
46 
47  void SetChargingTime(Double_t x) { fChargingTime = x; }
48  void SetConstCurrent(Double_t x) { fConstCurrent = x; }
49  void SetClockFrequency(Double_t x) { fClockFrequency = x; };
50 
51  private:
52  // Parameters
53  Double_t fChargingTime; // time until capacitor is loaded [ns]
54  Double_t fConstCurrent; // current unloading the capacitor [e/ns]
55  Double_t fClockFrequency; // clockfrequency of the readout chip [MHz]
56 
57  ClassDef(PndSdsTotDigiPar, 1);
58 };
59 
60 #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)