BmnRoot
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:
28
32 BmnCustomQa(string name, string padConfFile);
33
37 virtual ~BmnCustomQa();
38
42 virtual InitStatus Init();
43
47 virtual void Exec(Option_t* opt);
48
52 virtual void Finish();
53
54 void SetOutputDir(const std::string& dir) { fOutputDir = dir; }
55
56 /*
57 * Reset all histograms in thepad tree
58 */
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 */
69 TObjString* LoadDefaultConfig();
70
71 /*
72 * Get current config
73 */
74 TObjString* FetchConfig();
75
76 private:
77 void Redraw();
78
82 void ReadDataBranches();
83
84 void CreateHistograms();
85
86 void RecreateHistTree();
87
88 void ProcessGlobal();
89
90 void ReloadConf();
91
92 string fPadConfDirWeb;
93 string fPadConfDir;
94 string fPadConfFileNameDefault;
95 string fPadConfFileName;
96 string fPadConfText;
97 BmnPadGenerator* fPadGenerator;
98 BmnPadBranch* fPadTree;
99
100 TTree* fTreeTemp;
101 // vector<TObject*> fNamVec;
102 // vector<TClonesArray*> fArrVec;
103
104 TCanvas* can;
105 std::mutex mtx_can;
106
107 TObjString fCurConfig;
108
109 BmnCustomQa(const BmnCustomQa&) = delete;
110 BmnCustomQa& operator=(const BmnCustomQa&) = delete;
111
112 ClassDef(BmnCustomQa, 1);
113};
114
115#endif /* BMNCUSTOMQA_H */
FairTask for tracking performance calculation.
TObjString * LoadDefaultConfig()
virtual void Finish()
Derived from FairTask.
BmnCustomQa(string name, string padConfFile)
Constructor.
TObjString * FetchConfig()
virtual ~BmnCustomQa()
Destructor.
void SetOutputDir(const std::string &dir)
Definition BmnCustomQa.h:54
void SaveConfig(string str)
virtual void Exec(Option_t *opt)
Derived from FairTask.
void ResetPadTree()
virtual InitStatus Init()
Derived from FairTask.
BmnCustomQa()
Constructor.
Definition BmnCustomQa.h:27
Node of pad tree.
Generates pad tree from the scheme.
string fOutputDir
Definition BmnQaBase.h:153