BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnTriggerEfficiencyRun8.h
Go to the documentation of this file.
1#ifndef BMNTRIGEFFRUN8_H
2#define BMNTRIGEFFRUN8_H 1
3
4#include "BmnTrigInfoDst.h"
5#include "CbmVertex.h"
6
7#include <TChain.h>
8#include <TFile.h>
9#include <TH2D.h>
10#include <TNamed.h>
11#include <TString.h>
12#include <TTree.h>
13
14using namespace std;
15
17{
18 public:
22 BmnTrigInfoDst* trigInfo,
23 CbmVertex* primaryVertex,
24 TClonesArray* tof400Hits,
25 TClonesArray* tof700Hits);
26
27 Bool_t IsValid() { return isValid; }
28 Int_t GetNBd() { return fNBd; }
29
30 Double_t GetBDEfficiency(Int_t runId, Int_t ntrPV);
31 Double_t GetFDEfficiency(Int_t runId, Int_t ntrPV);
33
34 // Input: ntrPV = PrimaryVertex.GetNTracks() from dst
35 // Returns true on success, false - error
36 // Returns efficiency and errors via arguments:
37 // eff - efficiency of BD*FD, statErr - statistical error,
38 // systErr - systematic error, errSystErr - error of systematic error
39 //
40 // See use example in macro/physics/trigger/CheckTriggerEfficiencyInterfaceRun8.C
42 Int_t ntrPV,
43 Double_t& eff,
44 Double_t& statErr,
45 Double_t& systErr,
46 Double_t& errSystErr);
47 Bool_t GetTriggerEfficiencyWithErrors(Double_t& eff, Double_t& statErr, Double_t& systErr, Double_t& errSystErr);
48
49 // Returns true on success, false - error
50 // Returns flux rejection factor due pile up (BC2) cut and its error via arguments
51 //
52 // See use example in macro/physics/trigger/CheckTriggerEfficiencyInterfaceRun8.C
57
59 {
60 if (fEffFile1)
61 delete fEffFile1;
62 if (fEffFile2)
63 delete fEffFile2;
64 if (fEffFile3)
65 delete fEffFile3;
66 if (fDstFile)
67 delete fDstFile;
68 }
69
70 private:
72
82
89
94
95 Double_t GetEfficiencyOrError(TH2D* hist, Int_t runId, Int_t ntrPV, Bool_t isEff);
97 void SetBC2IntCutByRun(Int_t runId);
99 void SetFDPeakLimitByRun(Int_t runId);
100 Int_t GetBC2Int(Int_t leftEl, Int_t rightEl);
104 Bool_t HasDistantPileup(TClonesArray* hits, Int_t threshold);
105
107};
108
109#endif
bool Bool_t
int Int_t
double Double_t
#define ClassDef(name, id)
Int_t GetBC2Int(Int_t leftEl, Int_t rightEl)
Double_t GetFDEfficiency(Int_t runId, Int_t ntrPV)
Double_t GetEfficiencyOrError(TH2D *hist, Int_t runId, Int_t ntrPV, Bool_t isEff)
Int_t GetMaxTofHitsInBin(TClonesArray *hits)
Double_t GetTriggerEfficiency(Int_t runId, Int_t ntrPV)
Bool_t GetFluxRejectionFactorWithError(Int_t runId, Double_t &factor, Double_t &err)
Bool_t GetTriggerEfficiencyWithErrors(Int_t runId, Int_t ntrPV, Double_t &eff, Double_t &statErr, Double_t &systErr, Double_t &errSystErr)
Double_t GetBDEfficiency(Int_t runId, Int_t ntrPV)
Bool_t HasDistantPileup(TClonesArray *hits, Int_t threshold)
CbmVertex.h.
Definition CbmVertex.h:21
friend friend class TClonesArray
Definition json.hpp:4446