FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PixelDigiPar.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*
9  * PixelHit.h
10  *
11  * Created on: 17.02.2016
12  * Author: R. Karabowicz
13  */
14 
15 #include "PixelDigiPar.h"
16 
17 #include "FairParamList.h" // for FairParamList
18 
19 #include <iostream>
20 
21 PixelDigiPar::PixelDigiPar(const char* name, const char* title, const char* context)
22  : FairParGenericSet(name, title, context)
23  , fFeCols(0)
24  , fFeRows(0)
25  , fMaxFEperCol(0)
26  , fDimX(0.)
27  , fDimY(0.)
28  , fRadius(0.)
29  , fThreshold(0.)
30  , fNoise(0.)
31  , fCSigma(0.)
32  , fFeBusClock(0.)
33  , fChargeConvMethod(0)
34  , fPixelSorterCellWidth(0.)
35  , fPixelSorterNumberOfCells(0)
36 {
37  clear();
38 }
39 
40 // ----- Destructor ----------------------------------------------------
42 
44 {
45  if (!list)
46  return;
47  list->add("dimX", fDimX);
48  list->add("dimY", fDimY);
49 
50  list->add("threshold", fThreshold);
51  list->add("noise", fNoise);
52  list->add("FECols", fFeCols);
53  list->add("FERows", fFeRows);
54  list->add("MaxFEperCol", fMaxFEperCol);
55  list->add("ClustRad", fRadius);
56  list->add("QCloudSigma", fCSigma);
57  list->add("fe_BusClock", fFeBusClock);
58 
59  list->add("chargeconv_method", fChargeConvMethod);
60 
61  list->add("PixelSorterCellWidth", fPixelSorterCellWidth);
62  list->add("PixelSorterNumberOfCells", fPixelSorterNumberOfCells);
63 }
64 
66 {
67  if (!list)
68  return kFALSE;
69  if (!list->fill("dimX", &fDimX))
70  return kFALSE;
71  if (!list->fill("dimY", &fDimY))
72  return kFALSE;
73  if (!list->fill("threshold", &fThreshold))
74  return kFALSE;
75  if (!list->fill("noise", &fNoise))
76  return kFALSE;
77  if (!list->fill("FECols", &fFeCols))
78  return kFALSE;
79  if (!list->fill("FERows", &fFeRows))
80  return kFALSE;
81  if (!list->fill("MaxFEperCol", &fMaxFEperCol))
82  return kFALSE;
83  if (!list->fill("ClustRad", &fRadius))
84  return kFALSE;
85  if (!list->fill("QCloudSigma", &fCSigma))
86  return kFALSE;
87  if (!list->fill("fe_BusClock", &fFeBusClock))
88  return kFALSE;
89  if (!list->fill("chargeconv_method", &fChargeConvMethod))
90  return kFALSE;
91  if (!list->fill("PixelSorterCellWidth", &fPixelSorterCellWidth))
92  return kFALSE;
93  if (!list->fill("PixelSorterNumberOfCells", &fPixelSorterNumberOfCells))
94  return kFALSE;
95  return kTRUE;
96 }
97 
98 void PixelDigiPar::Print(Option_t*) const
99 {
100  std::cout << "SDS Pixel Digitization Parameters:" << std::endl;
101  std::cout << " fDimX (cm) = " << fDimX << std::endl;
102  std::cout << " fDimY (cm) = " << fDimY << std::endl;
103  std::cout << " Charge Threshold (e-) = " << fThreshold << std::endl;
104  std::cout << " Noise (ENC+Dispersion) (e-) = " << fNoise << std::endl;
105  std::cout << " Columns on FE = " << fFeCols << std::endl;
106  std::cout << " Rows on FE = " << fFeRows << std::endl;
107  std::cout << " Maximum number of FE per column = " << fMaxFEperCol << std::endl;
108  std::cout << " Cluster search radius (channels) = " << fRadius << std::endl;
109  std::cout << " Charge cloud sigma (cm) = " << fCSigma << std::endl;
110  std::cout << " charge conv. (0:ideal, 1:TOT) = " << fChargeConvMethod << std::endl;
111 }
112 
void Print(Option_t *) const
PixelDigiPar(const char *name="PixelDigiParameters", const char *title="Pixel digi parameters", const char *context="TestDefaultContext")
ClassImp(FairEventBuilder)
Digitization Parameter Class for Pixel detector.
Definition: PixelDigiPar.h:24
~PixelDigiPar(void)
void putParams(FairParamList *list)
Bool_t fill(const Text_t *, Text_t *, const Int_t)
void clear(void)
Definition: PixelDigiPar.h:31
Bool_t getParams(FairParamList *list)
void add(FairParamObj &)