BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnLambdaEmbeddingDrawHistos.h
Go to the documentation of this file.
1#ifndef BMNEMBDRAW_H
2#define BMNEMBDRAW_H 1
3
5#include <TCanvas.h>
6#include <TClonesArray.h>
7#include <TH1.h>
8#include <TH2.h>
9#include <TLegend.h>
10#include <TNamed.h>
11#include <TProfile2D.h>
12#include <TStyle.h>
13
14using namespace std;
15
16class HistoPlacement : public TNamed
17{
18 public:
20 : fPad(-1)
21 , fSubPad(-1)
22 , fDet("")
23 , fName("")
24 , fType(-1)
25 , fStat(-1)
26 , fMod(-1)
27 {}
28
29 HistoPlacement(TString canvName, Int_t pad, Int_t subPad, TString det, Int_t type, Int_t stat, Int_t mod)
30 {
31 fPad = pad;
32 fSubPad = subPad;
33 fDet = det;
34 fType = type;
35 fStat = stat;
36 fMod = mod;
37 fName = canvName;
38 }
39
40 HistoPlacement(TString canvName, Int_t pad, TString det, Int_t stat)
41 : fSubPad(-1)
42 , fType(-1)
43 , fMod(-1)
44 {
45 fPad = pad;
46 fDet = det;
47 fStat = stat;
48 fName = canvName;
49 }
50
51 virtual ~HistoPlacement() {}
52
54
56
57 Int_t GetPad() { return fPad; }
58
59 Int_t GetSubpad() { return fSubPad; }
60
61 Int_t GetAnalType() { return fType; }
62
63 Int_t GetStat() { return fStat; }
64
65 Int_t GetMod() { return fMod; }
66
68 {
69 if (fSubPad == -1 && fType == -1 && fMod == -1)
70 return fStat;
71 else
72 return -1;
73 }
74
75 private:
83};
84
86{
87 public:
89
91
92 void ProcessHistos();
93
94 // Useful setters ...
95 // See explanations below when introducing isActive data member ...
96 void SetActive(Int_t currentAnal) { isActive[currentAnal] = kTRUE; }
97
99
101
103
105
107
109
110 TH1F*** GetEtaLambda() { return hEtaLambda; }
111
113
114 private:
116
117 TH1F***** hGemStripInfo; // [pureMc or afterEmbedding][stat][mod][lay] --> strip number
118 TH1F***** hSiliconStripInfo; // [pureMc or afterEmbedding][stat][mod][lay] --> strip number
119
122
125
127
129
130 // List of active anals.
131 /*
132 * 0 - BmnLambdaEmbeddingQa::DoDigiAnalysis()
133 * 1 - BmnLambdaEmbeddingQa::DoEffAnalysis()
134 */
136
138};
139
140#endif
bool Bool_t
int Int_t
constexpr Bool_t kTRUE
#define ClassDef(name, id)
BmnInnerTrackerGeometryDraw * geoms
HistoPlacement(TString canvName, Int_t pad, Int_t subPad, TString det, Int_t type, Int_t stat, Int_t mod)
HistoPlacement(TString canvName, Int_t pad, TString det, Int_t stat)
Definition json.hpp:4446