Changeset 1313 for trunk/examples/advanced/hadrontherapy/include/HadrontherapyInteractionParameters.hh
- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/hadrontherapy/include/HadrontherapyInteractionParameters.hh
r1230 r1313 34 34 #include "G4NistElementBuilder.hh" 35 35 36 #ifdef G4ANALYSIS_USE_ROOT 37 #include "TROOT.h" 38 #include "TCanvas.h" 39 #include "TFile.h" 40 #include "TH1F.h" 41 #include "TH2F.h" 42 #include "TGraph.h" 43 #include "TLegend.h" 44 #include "TLegendEntry.h" 45 #include "TStyle.h" 46 #endif 47 36 48 class HadrontherapyDetectorConstruction; 37 49 class HadrontherapyParameterMessenger; 50 class G4ParticleDefinition; 51 class G4Material; 52 38 53 class HadrontherapyInteractionParameters : public G4EmCalculator 39 54 { 40 55 public: 41 56 42 HadrontherapyInteractionParameters( );43 57 HadrontherapyInteractionParameters(G4bool); 58 ~HadrontherapyInteractionParameters(); 44 59 45 // Get data for Mass SP (MeV*cm2/g)60 // Get data for Mass SP 46 61 // G4NistMaterialBuilder class materials 47 62 // User must provide: material kinetic energy lower limit, kinetic energy upper limit, number of points to retrieve, 48 63 // [particle], [output filename]. 49 64 50 bool GetStoppingTable (const G4String& vararg); 65 G4bool GetStoppingTable (const G4String& vararg); 66 G4double GetStopping (G4double energy, 67 const G4ParticleDefinition*, 68 const G4Material*, 69 G4double density = 0.); 70 #ifdef G4ANALYSIS_USE_ROOT 71 void PlotStopping(const G4String&); 72 #endif 51 73 void ListOfNistMaterials (const G4String& vararg); 52 74 void BeamOn(); … … 55 77 private: 56 78 G4Material* GetNistMaterial(G4String material); 57 58 79 G4NistElementBuilder* nistEle; 59 80 G4NistMaterialBuilder* nistMat; 60 G4double kinEmin, kinEmax, npoints;61 G4String particle, material, filename;62 81 std::ofstream outfile; 63 82 std::ostream data; 64 83 G4Material* Pmaterial; 65 G4double density;66 G4EmCalculator* emCal;67 84 HadrontherapyParameterMessenger* pMessenger; 68 85 bool beamFlag; 86 87 #ifdef G4ANALYSIS_USE_ROOT 88 TCanvas *theRootCanvas; 89 TGraph *theRootGraph; 90 TAxis *axisX, *axisY; 91 #endif 92 G4double kinEmin, kinEmax, npoints; 93 G4String particle, material, filename; 94 G4double dedxtot, density; 95 std::vector<G4double> energy; 96 std::vector<G4double> massDedx; 97 69 98 }; 70 99 #endif
Note: See TracChangeset
for help on using the changeset viewer.