Belle II Software  release-08-01-10
ARICHModuleTest.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <TObject.h>
12 #include <string>
13 #include <vector>
14 #include <TH1D.h>
15 #include <TH2D.h>
16 #include <TGraph.h>
17 
18 #include <TClass.h>
19 
20 namespace Belle2 {
30  class ARICHModuleTest: public TObject {
31  public:
32 
37  m_guardBias_th(NULL), m_HV_th(NULL), m_guardBias_2Dx(NULL), m_HV_2Dx(NULL), m_guardBias_2Dy(NULL), m_HV_2Dy(NULL), m_gain(NULL),
38  m_charge(NULL), m_th(NULL), m_scanX(NULL), m_scanY(NULL), m_comment("")
39  {
40  for (unsigned i = 0; i < 4; i++) m_chipVdiff_th[i] = NULL;
41  for (unsigned i = 0; i < 4; i++) m_chipLeak_th[i] = NULL;
42  for (unsigned i = 0; i < 4; i++) m_chipVdiff_2Dx[i] = NULL;
43  for (unsigned i = 0; i < 4; i++) m_chipLeak_2Dx[i] = NULL;
44  for (unsigned i = 0; i < 4; i++) m_chipVdiff_2Dy[i] = NULL;
45  for (unsigned i = 0; i < 4; i++) m_chipLeak_2Dy[i] = NULL;
46  };
47 
52 
56  int getFebSN() const {return m_febSN; }
57 
61  void setFebSN(int serial) {m_febSN = serial; }
62 
66  std::string getHapdSN() const {return m_hapdSN; }
67 
71  void setHapdSN(const std::string& hapd) {m_hapdSN = hapd; }
72 
76  int getHvbSN() const {return m_hvbSN; }
77 
81  void setHvbSN(int serial) {m_hvbSN = serial; }
82 
86  int getRun() const {return m_run; }
87 
91  void setRun(int run) {m_run = run; }
92 
96  int getRunPosition() const {return m_runposition; }
97 
101  void setRunPosition(int runposition) {m_runposition = runposition; }
102 
106  bool getOK() const {return m_isOK; }
107 
111  void setOK(bool isOK) {m_isOK = isOK; }
112 
118  int getDeadCh(unsigned int i) const;
119 
124  void appendDeadCh(int channel) {m_deadCh.push_back(channel); }
125 
130  void setDeadChs(const std::vector<int>& deadChs) {m_deadCh = deadChs; }
131 
136  int getDeadChsSize() const {return m_deadCh.size();}
137 
143  int getStrangeCh(unsigned int i) const;
144 
149  void appendStrangeCh(int channel) {m_strangeCh.push_back(channel); }
150 
155  void setStrangeChs(const std::vector<int>& strangeChs) {m_strangeCh = strangeChs; }
156 
161  int getStrangeChsSize() const {return m_strangeCh.size();}
162 
167  TGraph* getGuardBiasTH() const {return m_guardBias_th;}
168 
173  void setGuardBiasTH(TGraph* guardBias_th) { m_guardBias_th = guardBias_th;}
174 
178  TGraph* getChipVdiffTH(unsigned int i) const;
179 
183  void setChipVdiffTH(unsigned int i, TGraph* chipVdiff_th);
184 
188  TGraph* getChipLeakTH(unsigned int i) const;
189 
193  void setChipLeakTH(unsigned int i, TGraph* chipLeak_th);
194 
199  TGraph* getHighVoltageTH() const {return m_HV_th;}
200 
205  void setHighVoltageTH(TGraph* HV_th) { m_HV_th = HV_th;}
206 
211  TGraph* getGuardBias2Dx() const {return m_guardBias_2Dx;}
212 
217  void setGuardBias2Dx(TGraph* guardBias_2Dx) { m_guardBias_2Dx = guardBias_2Dx;}
218 
222  TGraph* getChipVdiff2Dx(unsigned int i) const;
223 
227  void setChipVdiff2Dx(unsigned int i, TGraph* chipVdiff_2Dx);
228 
232  TGraph* getChipLeak2Dx(unsigned int i) const;
233 
237  void setChipLeak2Dx(unsigned int i, TGraph* chipLeak_2Dx);
238 
243  TGraph* getHighVoltage2Dx() const {return m_HV_2Dx;}
244 
249  void setHighVoltage2Dx(TGraph* HV_2Dx) { m_HV_2Dx = HV_2Dx;}
250 
255  TGraph* getGuardBias2Dy() const {return m_guardBias_2Dy;}
256 
260  TGraph* getChipVdiff2Dy(unsigned int i) const;
261 
265  void setChipVdiff2Dy(unsigned int i, TGraph* chipVdiff_2Dy);
266 
271  void setGuardBias2Dy(TGraph* guardBias_2Dy) { m_guardBias_2Dy = guardBias_2Dy;}
272 
276  TGraph* getChipLeak2Dy(unsigned int i) const;
277 
281  void setChipLeak2Dy(unsigned int i, TGraph* chipLeak_2Dy);
282 
287  TGraph* getHighVoltage2Dy() const {return m_HV_2Dy;}
288 
293  void setHighVoltage2Dy(TGraph* HV_2Dy) { m_HV_2Dy = HV_2Dy;}
294 
299  TH1F* getGain() const {return m_gain;}
300 
305  void setGain(TH1F* gain) { m_gain = gain;}
306 
311  TH2D* getChargeScan() const {return m_charge;}
312 
317  void setChargeScan(TH2D* charge) { m_charge = charge;}
318 
323  TH2D* getTresholdScan() const {return m_th;}
324 
329  void setTresholdScan(TH2D* th) { m_th = th;}
330 
335  TH2D* getLaserScanX() const {return m_scanX;}
336 
341  void setLaserScanX(TH2D* scanX) { m_scanX = scanX;}
342 
347  TH2D* getLaserScanY() const {return m_scanY;}
348 
353  void setLaserScanY(TH2D* scanY) { m_scanY = scanY;}
354 
358  void setComment(const std::string& comment) {m_comment = comment; }
359 
363  std::string getComment() const {return m_comment; }
364 
365  private:
366 
367  int m_febSN;
368  std::string m_hapdSN;
369  int m_hvbSN;
370  int m_run;
372  bool m_isOK;
373  std::vector<int> m_deadCh;
374  std::vector<int> m_strangeCh;
376  TGraph* m_guardBias_th;
377  TGraph* m_chipVdiff_th[4];
378  TGraph* m_chipLeak_th[4];
379  TGraph* m_HV_th;
380  TGraph* m_guardBias_2Dx;
381  TGraph* m_chipVdiff_2Dx[4];
382  TGraph* m_chipLeak_2Dx[4];
383  TGraph* m_HV_2Dx;
384  TGraph* m_guardBias_2Dy;
385  TGraph* m_chipVdiff_2Dy[4];
386  TGraph* m_chipLeak_2Dy[4];
387  TGraph* m_HV_2Dy;
388  TH1F* m_gain;
389  TH2D* m_charge;
390  TH2D* m_th;
391  TH2D* m_scanX;
392  TH2D* m_scanY;
394  std::string m_comment;
397  };
399 } // end namespace Belle2
The Class for ARICH Aerogel Parameters.
void setChipLeak2Dx(unsigned int i, TGraph *chipLeak_2Dx)
Set leakage current during 2Dx scan.
std::string m_comment
Optional comment.
void setChipLeak2Dy(unsigned int i, TGraph *chipLeak_2Dy)
Set leakage current during 2Dy scan.
std::vector< int > m_strangeCh
List of strange channels (mapping: channels on HAPD)
void setChipVdiff2Dy(unsigned int i, TGraph *chipVdiff_2Dy)
Set Chip Vmon - Vset difference during 2Dx scan.
int getStrangeChsSize() const
Return size of the list of strange channels.
TH2D * m_charge
Charge scan 2D.
bool m_isOK
Module is OK if true.
TH1F * m_gain
Gain for each channel.
TH2D * m_scanX
Laser scan 2D - x direction.
int getRunPosition() const
Return module test run position.
void setGuardBias2Dx(TGraph *guardBias_2Dx)
Set guard bias during 2Dx scan.
std::string getComment() const
Return comment.
TH2D * m_th
Treshold scan 2D.
TH2D * getChargeScan() const
Return charge scan.
TGraph * m_chipVdiff_2Dx[4]
Chip Vmon - Vset difference during 2D x scan.
void setChipVdiffTH(unsigned int i, TGraph *chipVdiff_th)
Set Chip Vmon - Vset difference during treshold scan.
TGraph * m_chipLeak_2Dx[4]
Chip leakage current during 2D x scan.
TH2D * getLaserScanX() const
Return laser scan - X direction.
TGraph * getGuardBias2Dx() const
Return guard bias during 2Dx scan.
void setHighVoltageTH(TGraph *HV_th)
Set high voltage during treshold scan.
std::string m_hapdSN
HAPD serial number.
int m_runposition
Position on setup.
TGraph * getChipVdiffTH(unsigned int i) const
Get Chip Vmon - Vset difference during treshold scan.
void setLaserScanY(TH2D *scanY)
Set laser scan - Y direction.
TH2D * getTresholdScan() const
Return treshold scan.
TGraph * m_guardBias_th
Guard bias during treshold scan.
int m_febSN
FEB serial number.
TGraph * m_chipVdiff_th[4]
Chip Vmon - Vset difference during treshold scan.
TGraph * m_chipLeak_2Dy[4]
Chip leakage current during 2D y scan.
TGraph * m_guardBias_2Dy
Guard bias during 2D y scan.
void setHapdSN(const std::string &hapd)
Set HAPD serial number.
int getRun() const
Return module test run.
int getHvbSN() const
Return HVB serial number.
TGraph * m_guardBias_2Dx
Guard bias during 2D x scan.
void setOK(bool isOK)
Set bool value - module is OK.
TH2D * getLaserScanY() const
Return laser scan - Y direction.
TGraph * getGuardBias2Dy() const
Return guard bias during 2Dy scan.
TGraph * m_HV_th
High voltage during treshold scan.
TGraph * m_HV_2Dx
High voltage during 2D x scan.
TGraph * getHighVoltageTH() const
Return high voltage during treshold scan.
ClassDef(ARICHModuleTest, 2)
ClassDef.
TGraph * getChipLeakTH(unsigned int i) const
Get leakage current during treshold scan.
void setGuardBias2Dy(TGraph *guardBias_2Dy)
Set guard bias during 2Dy scan.
ARICHModuleTest()
Default constructor.
TGraph * getHighVoltage2Dy() const
Return high voltage during 2Dy scan.
void setRun(int run)
Set module test run.
TH2D * m_scanY
Laser scan 2D - y direction.
void setHighVoltage2Dy(TGraph *HV_2Dy)
Set high voltage during 2Dy scan.
void setFebSN(int serial)
Set FEB serial number.
void appendDeadCh(int channel)
Add a channel number to the list of dead channels.
TGraph * m_HV_2Dy
High voltage during 2D y scan.
TGraph * m_chipLeak_th[4]
Chip leakage current during treshold scan.
void setLaserScanX(TH2D *scanX)
Set laser scan - X direction.
int getDeadChsSize() const
Return size of the list of dead channels.
int getFebSN() const
Return FEB serial number.
void setChipLeakTH(unsigned int i, TGraph *chipLeak_th)
Set leakage current during treshold scan.
void setGain(TH1F *gain)
Set gain.
TH1F * getGain() const
Return gain.
int getDeadCh(unsigned int i) const
Return a channel number from the list of dead channels.
void appendStrangeCh(int channel)
Add a channel number to the list of strange channels.
void setRunPosition(int runposition)
Set module test run.
std::vector< int > m_deadCh
List of dead channels (mapping: channels on HAPD)
TGraph * getGuardBiasTH() const
Return guard bias during treshold scan.
TGraph * m_chipVdiff_2Dy[4]
Chip Vmon - Vset difference during 2D y scan.
bool getOK() const
Return True if module is OK.
TGraph * getChipLeak2Dx(unsigned int i) const
Get leakage current during 2Dx scan.
void setDeadChs(const std::vector< int > &deadChs)
Set vector of dead channel numbers.
TGraph * getChipVdiff2Dy(unsigned int i) const
Get Chip Vmon - Vset difference during 2Dy scan.
int m_hvbSN
HVB serial number.
TGraph * getChipVdiff2Dx(unsigned int i) const
Get Chip Vmon - Vset difference during 2Dx scan.
TGraph * getHighVoltage2Dx() const
Return high voltage during 2Dx scan.
void setHvbSN(int serial)
Set HVB serial number.
void setComment(const std::string &comment)
Set comment.
void setChargeScan(TH2D *charge)
Set charge scan.
void setHighVoltage2Dx(TGraph *HV_2Dx)
Set high voltage during 2Dx scan.
~ARICHModuleTest()
Destructor.
void setTresholdScan(TH2D *th)
Set treshold scan.
TGraph * getChipLeak2Dy(unsigned int i) const
Get leakage current during 2Dy scan.
void setChipVdiff2Dx(unsigned int i, TGraph *chipVdiff_2Dx)
Set Chip Vmon - Vset difference during 2Dx scan.
void setGuardBiasTH(TGraph *guardBias_th)
Set guard bias during treshold scan.
int getStrangeCh(unsigned int i) const
Return a channel number from the list of strange channels.
void setStrangeChs(const std::vector< int > &strangeChs)
Set vector of strange channel numbers.
std::string getHapdSN() const
Return HAPD serial number.
TH1F * hapd[6]
histogram of hits for each hapd
Abstract base class for different kinds of events.