PandaRoot
PndMyAnalysisTask.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 PndMyAnalysisTask_H
14 #define PndMyAnalysisTask_H 1
15 
16 #include "FairTask.h"
17 #include <map>
18 #include <string>
19 
20 class TClonesArray;
21 class TObjectArray;
22 class TH1F;
23 class TH2F;
24 
26 class PndAnalysis;
27 class RhoCandList;
28 class TStopwatch;
29 class RhoTuple;
30 
31 class PndMyAnalysisTask : public FairTask {
32 
33  public:
34  typedef std::map<Int_t, Float_t> mapper;
35 
38 
41 
43  virtual InitStatus Init();
44 
46  virtual void Exec(Option_t *opt);
47 
48  virtual void Finish();
49  // void CreateStructure();
50 
51  protected:
52  int evcount;
54 
55  // **** mass selectors for the resonances/composites
56  //
57 
58  private:
59  void FillMassHisto(TH1F *h, RhoCandList &l);
60  int SelectPdgCode(RhoCandList &mct, RhoCandList &l);
61 
62  RhoMassParticleSelector *jpsiMassSel;
63 
65  TH1F *hjpsim_nopid;
66  TH1F *hpsim_nopid;
67  TH1F *hjpsim_lpid;
68  TH1F *hpsim_lpid;
69  TH1F *hjpsim_tpid;
70  TH1F *hpsim_tpid;
71 
72  TH1F *hjpsim_ftm;
73  TH1F *hpsim_ftm;
74  TH1F *hjpsim_nm;
75  TH1F *hpsim_nm;
76 
77  TH1F *hjpsim_diff;
78  TH1F *hpsim_diff;
79 
80  TH1F *hjpsim_vf;
81  TH1F *hjpsim_4cf;
82  TH1F *hjpsim_mcf;
83 
84  TH1F *hjpsi_chi2_vf;
85  TH1F *hpsi_chi2_4c;
86  TH1F *hjpsi_chi2_mf;
87 
88  TH2F *hvpos;
89 
90  RhoTuple *ntp;
91  RhoTuple *ntp2;
92 
93  /* TH1F *hjpsimass;
94  TH1F *hpsimass;*/
95 
96  PndAnalysis *theAnalysis;
97  TStopwatch *timer;
98 
100  virtual void SetParContainers();
101 
102  ClassDef(PndMyAnalysisTask, 1);
103 };
104 
105 #endif
virtual void Finish()
virtual void Exec(Option_t *opt)
std::map< Int_t, Float_t > mapper
virtual InitStatus Init()