Belle II Software development
ARICHHapdQA.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#include <string>
11#include <vector>
12#include <TObject.h>
13#include <TH1S.h>
14#include <TH2F.h>
15#include <TTimeStamp.h>
16#include <TGraph.h>
17
18namespace Belle2 {
26 class ARICHHapdQA: public TObject {
27 public:
28
33 m_comment("") {};
34
39 ARICHHapdQA(const std::string& serial, TTimeStamp arrivalDate, std::vector<TGraph*>& leakCurrent, TH2F* hitData2D,
40 std::vector<TGraph*>& noise, std::vector<TH1S*>& hitCount): m_serial(serial), m_arrivalDate(arrivalDate),
41 m_leakCurrent(leakCurrent), m_hitData2D(hitData2D), m_noise(noise), m_hitCount(hitCount), m_comment("") { };
42
43
48
53 std::string getHapdSerialNumber() const {return m_serial;}
54
59 void setHapdSerialNumber(const std::string& serial) {m_serial = serial; }
60
64 TTimeStamp getHapdArrivalDate() const {return m_arrivalDate; }
65
69 void setHapdArrivalDate(TTimeStamp arrivalDate) {m_arrivalDate = arrivalDate; }
70
75 TGraph* getHapdLeakCurrent(unsigned int i) const;
76
81 void setHapdLeakCurrent(std::vector<TGraph*> leakCurrent);
82
87 TH2F* getHapdHitData2D() const {return m_hitData2D;}
88
93 void setHapdHitData2D(TH2F* hitData2D) { m_hitData2D = hitData2D;}
94
99 TGraph* getHapdNoise(unsigned int i) const;
100
105 void setHapdNoise(std::vector<TGraph*> noise);
106
111 TH1S* getHapdHitCount(unsigned int i) const;
112
117 void setHapdHitCount(std::vector<TH1S*> hitCount);
118
122 std::string getHapdComment() const {return m_comment; }
123
127 void setHapdComment(const std::string& comment) {m_comment = comment; }
128
129
130 private:
131 std::string m_serial;
132 TTimeStamp m_arrivalDate;
133 std::vector<TGraph*> m_leakCurrent;
135 std::vector<TGraph*> m_noise;
136 std::vector<TH1S*> m_hitCount;
137 std::string m_comment;
140 };
142} // end namespace Belle2
Contains manufacturer data of the photo sensor - HAPD.
Definition: ARICHHapdQA.h:26
std::string m_comment
Optional comment.
Definition: ARICHHapdQA.h:137
void setHapdHitData2D(TH2F *hitData2D)
Set 2D hit data.
Definition: ARICHHapdQA.h:93
ARICHHapdQA()
Default constructor.
Definition: ARICHHapdQA.h:32
~ARICHHapdQA()
Destructor.
Definition: ARICHHapdQA.h:47
TTimeStamp getHapdArrivalDate() const
Return HAPD measurement date.
Definition: ARICHHapdQA.h:64
std::vector< TGraph * > m_noise
Noise level vs.
Definition: ARICHHapdQA.h:135
std::vector< TH1S * > m_hitCount
Hit count vs.
Definition: ARICHHapdQA.h:136
void setHapdSerialNumber(const std::string &serial)
Set HAPD Serial Number.
Definition: ARICHHapdQA.h:59
TH1S * getHapdHitCount(unsigned int i) const
Return Hit count vs.
Definition: ARICHHapdQA.cc:34
TGraph * getHapdLeakCurrent(unsigned int i) const
Return Leakeage Current as a function of bias voltage.
Definition: ARICHHapdQA.cc:14
std::string getHapdComment() const
Return comment.
Definition: ARICHHapdQA.h:122
void setHapdLeakCurrent(std::vector< TGraph * > leakCurrent)
set Leakeage Current as a function of bias voltage
Definition: ARICHHapdQA.cc:21
TGraph * getHapdNoise(unsigned int i) const
Return Noise level vs.
Definition: ARICHHapdQA.cc:27
void setHapdArrivalDate(TTimeStamp arrivalDate)
Set HAPD measurement date.
Definition: ARICHHapdQA.h:69
ARICHHapdQA(const std::string &serial, TTimeStamp arrivalDate, std::vector< TGraph * > &leakCurrent, TH2F *hitData2D, std::vector< TGraph * > &noise, std::vector< TH1S * > &hitCount)
Constructor.
Definition: ARICHHapdQA.h:39
std::string getHapdSerialNumber() const
Return HAPD Serial Number.
Definition: ARICHHapdQA.h:53
std::string m_serial
serial number of the sensor
Definition: ARICHHapdQA.h:131
TH2F * m_hitData2D
2D hit data
Definition: ARICHHapdQA.h:134
void setHapdHitCount(std::vector< TH1S * > hitCount)
set Hit count vs.
Definition: ARICHHapdQA.cc:41
TH2F * getHapdHitData2D() const
Return 2D hit data.
Definition: ARICHHapdQA.h:87
std::vector< TGraph * > m_leakCurrent
Leakege Current as a function of bias voltage.
Definition: ARICHHapdQA.h:133
void setHapdNoise(std::vector< TGraph * > noise)
set Noise level vs.
ClassDef(ARICHHapdQA, 2)
ClassDef.
void setHapdComment(const std::string &comment)
Set comment.
Definition: ARICHHapdQA.h:127
TTimeStamp m_arrivalDate
date of HAPD's arrival
Definition: ARICHHapdQA.h:132
Abstract base class for different kinds of events.