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