BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnLambdaQa.h
Go to the documentation of this file.
1/**
2 * \file BmnLambdaQa.h
3 * \brief FairTask for MC simulated lambda reconstruction performance calculation.
4 * \author Andrey Lebedev <andrey.lebedev@gsi.de> - original author for CBM experiment
5 * \author Sergey Merts <sergey.merts@gmail.com> - modifications for BMN experiment
6 * \author Alexander Lytaev <sas-lyt@ya.ru> - modifications for BMN experiment
7 * \date 2018 July
8 */
9
10#ifndef BMNLAMBDAQA_H_
11#define BMNLAMBDAQA_H_
12
13#include "BmnHistManager.h"
14#include "BmnParticlePairsInfo.h"
15#include "BmnSimulationReport.h"
16#include "FairTask.h"
17
18#include <string>
19#include <vector>
20
21using std::map;
22using std::string;
23using std::vector;
24class BmnHistManager;
25class TClonesArray;
26
27class BmnLambdaQa : public FairTask
28{
29 public:
31 /**
32 * \brief Destructor.
33 */
34
35 virtual ~BmnLambdaQa();
36
37 /**
38 * \brief Derived from FairTask.
39 */
40 virtual InitStatus Init();
41
42 /**
43 * \brief Derived from FairTask.
44 */
45 virtual void Exec(Option_t* opt);
46
47 /**
48 * \brief Derived from FairTask.
49 */
50 virtual void Finish();
51
52 // Geometry cuts
54 {
55 fDCA[0][0] = min;
56 fDCA[0][1] = max;
57 }
58
60 {
61 fDCA[1][0] = min;
62 fDCA[1][1] = max;
63 }
64
66 {
67 fDCA12[0] = min;
68 fDCA12[1] = max;
69 }
70
72 {
73 fPath[0] = min;
74 fPath[1] = max;
75 }
76
77 // Kinematical cuts
79 {
80 fMom[0][0] = min;
81 fMom[0][1] = max;
82 }
83
85 {
86 fMom[1][0] = min;
87 fMom[1][1] = max;
88 }
89
91 {
92 fEta[0][0] = min;
93 fEta[0][1] = max;
94 }
95
97 {
98 fEta[1][0] = min;
99 fEta[1][1] = max;
100 }
101
102 private:
104 string fOutputDir;
106 void CreateH1(const string& name,
107 const string& xTitle,
108 const string& yTitle,
109 Int_t nofBins,
110 Double_t minBin,
111 Double_t maxBin);
112 void CreateH2(const string& name,
113 const string& xTitle,
114 const string& yTitle,
115 const string& zTitle,
116 Int_t nofBinsX,
117 Double_t minBinX,
118 Double_t maxBinX,
119 Int_t nofBinsY,
120 Double_t minBinY,
121 Double_t maxBinY);
152
153 /*BmnLambdaQa(const BmnLambdaQa&) = delete;
154 BmnLambdaQa& operator=(const BmnLambdaQa&) = delete;*/
155
160 Int_t fNOfParticlePairsMC; // number of reconstructed particle pairs from MC data
161 Int_t fNOfParticlePairsMCAll; // number of reconstructed particle pair from MC data without any cuts
200
203
208
212
213 static Int_t fCurrentEvent;
214
215 // Kinematic cuts
216 Double_t fMom[2][2]; // [2] --> (proton, pion), [2] --> (min, max)
217 Double_t fEta[2][2]; // Cuts on pseudorapidity
218
219 // Geometry cuts
220 Double_t fPath[2];
221 Double_t fDCA[2][2]; // [2] --> (proton, pion), [2] --> (min, max)
222 Double_t fDCA12[2];
223
225};
226
227#endif /* BMNLAMBDAQA_H_ */
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition P4_F32vec4.h:30
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition P4_F32vec4.h:31
bool Bool_t
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Histogram manager.
void CreateTwoDimensionalRecProtonsRecEfficiencyHistograms()
void CreateRecMesonsReconstructionEfficiencyHistograms()
void SetDCA12(Double_t min, Double_t max)
Definition BmnLambdaQa.h:65
Int_t fMesonsThetaRangeMax
void CreateReconstructedParticlePairsHistograms()
void CreateReconstructedParticlePairsFromMCDataHistograms()
Int_t fNOfParticlePairsMC
Int_t fMesonsThetaRRangeMax
void SetEta1(Double_t min, Double_t max)
Definition BmnLambdaQa.h:90
void SetPath(Double_t min, Double_t max)
Definition BmnLambdaQa.h:71
TClonesArray * fSSDPoints
void CreateNumberOfLambdaDecayMesonsHistograms()
void CreateTwoDimensionalReconstructedParticlePairsHistograms()
virtual InitStatus Init()
Derived from FairTask.
void CreateH2(const string &name, const string &xTitle, const string &yTitle, const string &zTitle, Int_t nofBinsX, Double_t minBinX, Double_t maxBinX, Int_t nofBinsY, Double_t minBinY, Double_t maxBinY)
void CreateTwoDimensionalRecEfficiencyHistograms()
TClonesArray * fGlobalTracks
Double_t fDCA[2][2]
Int_t fNOfParticlePairsWithMatchedLambda
Int_t fNOfParticlePairs
Int_t fMesonsThetaRRangeMin
Double_t fEta[2][2]
Int_t fDCA12YRangeMin
Int_t fDCA12XRangeMax
virtual void Exec(Option_t *opt)
Derived from FairTask.
Int_t fMesonsThetaRangeMin
Int_t fLambdaThetaRangeMax
Bool_t fUseRecoFile
Int_t fMesonsEtaRangeMin
Int_t fLambdaThetaRRangeMin
void CreateRecProtonsReconstructionEfficiencyHistograms()
void CreateNumberOfNotReconstructedLambdaHistograms()
void SetEta2(Double_t min, Double_t max)
Definition BmnLambdaQa.h:96
void SetDCA2(Double_t min, Double_t max)
Definition BmnLambdaQa.h:59
Int_t fDCA1RangeMax
void CreateTwoDimensionalNumberOfReconstructedMesonsHistograms()
Int_t fNOfParticlePairsMCAll
virtual void Finish()
Derived from FairTask.
void CreateH1(const string &name, const string &xTitle, const string &yTitle, Int_t nofBins, Double_t minBin, Double_t maxBin)
TClonesArray * fMCTracks
Int_t fNReconstructable
Int_t fProtonsPRangeMax
void CreateNumberOfReconstrcutedLambdaHistograms()
void CreateTwoDimensionalRealRecEfficiencyHistograms()
Int_t fDCA2RangeMin
Bool_t fUseMCFile
void CreateNumberOfLambdaHistograms()
Int_t fDCA1RangeMin
Int_t fProtonsThetaRangeMax
void CreateReconstructedParticlePairsFromMCDataWOCutsHistograms()
Int_t fLambdaThetaRRangeMax
Int_t fLambdaEtaRangeMax
BmnHistManager * fHM
void CreateTwoDimensionalReconstructedParticlePairsFromMCDataHistograms()
Int_t fPathRangeMax
void CreateTwoDimensionalFakeLambdaHistograms()
Int_t fNLambdas
void SetMom2(Double_t min, Double_t max)
Definition BmnLambdaQa.h:84
void SetMom1(Double_t min, Double_t max)
Definition BmnLambdaQa.h:78
Int_t fProtonsPRangeMin
Double_t fPath[2]
Int_t fMesonsPRangeMin
Int_t fNOfLambdasParticlePairsMC
void CreateFakeLambdaHistograms()
Int_t fLambdaThetaRangeMin
Int_t fProtonsEtaRangeMax
TClonesArray * fParticlePair_RECO
Int_t fDCA12XRangeMin
void CreateReconstructionEfficiencyHistograms()
Int_t fDCA2RangeMax
void CreateReconstructedParticlePairsWOCutsHistograms()
Int_t fPathRangeMin
TClonesArray * fParticlePair_MC
void ReadDataBranches()
void CreateTwoDimensionalRecMesonsRecEfficiencyHistograms()
TClonesArray * fParticlePair
Int_t fProtonsEtaRangeMin
Int_t fMesonsEtaRangeMax
virtual ~BmnLambdaQa()
Destructor.
void CreateRecProtonsRecEfficiencyHistograms()
Double_t fMom[2][2]
Int_t fProtonsThetaRRangeMin
void CreateTwoDimensionalReconstructedParticlePairsWOCutsHistograms()
Double_t fDCA12[2]
void CreateNumberOLambdaDecayProtonsHistograms()
Int_t fInvMassMin
string fOutputDir
void SetDCA1(Double_t min, Double_t max)
Definition BmnLambdaQa.h:53
Int_t fInvMassMax
void CreateLambdaRecEfficiencyHistograms()
void CreateTwoDimensionalReconstructedParticlePairsFromMCDataWOCutsHistograms()
TClonesArray * fSiliconPoints
void CreateNumberOfReconstrcutedRecProtonHistograms()
Int_t fLambdaPRangeMax
Int_t fLambdaEtaRangeMin
static Int_t fCurrentEvent
Int_t fProtonsThetaRangeMin
Int_t fDCA12YRangeMax
Int_t fMesonsPRangeMax
void CreateNumberOfReconstrcutedRecMesonsHistograms()
Int_t fLambdaPRangeMin
void CreateNumberOfReconstructableLambdaHistograms()
Int_t fProtonsThetaRRangeMax
void CreateRecMesonsRecEfficiencyHistograms()
void CreateTwoDimensionalNumberOfReconstructedProtonsHistograms()