Belle II Software  release-05-02-19
ARICHHapdQA.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Manca Mrvar *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <string>
13 #include <vector>
14 #include <TObject.h>
15 #include <TH1S.h>
16 #include <TH2F.h>
17 #include <TTimeStamp.h>
18 #include <TGraph.h>
19 
20 namespace Belle2 {
28  class ARICHHapdQA: public TObject {
29  public:
30 
35  m_comment("") {};
36 
41  ARICHHapdQA(const std::string& serial, TTimeStamp arrivalDate, std::vector<TGraph*>& leakCurrent, TH2F* hitData2D,
42  std::vector<TGraph*>& noise, std::vector<TH1S*>& hitCount): m_serial(serial), m_arrivalDate(arrivalDate),
43  m_leakCurrent(leakCurrent), m_hitData2D(hitData2D), m_noise(noise), m_hitCount(hitCount), m_comment("") { };
44 
45 
50 
55  std::string getHapdSerialNumber() const {return m_serial;}
56 
61  void setHapdSerialNumber(const std::string& serial) {m_serial = serial; }
62 
66  TTimeStamp getHapdArrivalDate() const {return m_arrivalDate; }
67 
71  void setHapdArrivalDate(TTimeStamp arrivalDate) {m_arrivalDate = arrivalDate; }
72 
77  TGraph* getHapdLeakCurrent(unsigned int i) const;
78 
83  void setHapdLeakCurrent(std::vector<TGraph*> leakCurrent);
84 
89  TH2F* getHapdHitData2D() const {return m_hitData2D;}
90 
95  void setHapdHitData2D(TH2F* hitData2D) { m_hitData2D = hitData2D;}
96 
101  TGraph* getHapdNoise(unsigned int i) const;
102 
107  void setHapdNoise(std::vector<TGraph*> noise);
108 
113  TH1S* getHapdHitCount(unsigned int i) const;
114 
119  void setHapdHitCount(std::vector<TH1S*> hitCount);
120 
124  std::string getHapdComment() const {return m_comment; }
125 
129  void setHapdComment(const std::string& comment) {m_comment = comment; }
130 
131 
132  private:
133  std::string m_serial;
134  TTimeStamp m_arrivalDate;
135  std::vector<TGraph*> m_leakCurrent;
136  TH2F* m_hitData2D;
137  std::vector<TGraph*> m_noise;
138  std::vector<TH1S*> m_hitCount;
139  std::string m_comment;
142  };
144 } // end namespace Belle2
Belle2::ARICHHapdQA::getHapdComment
std::string getHapdComment() const
Return comment.
Definition: ARICHHapdQA.h:132
Belle2::ARICHHapdQA::setHapdHitCount
void setHapdHitCount(std::vector< TH1S * > hitCount)
set Hit count vs.
Definition: ARICHHapdQA.cc:43
Belle2::ARICHHapdQA::setHapdNoise
void setHapdNoise(std::vector< TGraph * > noise)
set Noise level vs.
Belle2::ARICHHapdQA::m_leakCurrent
std::vector< TGraph * > m_leakCurrent
Leakege Current as a function of bias voltage.
Definition: ARICHHapdQA.h:143
Belle2::ARICHHapdQA::getHapdNoise
TGraph * getHapdNoise(unsigned int i) const
Return Noise level vs.
Definition: ARICHHapdQA.cc:29
Belle2::ARICHHapdQA::setHapdArrivalDate
void setHapdArrivalDate(TTimeStamp arrivalDate)
Set HAPD measurement date.
Definition: ARICHHapdQA.h:79
Belle2::ARICHHapdQA::m_arrivalDate
TTimeStamp m_arrivalDate
date of HAPD's arrival
Definition: ARICHHapdQA.h:142
Belle2::ARICHHapdQA::setHapdHitData2D
void setHapdHitData2D(TH2F *hitData2D)
Set 2D hit data.
Definition: ARICHHapdQA.h:103
Belle2::ARICHHapdQA::setHapdSerialNumber
void setHapdSerialNumber(const std::string &serial)
Set HAPD Serial Number.
Definition: ARICHHapdQA.h:69
Belle2::ARICHHapdQA::m_noise
std::vector< TGraph * > m_noise
Noise level vs.
Definition: ARICHHapdQA.h:145
Belle2::ARICHHapdQA::~ARICHHapdQA
~ARICHHapdQA()
Destructor.
Definition: ARICHHapdQA.h:57
Belle2::ARICHHapdQA
Contains manufacturer data of the photo sensor - HAPD.
Definition: ARICHHapdQA.h:36
Belle2::ARICHHapdQA::setHapdLeakCurrent
void setHapdLeakCurrent(std::vector< TGraph * > leakCurrent)
set Leakeage Current as a function of bias voltage
Definition: ARICHHapdQA.cc:23
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHHapdQA::m_hitData2D
TH2F * m_hitData2D
2D hit data
Definition: ARICHHapdQA.h:144
Belle2::ARICHHapdQA::ARICHHapdQA
ARICHHapdQA()
Default constructor.
Definition: ARICHHapdQA.h:42
Belle2::ARICHHapdQA::setHapdComment
void setHapdComment(const std::string &comment)
Set comment.
Definition: ARICHHapdQA.h:137
Belle2::ARICHHapdQA::getHapdArrivalDate
TTimeStamp getHapdArrivalDate() const
Return HAPD measurement date.
Definition: ARICHHapdQA.h:74
Belle2::ARICHHapdQA::getHapdHitData2D
TH2F * getHapdHitData2D() const
Return 2D hit data.
Definition: ARICHHapdQA.h:97
Belle2::ARICHHapdQA::getHapdLeakCurrent
TGraph * getHapdLeakCurrent(unsigned int i) const
Return Leakeage Current as a function of bias voltage.
Definition: ARICHHapdQA.cc:16
Belle2::ARICHHapdQA::m_hitCount
std::vector< TH1S * > m_hitCount
Hit count vs.
Definition: ARICHHapdQA.h:146
Belle2::ARICHHapdQA::m_serial
std::string m_serial
serial number of the sensor
Definition: ARICHHapdQA.h:141
Belle2::ARICHHapdQA::m_comment
std::string m_comment
Optional comment.
Definition: ARICHHapdQA.h:147
Belle2::ARICHHapdQA::getHapdSerialNumber
std::string getHapdSerialNumber() const
Return HAPD Serial Number.
Definition: ARICHHapdQA.h:63
Belle2::ARICHHapdQA::ClassDef
ClassDef(ARICHHapdQA, 2)
ClassDef.
Belle2::ARICHHapdQA::getHapdHitCount
TH1S * getHapdHitCount(unsigned int i) const
Return Hit count vs.
Definition: ARICHHapdQA.cc:36