PandaRoot
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  // #### EXERCISE: declare some histograms
60  TH1F *hjpsim_all;
61  TH1F *hpsim_all;
62  // ...
63 
64  // *** the initial 4-vector
65  TLorentzVector fIni;
66 
67  // *** the PndAnalysis object
68  PndAnalysis *fAnalysis;
69 
70  // *** Get parameter containers
71  virtual void SetParContainers();
72 
73  ClassDef(PndTutThaiTask, 1);
74 };
75 
76 #endif
virtual InitStatus Init()
virtual void Finish()
virtual void Exec(Option_t *opt)