PandaRoot
solution/PndTutThaiTask.h
Go to the documentation of this file.
1 #ifndef PndTutThaiTask_H
2 #define PndTutThaiTask_H 1
3 
4 #include "FairTask.h"
5 #include <map>
6 #include <string>
7 #include "TLorentzVector.h"
8 
9 class TClonesArray;
10 class TObjectArray;
11 class TH1F;
12 class TH2F;
13 
15 class PndAnalysis;
16 class RhoCandList;
17 class RhoTuple;
18 
19 class PndTutThaiTask : public FairTask {
20 
21  public:
22  // ** Default constructor
24 
25  // ** Destructor
27 
28  // ** Virtual method Init
29  virtual InitStatus Init();
30 
31  // ** Virtual method Exec
32  virtual void Exec(Option_t *opt);
33 
34  virtual void Finish();
35 
36  protected:
37  private:
38  // *** event counter
39  int fEvtCount;
40 
41  // *** mass selector for the J/psi
42  RhoMassParticleSelector *fJpsiMassSel;
43 
44  // *** a method
45  int SelectTruePid(PndAnalysis *ana, RhoCandList &l);
46 
47  // *** declare some histograms
48  TH1F *hjpsim_all;
49  TH1F *hpsim_all;
50 
51  TH1F *hjpsim_lpid;
52  TH1F *hpsim_lpid;
53 
54  TH1F *hjpsim_tpid;
55  TH1F *hpsim_tpid;
56 
57  TH1F *hjpsim_trpid;
58  TH1F *hpsim_trpid;
59 
60  TH1F *hjpsim_ftm;
61  TH1F *hpsim_ftm;
62 
63  TH1F *hjpsim_nm;
64  TH1F *hpsim_nm;
65 
66  TH1F *hjpsim_diff;
67  TH1F *hpsim_diff;
68 
69  TH1F *hjpsim_vf;
70  TH1F *hjpsim_4cf;
71  TH1F *hjpsim_mcf;
72 
73  TH1F *hjpsi_chi2_vf;
74  TH1F *hpsi_chi2_4c;
75  TH1F *hjpsi_chi2_mf;
76 
77  TH1F *hjpsi_prob_vf;
78  TH1F *hpsi_prob_4c;
79  TH1F *hjpsi_prob_mf;
80 
81  TH2F *hvpos;
82 
83  // *** the initial 4-vector
84  TLorentzVector fIni;
85 
86  // *** the PndAnalysis object
87  PndAnalysis *fAnalysis;
88 
89  // *** Get parameter containers
90  virtual void SetParContainers();
91 
92  ClassDef(PndTutThaiTask, 1);
93 };
94 
95 #endif
virtual InitStatus Init()
virtual void Finish()
virtual void Exec(Option_t *opt)