PandaRoot
rho/PndTutAnaTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PndTutAnaTask_H
14 #define PndTutAnaTask_H 1
15 
16 #include "FairTask.h"
17 #include <map>
18 #include <string>
19 #include "TLorentzVector.h"
20 
21 class TClonesArray;
22 class TObjectArray;
23 class TH1F;
24 class TH2F;
25 
27 class PndAnalysis;
28 class RhoCandList;
29 class RhoTuple;
30 
31 class PndTutAnaTask : public FairTask {
32 
33  public:
34  // ** Default constructor
35  PndTutAnaTask();
36 
37  // ** Destructor
39 
40  // ** Virtual method Init
41  virtual InitStatus Init();
42 
43  // ** Virtual method Exec
44  virtual void Exec(Option_t *opt);
45 
46  virtual void Finish();
47 
48  protected:
49  private:
50  // *** event counter
51  int fEvtCount;
52 
53  // *** mass selector for the J/psi
54  RhoMassParticleSelector *fJpsiMassSel;
55 
56  // *** a method
57  int SelectTruePid(PndAnalysis *ana, RhoCandList &l);
58 
59  // *** declare some histograms
60  TH1F *hjpsim_all;
61  TH1F *hpsim_all;
62 
63  TH1F *hjpsim_lpid;
64  TH1F *hpsim_lpid;
65 
66  TH1F *hjpsim_tpid;
67  TH1F *hpsim_tpid;
68 
69  TH1F *hjpsim_pid04;
70  TH1F *hpsim_pid04;
71 
72  TH1F *hjpsim_trpid;
73  TH1F *hpsim_trpid;
74 
75  TH1F *hjpsim_ftm;
76  TH1F *hpsim_ftm;
77 
78  TH1F *hjpsim_nm;
79  TH1F *hpsim_nm;
80 
81  TH1F *hjpsim_diff;
82  TH1F *hpsim_diff;
83 
84  TH1F *hjpsim_vf;
85  TH1F *hjpsim_4cf;
86  TH1F *hjpsim_mcf;
87 
88  TH1F *hjpsi_chi2_vf;
89  TH1F *hpsi_chi2_4c;
90  TH1F *hjpsi_chi2_mf;
91 
92  TH1F *hjpsi_prob_vf;
93  TH1F *hpsi_prob_4c;
94  TH1F *hjpsi_prob_mf;
95 
96  TH2F *hvpos;
97 
98  // *** the initial 4-vector
99  TLorentzVector fIni;
100 
101  // *** the PndAnalysis object
102  PndAnalysis *fAnalysis;
103 
104  // *** Get parameter containers
105  virtual void SetParContainers();
106 
107  ClassDef(PndTutAnaTask, 1);
108 };
109 
110 #endif
virtual void Finish()
virtual void Exec(Option_t *opt)
virtual InitStatus Init()