PandaRoot
solution/PndTutThaiTask.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 PndTutThaiTask_H
14 #define PndTutThaiTask_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 PndTutThaiTask : public FairTask {
32 
33  public:
34  // ** Default constructor
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_trpid;
70  TH1F *hpsim_trpid;
71 
72  TH1F *hjpsim_ftm;
73  TH1F *hpsim_ftm;
74 
75  TH1F *hjpsim_nm;
76  TH1F *hpsim_nm;
77 
78  TH1F *hjpsim_diff;
79  TH1F *hpsim_diff;
80 
81  TH1F *hjpsim_vf;
82  TH1F *hjpsim_4cf;
83  TH1F *hjpsim_mcf;
84 
85  TH1F *hjpsi_chi2_vf;
86  TH1F *hpsi_chi2_4c;
87  TH1F *hjpsi_chi2_mf;
88 
89  TH1F *hjpsi_prob_vf;
90  TH1F *hpsi_prob_4c;
91  TH1F *hjpsi_prob_mf;
92 
93  TH2F *hvpos;
94 
95  // *** the initial 4-vector
96  TLorentzVector fIni;
97 
98  // *** the PndAnalysis object
99  PndAnalysis *fAnalysis;
100 
101  // *** Get parameter containers
102  virtual void SetParContainers();
103 
104  ClassDef(PndTutThaiTask, 1);
105 };
106 
107 #endif
virtual InitStatus Init()
virtual void Finish()
virtual void Exec(Option_t *opt)