BmnRoot
Loading...
Searching...
No Matches
BmnTimeDetQa.h
Go to the documentation of this file.
1
#include <TNamed.h>
2
#include <TH1F.h>
3
#include "
BmnQaHistoManager.h
"
4
5
#include <
BmnOfflineQaSteering.h
>
6
7
#ifndef BMNTIMEDETQA_H
8
#define BMNTIMEDETQA_H 1
9
10
using namespace
std
;
11
12
class
BmnTimeDetQa
:
public
TNamed {
13
public
:
14
16
BmnTimeDetQa
() {
17
};
18
BmnTimeDetQa
(TString, UInt_t);
19
21
virtual
~BmnTimeDetQa
() {
22
};
23
24
// Setters
25
26
// Getters
27
28
BmnQaHistoManager
*
GetManager
() {
29
return
fHistoManager;
30
}
31
32
private
:
33
BmnOfflineQaSteering
* fSteering;
34
BmnQaHistoManager
* fHistoManager;
35
36
void
CommonInfo(TString detName) {
37
fHistoManager->
Create1
<TH1F> (Form(
"%s_1d, Distribution of times"
, detName.Data()),
38
Form(
"%s, Distribution of times"
, detName.Data()),
39
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of times"
, detName.Data()))[0],
40
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of times"
, detName.Data()))[1],
41
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of times"
, detName.Data()))[2]);
42
43
fHistoManager->
Create1
<TH1F> (Form(
"%s_1d, Distribution of planes"
, detName.Data()),
44
Form(
"%s, Distribution of planes"
, detName.Data()),
45
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of planes"
, detName.Data()))[0],
46
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of planes"
, detName.Data()))[1],
47
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of planes"
, detName.Data()))[2]);
48
}
49
50
void
MwpcDchInfo(TString detName) {
51
fHistoManager->
Create1
<TH1F> (Form(
"%s_1d, Distribution of wires"
, detName.Data()),
52
Form(
"%s, Distribution of wires"
, detName.Data()),
53
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of wires"
, detName.Data()))[0],
54
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of wires"
, detName.Data()))[1],
55
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of wires"
, detName.Data()))[2]);
56
}
57
58
void
TofInfo(TString detName) {
59
fHistoManager->
Create1
<TH1F> (Form(
"%s_1d, Distribution of strips"
, detName.Data()),
60
Form(
"%s, Distribution of strips"
, detName.Data()),
61
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of strips"
, detName.Data()))[0],
62
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of strips"
, detName.Data()))[1],
63
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of strips"
, detName.Data()))[2]);
64
fHistoManager->
Create1
<TH1F> (Form(
"%s_1d, Distribution of amplitudes"
, detName.Data()),
65
Form(
"%s, Distribution of amplitudes"
, detName.Data()),
66
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of amplitudes"
, detName.Data()))[0],
67
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of amplitudes"
, detName.Data()))[1],
68
fSteering->
GetAxisAttributes
(Form(
"%s_1d, Distribution of amplitudes"
, detName.Data()))[2]);
69
}
70
71
ClassDef(
BmnTimeDetQa
, 1);
72
73
};
74
75
#endif
BmnQaHistoManager.h
BmnHistManager::Create1
void Create1(const TString &name, const TString &title, Int_t nofBins, Double_t minBin, Double_t maxBin)
Helper function for creation of 1-dimensional histograms and profiles. Template argument is a real ob...
Definition
BmnHistManager.h:74
BmnOfflineQaSteering
Definition
BmnOfflineQaSteering.h:22
BmnOfflineQaSteering::GetAxisAttributes
vector< Double_t > GetAxisAttributes(TString)
Definition
BmnOfflineQaSteering.cxx:11
BmnQaHistoManager
Definition
BmnQaHistoManager.h:9
BmnTimeDetQa
Definition
BmnTimeDetQa.h:12
BmnTimeDetQa::GetManager
BmnQaHistoManager * GetManager()
Definition
BmnTimeDetQa.h:28
BmnTimeDetQa::~BmnTimeDetQa
virtual ~BmnTimeDetQa()
Definition
BmnTimeDetQa.h:21
BmnTimeDetQa::BmnTimeDetQa
BmnTimeDetQa()
Definition
BmnTimeDetQa.h:16
std
STL namespace.
BmnOfflineQaSteering.h
install
include
BmnTimeDetQa.h
Generated on Fri May 15 2026 10:40:55 for BmnRoot by
1.9.8