ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GammaRayTelAnalysis.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GammaRayTelAnalysis.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // ------------------------------------------------------------
28 // GEANT 4 class header file
29 // CERN Geneva Switzerland
30 //
31 //
32 // ------------ GammaRayTelAnalysis ------
33 // by R.Giannitrapani, F. Longo & G.Santin (30 nov 2000)
34 //
35 // 03.04.2013 F.Longo and L.Pandola
36 // - migrated to G4AnalysisManager
37 //
38 // 07.12.2001 A.Pfeiffer
39 // - integrated Guy's addition of the ntuple
40 //
41 // 06.12.2001 A.Pfeiffer
42 // - updating to new design (singleton)
43 //
44 // 22.11.2001 G.Barrand
45 // - Adaptation to AIDA
46 // -------------------------------------------------------------------
47 // Class description:
48 // Example of analysis in a simulation application (histograms, ntuples etc.)
49 // This class follows the singleton design pattern;
50 // it is responsible for the analysis management and algorithms
51 //
52 // -------------------------------------------------------------------//
53 
54 #ifndef GammaRayTelAnalysis_h
55 #define GammaRayTelAnalysis_h 1
56 
57 #include "globals.hh"
58 #include <vector>
59 #include "G4ThreeVector.hh"
60 
61 // uncomment g4xml.hh and comment g4root.hh for a XML-based output file
62 
63 #include "g4root.hh"
64 //#include "g4xml.hh"
65 
66 
69 
71 public:
72  virtual ~GammaRayTelAnalysis();
73 
74 public:
75 
76 
77  // void BeginOfRun(G4int n);
78 
79  void BeginOfRun();
80  void EndOfRun();
81  void EndOfEvent(G4int flag);
82 
83  void Init();
84  void Finish();
85 
86  void SetHisto2DMode(G4String str) {histo2DMode = str;};
88 
89  void InsertPositionXZ(double x, double z);
90  void InsertPositionYZ(double y, double z);
91  void InsertEnergy(double en);
92  void InsertHits(int nplane);
93 
94  void setNtuple(float E, float p, float x, float y, float z);
95 
97 
98 private:
99 
101 
102  //void plot1D(IHistogram1D* histo);
103  //void plot2D(IHistogram2D* histo);
104  void Plot();
105 
106 private:
108 
110 
113 
115 };
116 
117 
118 #endif