PandaRoot
PndSdsPixelDigiPar.h
Go to the documentation of this file.
1 //
2 // C++ Interface: PndSdsPixelDigiPar
3 //
4 #ifndef PNDSDSPIXELDIGIPAR_H
5 #define PNDSDSPIXELDIGIPAR_H
6 
7 #include <TVector2.h>
8 #include "FairParGenericSet.h"
9 #include "FairParamList.h"
10 
11 #include <iostream>
12 
14 
15 class PndSdsPixelDigiPar : public FairParGenericSet {
16  public:
17  PndSdsPixelDigiPar(const char *name = "PndSdsParTest", const char *title = "PndSds pixel 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  virtual void print() { Print(); }
25 
26  friend std::ostream &operator<<(std::ostream &out, const PndSdsPixelDigiPar &dt)
27  {
28  dt.Print(out);
29  return out;
30  }
31 
32  Double_t GetXPitch() const { return fDimX; }
33  Double_t GetYPitch() const { return fDimY; }
34  Double_t GetThreshold() const { return fThreshold; }
35  Double_t GetNoise() const { return fNoise; }
36  Double_t GetQCloudSigma() const { return fCSigma; }
37  Int_t GetFECols() const { return fFeCols; }
38  Int_t GetFERows() const { return fFeRows; }
39  Int_t GetMaxFEperCol() const { return fMaxFEperCol; }
40  Int_t GetMaxFEperRow() const { return fMaxFEperRow; }
41  Double_t GetClustRadius() const { return fRadius; }
42  Double_t GetFeBusClock() const { return fFeBusClock; }
43  Double_t GetTimeStep() const { return (1. / fFeBusClock * 1000.); }
44  Int_t GetChargeConvMethod() const { return fChargeConvMethod; }
45  Double_t GetPixelSorterCellWidth() const { return fPixelSorterCellWidth; }
46  Int_t GetPixelSorterNumberOfCells() const { return fPixelSorterNumberOfCells; }
47 
48  void SetXPitch(Double_t x) { fDimX = x; }
49  void SetYPitch(Double_t x) { fDimY = x; }
50  void SetThreshold(Double_t x) { fThreshold = x; }
51  void SetNoise(Double_t x) { fNoise = x; }
52  void SetQCloudSigma(Double_t x) { fCSigma = x; }
53  void SetFECols(Int_t x) { fFeCols = x; }
54  void SetFERows(Int_t x) { fFeRows = x; }
55  void SetMaxFEperCol(Int_t x) { fMaxFEperCol = x; }
56  void SetMaxFEperRow(Int_t x) { fMaxFEperRow = x; }
57  void SetClustRadius(Double_t x) { fRadius = x; }
58  void SetFeBusClock(Double_t x) { fFeBusClock = x; }
59  void SetChargeConvMethod(Int_t x) { fChargeConvMethod = x; }
60 
61  void SetPixelSorterCellWidth(Double_t x) { fPixelSorterCellWidth = x; }
62  void SetPixelSorterNumberOfCells(Int_t x) { fPixelSorterNumberOfCells = x; }
63 
64  private:
65  // Pixel Parameters
66  Int_t fFeCols; // Colums read per Frontend
67  Int_t fFeRows; // Rows read per Frontend
68  Int_t fMaxFEperCol; // maximum number of front-end chip per column on a sensor
69  Int_t fMaxFEperRow; // maximum number of front-end chip per row on a sensor
70  Double_t fDimX; // Pixel cell size X
71  Double_t fDimY; // Pixel cell size Y
72  Double_t fRadius; // Clusterfinder search radius (channel numbers)
73  Double_t fThreshold; // Discriminator Threshold (electrons)
74  Double_t fNoise; // Gaussian electronics noise including threshold dispersion (electrons)
75  Double_t fCSigma; // Gaussian charge cloud smearing
76  Double_t fFeBusClock; // Frontend bus clock to determin noise rate
77  Int_t fChargeConvMethod; // 0: ideal conversion; 1: TOT calculation
78  Double_t fPixelSorterCellWidth; // Parameter for TimeStamp Sorter
79  Int_t fPixelSorterNumberOfCells; // Parameter for TimeStamp Sorter
80  // Text_t fSensName; // Sensor name
81  // Text_t fFeName; // Frontend name
82 
83  ClassDef(PndSdsPixelDigiPar, 5);
84 };
85 
86 #endif
void SetFeBusClock(Double_t x)
Double_t GetQCloudSigma() const
virtual void print()
Double_t GetXPitch() const
void SetXPitch(Double_t x)
Double_t GetThreshold() const
PndSdsPixelDigiPar(const char *name="PndSdsParTest", const char *title="PndSds pixel digi parameter", const char *context="TestDefaultContext")
virtual void Print(std::ostream &out=std::cout) const
Double_t GetNoise() const
Int_t GetMaxFEperCol() const
friend std::ostream & operator<<(std::ostream &out, const PndSdsPixelDigiPar &dt)
Double_t GetFeBusClock() const
void SetThreshold(Double_t x)
Double_t GetClustRadius() const
void SetNoise(Double_t x)
void SetClustRadius(Double_t x)
void SetChargeConvMethod(Int_t x)
Double_t GetPixelSorterCellWidth() const
Int_t GetMaxFEperRow() const
void putParams(FairParamList *list)
Bool_t getParams(FairParamList *list)
void SetPixelSorterNumberOfCells(Int_t x)
Int_t GetFECols() const
Double_t GetTimeStep() const
Time step of one clock cycle in ns.
Double_t GetYPitch() const
void SetMaxFEperRow(Int_t x)
void SetQCloudSigma(Double_t x)
void SetMaxFEperCol(Int_t x)
Int_t GetPixelSorterNumberOfCells() const
void SetYPitch(Double_t x)
void SetFECols(Int_t x)
Int_t GetFERows() const
void SetFERows(Int_t x)
Int_t GetChargeConvMethod() const
void SetPixelSorterCellWidth(Double_t x)
Digitization Parameter Class for SDS-Pixel part.