CbmRoot
CbmAnaDimuonAnalysis.h
Go to the documentation of this file.
1 //----------------------------------------
2 //
3 // 2019 A. Senger a.senger@gsi.de
4 //
5 //----------------------------------------
6 
7 
8 #ifndef CBMANADIMUONANALYSIS_H_
9 #define CBMANADIMUONANALYSIS_H_ 1
10 
11 #include "FairTask.h"
12 #include <vector>
13 
16 class CbmTrackMatch;
17 class CbmMatch;
18 class CbmMuchTrack;
19 class CbmTofHit;
20 class CbmMuchGeoScheme;
24 class CbmVertex;
25 class TClonesArray;
26 class TLorentzVector;
27 class TString;
28 class TH1D;
29 class TH2D;
30 class TH3D;
31 class TProfile;
32 
33 class CbmAnaDimuonAnalysis : public FairTask {
34 public:
35  CbmAnaDimuonAnalysis(TString name, TString setup);
36 
37  virtual ~CbmAnaDimuonAnalysis() {}
38  virtual InitStatus Init();
39  virtual void Exec(Option_t* opt);
40  virtual void Finish();
41  virtual void SetParContainers();
42 
43  void SetChi2StsCut(Double_t cut) { fChi2StsCut = cut; }
44  void SetChi2MuchCut(Double_t cut) { fChi2MuchCut = cut; }
45  void SetChi2VertexCut(Double_t cut) { fChi2VertexCut = cut; }
46 
47  void SetNofMuchCut(Int_t cut) { fNofMuchCut = cut; }
48  void SetNofStsCut(Int_t cut) { fNofStsCut = cut; }
49  void SetNofTrdCut(Int_t cut) { fNofTrdCut = cut; }
50 
51  void SetSigmaTofCut(Int_t cut) { fSigmaTofCut = cut; }
52 
53  void UseCuts(Bool_t cut) { fUseCuts = cut; }
54  void UseMC(Bool_t useMC) { fUseMC = useMC; }
55 
56  // void SetHistoFileName(TString name) {fFileName = name; }
57  // void SetEffFileName(TString name) {fEffFileName = name; }
58 
59  void FillProfile(TProfile* profile, Double_t param, Bool_t trigger);
60 
61 private:
62  Int_t fEvent;
63  TClonesArray* fMCTracks;
64  TClonesArray* fStsTracks;
65  TClonesArray* fStsTrackMatches;
66  TClonesArray* fMuchTracks;
67  TClonesArray* fMuchTrackMatches;
68  TClonesArray* fGlobalTracks;
69  TClonesArray* fTrdTracks;
70  TClonesArray* fTofHit;
71  TClonesArray* fMuPlus;
72  TClonesArray* fMuMinus;
73  TClonesArray* fParticles;
74 
75  TTree* fInputTree;
76  TFile* fPlutoFile;
77 
81 
83 
84  Double_t fChi2StsCut;
85  Double_t fChi2MuchCut;
86  Double_t fChi2VertexCut;
87  Int_t fSigmaTofCut;
88 
89  Double_t fMass;
90 
91  Bool_t fUseCuts;
92  Bool_t fUseMC;
93 
94  Int_t fNofMuchCut;
95  Int_t fNofStsCut;
96  Int_t fNofTrdCut;
97 
98  Double_t p0min, p1min, p2min;
99  Double_t p0max, p1max, p2max;
100 
101  // TString fFileName;
102  // TString fEffFileName;
103  TString fPlutoFileName;
104  TString fSetupName;
105 
107 
112  TH3D* YPtM;
113 
114  TProfile *acc_P[4][3], *acc_Theta[4][3];
115  TProfile *effReco_P[4][3], *effReco_Theta[4][3];
116  TProfile *eff4pi_P[5][3], *eff4pi_Theta[5][3];
117 
118  TH1D* BgSup[6];
119 
122 
124 };
125 
126 #endif
CbmAnaDimuonAnalysis::fMass
Double_t fMass
Definition: CbmAnaDimuonAnalysis.h:89
CbmAnaDimuonAnalysis::fVertex
CbmVertex * fVertex
Definition: CbmAnaDimuonAnalysis.h:82
CbmAnaDimuonAnalysis::YPt_StsMuchAcc
TH2D * YPt_StsMuchAcc
Definition: CbmAnaDimuonAnalysis.h:108
CbmAnaDimuonAnalysis::acc_P
TProfile * acc_P[4][3]
Definition: CbmAnaDimuonAnalysis.h:114
CbmMatch
Definition: CbmMatch.h:22
CbmAnaDimuonAnalysis::fPlutoFile
TFile * fPlutoFile
Definition: CbmAnaDimuonAnalysis.h:76
CbmMuchGeoScheme
Definition: CbmMuchGeoScheme.h:43
CbmAnaMuonCandidate
Definition: CbmAnaMuonCandidate.h:14
CbmAnaDimuonAnalysis::YPt_StsMuchTrdTofAcc
TH2D * YPt_StsMuchTrdTofAcc
Definition: CbmAnaDimuonAnalysis.h:109
CbmAnaDimuonAnalysis::ClassDef
ClassDef(CbmAnaDimuonAnalysis, 2)
CbmAnaDimuonAnalysis::Exec
virtual void Exec(Option_t *opt)
Definition: CbmAnaDimuonAnalysis.cxx:507
CbmAnaDimuonAnalysis::Finish
virtual void Finish()
Definition: CbmAnaDimuonAnalysis.cxx:1067
CbmAnaDimuonAnalysis::SetNofMuchCut
void SetNofMuchCut(Int_t cut)
Definition: CbmAnaDimuonAnalysis.h:47
CbmTrdTrackFitterKF
Definition: CbmTrdTrackFitterKF.h:15
CbmAnaDimuonAnalysis::SetChi2StsCut
void SetChi2StsCut(Double_t cut)
Definition: CbmAnaDimuonAnalysis.h:43
CbmAnaDimuonAnalysis::fPlutoFileName
TString fPlutoFileName
Definition: CbmAnaDimuonAnalysis.h:103
CbmAnaDimuonAnalysis::CbmAnaDimuonAnalysis
CbmAnaDimuonAnalysis(const CbmAnaDimuonAnalysis &)
CbmTrackMatch
Definition: CbmTrackMatch.h:18
CbmAnaDimuonAnalysis::eff4pi_P
TProfile * eff4pi_P[5][3]
Definition: CbmAnaDimuonAnalysis.h:116
CbmAnaDimuonAnalysis::fStsTrackMatches
TClonesArray * fStsTrackMatches
Definition: CbmAnaDimuonAnalysis.h:65
CbmAnaDimuonAnalysis::eff4pi_Theta
TProfile * eff4pi_Theta[5][3]
Definition: CbmAnaDimuonAnalysis.h:116
CbmAnaDimuonAnalysis::YPt_VtxStsMuchTrdReco
TH2D * YPt_VtxStsMuchTrdReco
Definition: CbmAnaDimuonAnalysis.h:111
CbmAnaDimuonAnalysis::fMCTracks
TClonesArray * fMCTracks
Definition: CbmAnaDimuonAnalysis.h:63
CbmAnaDimuonAnalysis::fMuchTrackMatches
TClonesArray * fMuchTrackMatches
Definition: CbmAnaDimuonAnalysis.h:67
CbmAnaDimuonAnalysis::fChi2MuchCut
Double_t fChi2MuchCut
Definition: CbmAnaDimuonAnalysis.h:85
CbmAnaDimuonAnalysis::p0min
Double_t p0min
Definition: CbmAnaDimuonAnalysis.h:98
CbmAnaDimuonAnalysis::~CbmAnaDimuonAnalysis
virtual ~CbmAnaDimuonAnalysis()
Definition: CbmAnaDimuonAnalysis.h:37
CbmAnaDimuonAnalysis::fNofMuchCut
Int_t fNofMuchCut
Definition: CbmAnaDimuonAnalysis.h:94
CbmMuchTrack
Definition: CbmMuchTrack.h:16
CbmAnaDimuonAnalysis::SetChi2VertexCut
void SetChi2VertexCut(Double_t cut)
Definition: CbmAnaDimuonAnalysis.h:45
CbmAnaDimuonAnalysis::effReco_P
TProfile * effReco_P[4][3]
Definition: CbmAnaDimuonAnalysis.h:115
CbmAnaDimuonAnalysis::fChi2StsCut
Double_t fChi2StsCut
Definition: CbmAnaDimuonAnalysis.h:84
CbmAnaDimuonAnalysis::fNofStsCut
Int_t fNofStsCut
Definition: CbmAnaDimuonAnalysis.h:95
CbmAnaDimuonAnalysis::fMuPlus
TClonesArray * fMuPlus
Definition: CbmAnaDimuonAnalysis.h:71
CbmAnaDimuonAnalysis::SetSigmaTofCut
void SetSigmaTofCut(Int_t cut)
Definition: CbmAnaDimuonAnalysis.h:51
CbmAnaDimuonAnalysis::YPt_StsMuchTrdAcc
TH2D * YPt_StsMuchTrdAcc
Definition: CbmAnaDimuonAnalysis.h:108
CbmAnaDimuonAnalysis::fChi2VertexCut
Double_t fChi2VertexCut
Definition: CbmAnaDimuonAnalysis.h:86
CbmAnaDimuonAnalysis::fUseMC
Bool_t fUseMC
Definition: CbmAnaDimuonAnalysis.h:92
CbmAnaDimuonAnalysis::fFitter
CbmStsKFTrackFitter * fFitter
Definition: CbmAnaDimuonAnalysis.h:78
CbmStsKFTrackFitter
Definition: CbmStsKFTrackFitter.h:14
CbmGlobalTrackFitterKF
Definition: CbmGlobalTrackFitterKF.h:15
CbmAnaDimuonAnalysis::fTrdTracks
TClonesArray * fTrdTracks
Definition: CbmAnaDimuonAnalysis.h:69
CbmAnaDimuonAnalysis::YPt_VtxStsMuchReco
TH2D * YPt_VtxStsMuchReco
Definition: CbmAnaDimuonAnalysis.h:110
CbmVertex
Definition: CbmVertex.h:26
CbmAnaDimuonAnalysis::p2max
Double_t p2max
Definition: CbmAnaDimuonAnalysis.h:99
CbmAnaDimuonAnalysis::CbmAnaDimuonAnalysis
CbmAnaDimuonAnalysis(TString name, TString setup)
Definition: CbmAnaDimuonAnalysis.cxx:50
CbmAnaDimuonAnalysis::SetChi2MuchCut
void SetChi2MuchCut(Double_t cut)
Definition: CbmAnaDimuonAnalysis.h:44
CbmAnaDimuonAnalysis::fTofHit
TClonesArray * fTofHit
Definition: CbmAnaDimuonAnalysis.h:70
CbmAnaDimuonAnalysis::Init
virtual InitStatus Init()
Definition: CbmAnaDimuonAnalysis.cxx:98
CbmAnaDimuonAnalysis::fFitterTRD
CbmTrdTrackFitterKF * fFitterTRD
Definition: CbmAnaDimuonAnalysis.h:79
CbmAnaDimuonAnalysis::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmAnaDimuonAnalysis.h:68
CbmAnaDimuonAnalysis::operator=
CbmAnaDimuonAnalysis operator=(const CbmAnaDimuonAnalysis &)
CbmAnaDimuonAnalysis::p2min
Double_t p2min
Definition: CbmAnaDimuonAnalysis.h:98
CbmAnaDimuonAnalysis::SetParContainers
virtual void SetParContainers()
Definition: CbmAnaDimuonAnalysis.cxx:93
CbmAnaDimuonAnalysis::YPt_VtxReco
TH2D * YPt_VtxReco
Definition: CbmAnaDimuonAnalysis.h:110
CbmAnaDimuonAnalysis::fGeoScheme
CbmMuchGeoScheme * fGeoScheme
Definition: CbmAnaDimuonAnalysis.h:106
CbmAnaDimuonAnalysis::YPtM
TH3D * YPtM
Definition: CbmAnaDimuonAnalysis.h:112
CbmAnaDimuonAnalysis::YPt_VtxStsReco
TH2D * YPt_VtxStsReco
Definition: CbmAnaDimuonAnalysis.h:110
CbmAnaDimuonAnalysis::effReco_Theta
TProfile * effReco_Theta[4][3]
Definition: CbmAnaDimuonAnalysis.h:115
CbmAnaDimuonAnalysis
Definition: CbmAnaDimuonAnalysis.h:33
CbmAnaDimuonAnalysis::p0max
Double_t p0max
Definition: CbmAnaDimuonAnalysis.h:99
CbmAnaDimuonAnalysis::fMuMinus
TClonesArray * fMuMinus
Definition: CbmAnaDimuonAnalysis.h:72
CbmAnaDimuonAnalysis::SetNofTrdCut
void SetNofTrdCut(Int_t cut)
Definition: CbmAnaDimuonAnalysis.h:49
CbmAnaDimuonAnalysis::fStsTracks
TClonesArray * fStsTracks
Definition: CbmAnaDimuonAnalysis.h:64
CbmAnaDimuonAnalysis::YPt_pluto
TH2D * YPt_pluto
Definition: CbmAnaDimuonAnalysis.h:108
CbmAnaDimuonAnalysis::fNofTrdCut
Int_t fNofTrdCut
Definition: CbmAnaDimuonAnalysis.h:96
CbmAnaDimuonAnalysis::p1max
Double_t p1max
Definition: CbmAnaDimuonAnalysis.h:99
CbmAnaDimuonAnalysis::UseCuts
void UseCuts(Bool_t cut)
Definition: CbmAnaDimuonAnalysis.h:53
CbmAnaDimuonAnalysis::BgSup
TH1D * BgSup[6]
Definition: CbmAnaDimuonAnalysis.h:118
CbmAnaDimuonAnalysis::acc_Theta
TProfile * acc_Theta[4][3]
Definition: CbmAnaDimuonAnalysis.h:114
CbmTofHit
Definition: core/data/tof/CbmTofHit.h:26
CbmAnaDimuonAnalysis::fParticles
TClonesArray * fParticles
Definition: CbmAnaDimuonAnalysis.h:73
CbmAnaDimuonAnalysis::YPt_StsAcc
TH2D * YPt_StsAcc
Definition: CbmAnaDimuonAnalysis.h:108
CbmAnaDimuonAnalysis::fEvent
Int_t fEvent
Definition: CbmAnaDimuonAnalysis.h:62
CbmAnaDimuonAnalysis::FillProfile
void FillProfile(TProfile *profile, Double_t param, Bool_t trigger)
Definition: CbmAnaDimuonAnalysis.cxx:1058
CbmAnaDimuonAnalysis::p1min
Double_t p1min
Definition: CbmAnaDimuonAnalysis.h:98
CbmAnaDimuonAnalysis::fInputTree
TTree * fInputTree
Definition: CbmAnaDimuonAnalysis.h:75
CbmAnaDimuonAnalysis::fSigmaTofCut
Int_t fSigmaTofCut
Definition: CbmAnaDimuonAnalysis.h:87
CbmAnaDimuonAnalysis::UseMC
void UseMC(Bool_t useMC)
Definition: CbmAnaDimuonAnalysis.h:54
CbmAnaDimuonAnalysis::fFitterGlobal
CbmGlobalTrackFitterKF * fFitterGlobal
Definition: CbmAnaDimuonAnalysis.h:80
CbmAnaDimuonAnalysis::fMuchTracks
TClonesArray * fMuchTracks
Definition: CbmAnaDimuonAnalysis.h:66
CbmAnaDimuonAnalysis::YPt_VtxStsMuchTrdTofReco
TH2D * YPt_VtxStsMuchTrdTofReco
Definition: CbmAnaDimuonAnalysis.h:111
CbmAnaDimuonAnalysis::fSetupName
TString fSetupName
Definition: CbmAnaDimuonAnalysis.h:104
CbmAnaDimuonAnalysis::SetNofStsCut
void SetNofStsCut(Int_t cut)
Definition: CbmAnaDimuonAnalysis.h:48
CbmAnaDimuonAnalysis::fUseCuts
Bool_t fUseCuts
Definition: CbmAnaDimuonAnalysis.h:91