Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IORTInteractionParameters.hh
Go to the documentation of this file.
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 // This is the *BASIC* version of IORT, a Geant4-based application
27 //
28 // Main Authors: G.Russo(a,b), C.Casarino*(c), G.C. Candiano(c), G.A.P. Cirrone(d), F.Romano(d)
29 // Contributor Authors: S.Guatelli(e)
30 // Past Authors: G.Arnetta(c), S.E.Mazzaglia(d)
31 //
32 // (a) Fondazione Istituto San Raffaele G.Giglio, Cefalù, Italy
33 // (b) IBFM-CNR , Segrate (Milano), Italy
34 // (c) LATO (Laboratorio di Tecnologie Oncologiche), Cefalù, Italy
35 // (d) Laboratori Nazionali del Sud of the INFN, Catania, Italy
36 // (e) University of Wallongong, Australia
37 //
38 // *Corresponding author, email to carlo.casarino@polooncologicocefalu.it
40 #ifndef IORTInteractionParameters_H
41 #define IORTInteractionParameters_H 1
42 
43 #include "G4EmCalculator.hh"
44 #include "G4NistMaterialBuilder.hh"
45 #include "G4NistElementBuilder.hh"
46 
47 #ifdef G4ANALYSIS_USE_ROOT
48 #include "TROOT.h"
49 #include "TCanvas.h"
50 #include "TFile.h"
51 #include "TH1F.h"
52 #include "TH2F.h"
53 #include "TGraph.h"
54 #include "TLegend.h"
55 #include "TLegendEntry.h"
56 #include "TStyle.h"
57 #endif
58 
62 class G4Material;
63 
65 {
66 public:
67 
70 
71  // Get data for Mass SP
72  // G4NistMaterialBuilder class materials
73  // User must provide: material kinetic energy lower limit, kinetic energy upper limit, number of points to retrieve,
74  // [particle], [output filename].
75 
76  G4bool GetStoppingTable (const G4String& vararg);
78  const G4ParticleDefinition*,
79  const G4Material*,
80  G4double density = 0.);
81 #ifdef G4ANALYSIS_USE_ROOT
82  void PlotStopping(const G4String&);
83 #endif
84  void ListOfNistMaterials (const G4String& vararg);
85  void BeamOn();
86  bool ParseArg (const G4String& vararg);
87 
88 private:
89  G4Material* GetNistMaterial(G4String material);
90  G4NistElementBuilder* nistEle;
91  G4NistMaterialBuilder* nistMat;
92  std::ofstream outfile;
93  std::ostream data;
94  G4Material* Pmaterial;
95  IORTParameterMessenger* pMessenger;
96  bool beamFlag;
97 
98 #ifdef G4ANALYSIS_USE_ROOT
99  TCanvas *theRootCanvas;
100  TGraph *theRootGraph;
101  TAxis *axisX, *axisY;
102 #endif
103  G4double kinEmin, kinEmax, npoints;
104  G4String particle, material, filename;
105  G4double dedxtot, density;
106  std::vector<G4double> energy;
107  std::vector<G4double> massDedx;
108 
109 };
110 #endif
111 
void ListOfNistMaterials(const G4String &vararg)
G4double GetStopping(G4double energy, const G4ParticleDefinition *, const G4Material *, G4double density=0.)
bool ParseArg(const G4String &vararg)
const XML_Char const XML_Char * data
Definition: expat.h:268
bool G4bool
Definition: G4Types.hh:79
G4bool GetStoppingTable(const G4String &vararg)
double G4double
Definition: G4Types.hh:76