PandaRoot
PndHypGeCOSYBackgroundAna.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 /******************************************************
14 
15 Analysis Task created by M.Steinen steinen@kph.uni-mainz.de
16 Analysis of Gamma Simulation with hypGe detectors
17 *******************************************************/
18 
19 #ifndef PNDHYPGECOSYBACKGROUNDANA_H
20 #define PNDHYPGECOSYBACKGROUNDANA_H 1
21 
22 #include <FairTask.h>
23 #include <TH1D.h>
24 #include <TH2D.h>
25 #include <TVector3.h>
26 #include <TString.h>
27 #include <TClonesArray.h>
28 #include <TRandom.h>
29 #include <fstream>
30 #include <TGeoManager.h>
31 #include <TROOT.h>
32 //#include "PndHypGeCOSYBackgroundAnaStorage.h"
33 #include <TSpectrum.h>
34 #include <TF1.h>
35 #include <TCanvas.h>
36 
37 class PndHypGeCOSYBackgroundAna : public FairTask {
38  public:
40  PndHypGeCOSYBackgroundAna(Int_t nEvents);
42 
43  virtual InitStatus Init();
44  virtual void Exec(Option_t *opt);
45  void Finish();
46 
47  protected:
48  TGeoManager *fgeom;
49 
50  TClonesArray *fMcTr;
51  TClonesArray *fHyp;
52  TClonesArray *fHypGe;
53 
54  TH1D *hNHits;
55  TH1D *hCrystalHit;
58  TH1D *hNeutronEkin;
61 
68 
75 
77 
78  TCanvas *cNHits;
79  TCanvas *cCrystalHit;
80  TCanvas *cNeutronOrigin;
81  TCanvas *cCrystalOrigin;
82  TCanvas *cNeutronEkin;
85  TCanvas *cAllParticlesGe;
89  TCanvas *cGammaEkinOrigin;
90 
95 
96  TVector3 StartVertex;
98 
99  TVector3 NeutronMomentum;
100  Double_t NeutronEkin;
102  Double_t ParticleEkin;
103 
104  Long_t EvtCount;
106 
107  TString fName;
108 
109  // Analysis
110 
112 };
113 
114 #endif /* PNDHYPGECOSYBACKGROUNDANA_H */
ClassDef(PndHypGeCOSYBackgroundAna, 1)
virtual InitStatus Init()
virtual void Exec(Option_t *opt)