BmnRoot
Loading...
Searching...
No Matches
BmnEfficiencyTools.h
Go to the documentation of this file.
1#ifndef BMNEFFTOOLS_H
2#define BMNEFFTOOLS_H 1
3
4#include <iostream>
5#include <TNamed.h>
6#include <TH2.h>
7#include <TH1.h>
8
10#include <UniDetectorParameter.h>
11#include <UniRun.h>
13
14#include <FairRunAna.h>
15#include <TGraph.h>
16#include <TEfficiency.h>
17
18using namespace std;
19
20class BmnEfficiencyTools : public TNamed {
21public:
22
24 BmnEfficiencyTools(FairRunAna*);
25 BmnEfficiencyTools(TString); // For MC use ...
26
27 void SetTargets(vector <TString> targs) {
28 fTargets = targs;
29 }
30
31 void SetTriggers(vector <TString> triggs) {
32 fTriggers = triggs;
33 }
34
35 void SetBeams(vector <TString> beams) {
36 fBeams = beams;
37 }
38
39 // Setting manual file list if needed ...
40
41 void SetFilelist(vector <Int_t> list) {
42 fManualList = list;
43 }
44
45 void SetDstPath(TString path) {
46 fDataPath = path;
47 }
48
49 void SetGeometryFile(TString file) {
50 fGeomFile = file;
51 }
52
53 void isL1Input(Bool_t flag) {
54 isL1 = flag;
55 }
56
57 // Setting Y-ranges ...
58 void SetGemYRanges(map <Int_t, vector <pair <Double_t, Double_t>>> rMap) {
59 fYRangesGem = rMap;
60 }
61
62 void SetSiliconYRanges(map <Int_t, vector <pair <Double_t, Double_t>>> rMap) {
63 fYRangesSilicon = rMap;
64 }
65
66 void SetOutputFile(TString f) {
67 fOutFile = f;
68 }
69
70 //-------
71
73 if (fInnTracker)
74 delete fInnTracker;
75
76 if (fRunTrigInfo)
77 delete fRunTrigInfo;
78 }
79
80 void Process();
81
82private:
83 FairRunAna* fAna;
84 BmnInnerTrackerGeometryDraw* fInnTracker;
85
86 Int_t fPeriod;
87 Int_t startRun;
88 Int_t finishRun;
89
90 vector <TString> fBeams;
91 vector <TString> fTargets;
92 vector <TString> fTriggers;
93
94 vector <Int_t> fManualList;
95
96 BmnDataTriggerInfo* fRunTrigInfo;
97
98 TString fDataPath;
99 TString fDstName;
100 TString fGeomFile;
101
102 TString fOutFile;
103
104 Bool_t isMc;
105 Bool_t isL1;
106
107 TClonesArray* effGem;
108 TClonesArray* effSilicon;
109
110 // Y-ranges (GEM, SILICON)
111 map <Int_t, vector <pair <Double_t, Double_t>>> fYRangesGem;
112 map <Int_t, vector <pair <Double_t, Double_t>>> fYRangesSilicon;
113
114public:
115 void DoNormalization(TH1D*);
116
117 ClassDef(BmnEfficiencyTools, 1)
118};
119
120#endif
float f
Definition P4_F32vec4.h:21
void isL1Input(Bool_t flag)
void SetDstPath(TString path)
void SetFilelist(vector< Int_t > list)
void SetBeams(vector< TString > beams)
void SetOutputFile(TString f)
void SetTargets(vector< TString > targs)
void SetGeometryFile(TString file)
void SetTriggers(vector< TString > triggs)
void SetGemYRanges(map< Int_t, vector< pair< Double_t, Double_t > > > rMap)
void SetSiliconYRanges(map< Int_t, vector< pair< Double_t, Double_t > > > rMap)
STL namespace.