include/ggmad.hh

00001 // gmad geometry and field map driver for BDSIM
00002 
00003 #ifndef _GGMAD_H
00004 #define _GGMAD_H
00005 
00006 
00007 #include "globals.hh"
00008 #include "BDSMaterials.hh"
00009 #include "G4LogicalVolume.hh"
00010 
00011 #include "G4FieldManager.hh"
00012 #include "G4ChordFinder.hh"
00013 #include "G4Mag_UsualEqRhs.hh"
00014 #include "G4UserLimits.hh"
00015 #include "G4VisAttributes.hh"
00016 
00017 #include <fstream>
00018 
00019 class GGmadDriver {
00020 
00021 public:
00022   GGmadDriver(G4String);
00023   void Construct(G4LogicalVolume *marker);
00024 
00025 private:
00026   std::ifstream inputf;
00027   G4String getWord();
00028   void getParameter(G4double& x, G4String name, G4String lastToken);
00029   void getParameter(G4String& lval, G4String name, G4String lastToken);
00030   void error() {G4cout<<"ggmad parser: error in file format"<<G4endl;}
00031 };
00032 
00033 //void GetMaterial(G4Material *&theMaterial, G4String material);
00034 
00035 #endif

Generated on 27 Aug 2013 for BDSIM by  doxygen 1.4.7