BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnCalorimeterDetQa.h
Go to the documentation of this file.
1
#include "
BmnQaHistoManager.h
"
2
3
#include <BmnOfflineQaSteering.h>
4
#include <
TH1F.h
>
5
#include <
TNamed.h
>
6
7
#ifndef BMNCALORIMDETQA_H
8
#define BMNCALORIMDETQA_H 1
9
10
using namespace
std
;
11
12
class
BmnCalorimeterDetQa
:
public
TNamed
13
{
14
public
:
15
/** Default constructor **/
16
BmnCalorimeterDetQa
() {};
17
BmnCalorimeterDetQa
(
TString
, UInt_t);
18
19
/** Destructor **/
20
virtual
~BmnCalorimeterDetQa
() {};
21
22
// Setters
23
24
// Getters
25
26
BmnQaHistoManager
*
GetManager
() {
return
fHistoManager
; }
27
28
private
:
29
BmnOfflineQaSteering
*
fSteering
;
30
BmnQaHistoManager
*
fHistoManager
;
31
32
void
CommonInfo
(
TString
detName)
33
{
34
vector<TString> names = {
Form
(
"%s_1d, Distribution of iX"
, detName.
Data
()),
35
Form
(
"%s_1d, Distribution of iY"
, detName.
Data
()),
36
Form
(
"%s_1d, Distribution of X"
, detName.
Data
()),
37
Form
(
"%s_1d, Distribution of Y"
, detName.
Data
()),
38
Form
(
"%s_1d, Distribution of channels"
, detName.
Data
()),
39
Form
(
"%s_1d, Distribution of amplitudes"
, detName.
Data
())};
40
41
vector<TString> titles = {
Form
(
"%s, Distribution of iX"
, detName.
Data
()),
42
Form
(
"%s, Distribution of iY"
, detName.
Data
()),
43
Form
(
"%s, Distribution of X"
, detName.
Data
()),
44
Form
(
"%s, Distribution of Y"
, detName.
Data
()),
45
Form
(
"%s, Distribution of channels"
, detName.
Data
()),
46
Form
(
"%s, Distribution of amplitudes"
, detName.
Data
())};
47
48
if
(names.size() != titles.size())
49
Fatal
(
"BmnCalorimeterDetQa::CommonInfo()"
,
"Sizes do not coincide!!!"
);
50
51
for
(
size_t
iHisto = 0; iHisto < names.size(); iHisto++) {
52
Int_t
nBins =
fSteering
->GetAxisAttributes(names[iHisto])[0];
53
Double_t
xLow =
fSteering
->GetAxisAttributes(names[iHisto])[1];
54
Double_t
xUp =
fSteering
->GetAxisAttributes(names[iHisto])[2];
55
fHistoManager
->Create1<
TH1F
>(names[iHisto], titles[iHisto], nBins, xLow, xUp);
56
}
57
}
58
59
ClassDef
(
BmnCalorimeterDetQa
, 1);
60
};
61
62
#endif
BmnQaHistoManager.h
Int_t
int Int_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
TH1F.h
TNamed.h
Form
char * Form(const char *fmt,...)
BmnCalorimeterDetQa
Definition
BmnCalorimeterDetQa.h:13
BmnCalorimeterDetQa::fHistoManager
BmnQaHistoManager * fHistoManager
Definition
BmnCalorimeterDetQa.h:30
BmnCalorimeterDetQa::GetManager
BmnQaHistoManager * GetManager()
Definition
BmnCalorimeterDetQa.h:26
BmnCalorimeterDetQa::~BmnCalorimeterDetQa
virtual ~BmnCalorimeterDetQa()
Destructor.
Definition
BmnCalorimeterDetQa.h:20
BmnCalorimeterDetQa::BmnCalorimeterDetQa
BmnCalorimeterDetQa()
Default constructor.
Definition
BmnCalorimeterDetQa.h:16
BmnCalorimeterDetQa::CommonInfo
void CommonInfo(TString detName)
Definition
BmnCalorimeterDetQa.h:32
BmnCalorimeterDetQa::BmnCalorimeterDetQa
BmnCalorimeterDetQa(TString, UInt_t)
BmnCalorimeterDetQa::fSteering
BmnOfflineQaSteering * fSteering
Definition
BmnCalorimeterDetQa.h:29
BmnOfflineQaSteering
Definition
BmnOfflineQaSteering.h:22
BmnQaHistoManager
Definition
BmnQaHistoManager.h:10
TH1F
TNamed
TObject::Fatal
virtual void Fatal(const char *method, const char *msgfmt,...) const
TString
TString::Data
const char * Data() const
std
Definition
json.hpp:4446
QA
offline
BmnCalorimeterDetQa.h
Generated on
for BmnRoot by
1.17.0