BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCustomQa.h
Go to the documentation of this file.
1#ifndef BMNCUSTOMQA_H
2#define BMNCUSTOMQA_H
3
4#include "BmnHist.h"
5#include "BmnPadBranch.h"
6#include "BmnPadGenerator.h"
7#include "BmnQaBase.h"
8#include "FairTask.h"
9
10#include <TBranch.h>
11#include <TClass.h>
12#include <TObjString.h>
13#include <TTree.h>
14#include <chrono>
15#include <time.h>
16// #include "BmnCustomQaReport.h"
17
18using std::string;
19using std::vector;
20
21class BmnCustomQa : public BmnQaBase
22{
23 public:
24 /**
25 * \brief Constructor.
26 */
28
29 /**
30 * \brief Constructor.
31 */
32 BmnCustomQa(string name, string padConfFile);
33
34 /**
35 * \brief Destructor.
36 */
37 virtual ~BmnCustomQa();
38
39 /**
40 * \brief Derived from FairTask.
41 */
42 virtual InitStatus Init();
43
44 /**
45 * \brief Derived from FairTask.
46 */
47 virtual void Exec(Option_t* opt);
48
49 /**
50 * \brief Derived from FairTask.
51 */
52 virtual void Finish();
53
54 void SetOutputDir(const std::string& dir) { fOutputDir = dir; }
55
56 /*
57 * Reset all histograms in thepad tree
58 */
59 void ResetPadTree();
60
61 /*
62 * Save pad config from page to file on disk
63 */
64 void SaveConfig(string str);
65
66 /*
67 * Load default config from file on disk
68 */
70
71 /*
72 * Get current config
73 */
75
76 private:
77 void Redraw();
78
79 /**
80 * \brief Read data branches from input data files.
81 */
82 void ReadDataBranches();
83
84 void CreateHistograms();
85
86 void RecreateHistTree();
87
88 void ProcessGlobal();
89
90 void ReloadConf();
91
99
101 // vector<TObject*> fNamVec;
102 // vector<TClonesArray*> fArrVec;
103
105 std::mutex mtx_can; //!
106
108
109 BmnCustomQa(const BmnCustomQa&) = delete;
111
113};
114
115#endif /* BMNCUSTOMQA_H */
const char Option_t
#define ClassDef(name, id)
string fPadConfFileName
Definition BmnCustomQa.h:95
void RecreateHistTree()
TObjString * LoadDefaultConfig()
void ProcessGlobal()
virtual void Exec(Option_t *opt)
Derived from FairTask.
string fPadConfDir
Definition BmnCustomQa.h:93
virtual void Finish()
Derived from FairTask.
virtual ~BmnCustomQa()
Destructor.
BmnPadGenerator * fPadGenerator
Definition BmnCustomQa.h:97
string fPadConfText
Definition BmnCustomQa.h:96
TTree * fTreeTemp
TCanvas * can
BmnCustomQa & operator=(const BmnCustomQa &)=delete
string fPadConfDirWeb
Definition BmnCustomQa.h:92
void CreateHistograms()
TObjString * FetchConfig()
BmnCustomQa(const BmnCustomQa &)=delete
void SetOutputDir(const std::string &dir)
Definition BmnCustomQa.h:54
void ReloadConf()
void SaveConfig(string str)
virtual InitStatus Init()
Derived from FairTask.
TObjString fCurConfig
void ResetPadTree()
void ReadDataBranches()
Read data branches from input data files.
BmnPadBranch * fPadTree
Definition BmnCustomQa.h:98
std::mutex mtx_can
BmnCustomQa()
Constructor.
Definition BmnCustomQa.h:27
string fPadConfFileNameDefault
Definition BmnCustomQa.h:94
Node of pad tree.
Generates pad tree from the scheme.
BmnQaBase()
Constructor.
Definition BmnQaBase.h:39
string fOutputDir
Definition BmnQaBase.h:153
FairTask for tracking performance calculation.