PandaRoot
rho/PndTutAnaTask.h
Go to the documentation of this file.
1 #ifndef PndTutAnaTask_H
2 #define PndTutAnaTask_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 PndTutAnaTask : public FairTask {
20 
21  public:
22  // ** Default constructor
23  PndTutAnaTask();
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_pid04;
58  TH1F *hpsim_pid04;
59 
60  TH1F *hjpsim_trpid;
61  TH1F *hpsim_trpid;
62 
63  TH1F *hjpsim_ftm;
64  TH1F *hpsim_ftm;
65 
66  TH1F *hjpsim_nm;
67  TH1F *hpsim_nm;
68 
69  TH1F *hjpsim_diff;
70  TH1F *hpsim_diff;
71 
72  TH1F *hjpsim_vf;
73  TH1F *hjpsim_4cf;
74  TH1F *hjpsim_mcf;
75 
76  TH1F *hjpsi_chi2_vf;
77  TH1F *hpsi_chi2_4c;
78  TH1F *hjpsi_chi2_mf;
79 
80  TH1F *hjpsi_prob_vf;
81  TH1F *hpsi_prob_4c;
82  TH1F *hjpsi_prob_mf;
83 
84  TH2F *hvpos;
85 
86  // *** the initial 4-vector
87  TLorentzVector fIni;
88 
89  // *** the PndAnalysis object
90  PndAnalysis *fAnalysis;
91 
92  // *** Get parameter containers
93  virtual void SetParContainers();
94 
95  ClassDef(PndTutAnaTask, 1);
96 };
97 
98 #endif
virtual void Finish()
virtual void Exec(Option_t *opt)
virtual InitStatus Init()