Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:16

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // This is the *BASIC* version of Hadrontherapy, a Geant4-based application
0027 // See more at: http://g4advancedexamples.lngs.infn.it/Examples/hadrontherapy
0028 //
0029 // Visit the Hadrontherapy web site (http://www.lns.infn.it/link/Hadrontherapy) to request 
0030 // the *COMPLETE* version of this program, together with its documentation;
0031 // Hadrontherapy (both basic and full version) are supported by the Italian INFN
0032 // Institute in the framework of the MC-INFN Group
0033 //
0034 
0035 #ifndef HadrontherapyModulator_H
0036 #define HadrontherapyModulator_H 1
0037 
0038 #include "globals.hh"
0039 #include <fstream>
0040 #include "G4Material.hh"
0041 #include "G4ThreeVector.hh"
0042 #include "G4RotationMatrix.hh"
0043 #include "HadrontherapyModulatorMessenger.hh"
0044 
0045 class G4Tubs;
0046 class G4LogicalVolume;
0047 class G4VPhysicalVolume;
0048 
0049 
0050 class HadrontherapyModulator
0051 {
0052 public:
0053 
0054   HadrontherapyModulator();
0055   ~HadrontherapyModulator();
0056 
0057   void BuildModulator(G4VPhysicalVolume*);  
0058   void SetModulatorAngle(G4double);
0059   void SetModulatorMaterial(G4String);
0060   void SetModulatorPosition(G4ThreeVector);
0061   void SetModulatorInnerRadius(G4double);
0062   void SetModulatorOuterRadius(G4double);
0063   void  ModulatorDefaultProperties();
0064   void ModulatorPropertiesFromFile(G4String);
0065   void GetDataFromFile(G4String value);
0066   void  GetStepInformation();
0067   void BuildSteps();
0068 
0069 private:
0070   std::ifstream File;
0071    
0072    G4LogicalVolume * logicMotherMod ;
0073    G4VPhysicalVolume* physiMotherMod;
0074    
0075    G4Material* Mod0Mater;
0076   G4Material* ModMater;
0077 
0078   G4Tubs*           solidMod1;    
0079   G4LogicalVolume*  logicMod1;   
0080   G4VPhysicalVolume* physiMod1;
0081   
0082   G4Tubs*            solidMod2;   
0083   G4LogicalVolume*   logicMod2;   
0084   G4VPhysicalVolume* physiMod2;
0085   
0086   G4Tubs*            solidMod3;   
0087   G4LogicalVolume*   logicMod3;   
0088   G4VPhysicalVolume* physiMod3;
0089   
0090   G4Tubs*            solidMod4;  
0091   G4LogicalVolume*   logicMod4;  
0092   G4VPhysicalVolume* physiMod4;
0093   
0094   G4double pi;
0095   G4int StepNumbers;
0096   G4double* Weight;
0097   G4double* StepThickness;
0098   G4double* StartingAngle;
0099   G4double* SpanningAngle;
0100   G4ThreeVector* PositionMod;
0101   G4Tubs** solidMod;
0102   G4LogicalVolume** logicMod;
0103   G4VPhysicalVolume**   physiMod;
0104 
0105   G4RotationMatrix* rm;
0106   
0107   G4String FileName;
0108   HadrontherapyModulatorMessenger* ModulatorMessenger;
0109   G4double innerRadiusOfTheTube ;
0110   G4double outerRadiusOfTheTube ;
0111  
0112 
0113    
0114 };
0115 #endif