PandaRoot
PndMyAnalysisTask.h
Go to the documentation of this file.
1 #ifndef PndMyAnalysisTask_H
2 #define PndMyAnalysisTask_H 1
3 
4 #include "FairTask.h"
5 #include <map>
6 #include <string>
7 
8 class TClonesArray;
9 class TObjectArray;
10 class TH1F;
11 class TH2F;
12 
14 class PndAnalysis;
15 class RhoCandList;
16 class TStopwatch;
17 class RhoTuple;
18 
19 class PndMyAnalysisTask : public FairTask {
20 
21  public:
22  typedef std::map<Int_t, Float_t> mapper;
23 
26 
29 
31  virtual InitStatus Init();
32 
34  virtual void Exec(Option_t *opt);
35 
36  virtual void Finish();
37  // void CreateStructure();
38 
39  protected:
40  int evcount;
42 
43  // **** mass selectors for the resonances/composites
44  //
45 
46  private:
47  void FillMassHisto(TH1F *h, RhoCandList &l);
48  int SelectPdgCode(RhoCandList &mct, RhoCandList &l);
49 
50  RhoMassParticleSelector *jpsiMassSel;
51 
53  TH1F *hjpsim_nopid;
54  TH1F *hpsim_nopid;
55  TH1F *hjpsim_lpid;
56  TH1F *hpsim_lpid;
57  TH1F *hjpsim_tpid;
58  TH1F *hpsim_tpid;
59 
60  TH1F *hjpsim_ftm;
61  TH1F *hpsim_ftm;
62  TH1F *hjpsim_nm;
63  TH1F *hpsim_nm;
64 
65  TH1F *hjpsim_diff;
66  TH1F *hpsim_diff;
67 
68  TH1F *hjpsim_vf;
69  TH1F *hjpsim_4cf;
70  TH1F *hjpsim_mcf;
71 
72  TH1F *hjpsi_chi2_vf;
73  TH1F *hpsi_chi2_4c;
74  TH1F *hjpsi_chi2_mf;
75 
76  TH2F *hvpos;
77 
78  RhoTuple *ntp;
79  RhoTuple *ntp2;
80 
81  /* TH1F *hjpsimass;
82  TH1F *hpsimass;*/
83 
84  PndAnalysis *theAnalysis;
85  TStopwatch *timer;
86 
88  virtual void SetParContainers();
89 
90  ClassDef(PndMyAnalysisTask, 1);
91 };
92 
93 #endif
virtual void Finish()
virtual void Exec(Option_t *opt)
std::map< Int_t, Float_t > mapper
virtual InitStatus Init()