49 G4String filePot = fileName +
"_pot.txt";
50 G4String fileEFX = fileName +
"_efx.txt";
51 G4String fileEFY = fileName +
"_efy.txt";
52 G4String fileAtD = fileName +
"_atd.txt";
53 G4String fileElD = fileName +
"_eld.txt";
71 G4String filePot = fileName +
"_pot.txt";
72 G4String fileEFX = fileName +
"_efx.txt";
73 G4String fileEFY = fileName +
"_efy.txt";
74 G4String fileAtD = fileName +
"_atd.txt";
75 G4String fileElD = fileName +
"_eld.txt";
78 fElectricFieldXElement[elementName] =
new G4ChannelingECHARM(fileEFX,CLHEP::eV/CLHEP::m);
79 fElectricFieldYElement[elementName] =
new G4ChannelingECHARM(fileEFY,CLHEP::eV/CLHEP::m);
103 std::ifstream vFileIn;
106 vFileIn.open(filename);
107 vFileIn >> points >> maximum;
113 for(
G4int i0=0;i0<points; i0++){
115 if(vTempX>maximumY) maximumY = vTempX;
116 if(vTempX<minimumY) minimumY = vTempX;
119 G4cout <<
"G4ChannelingMaterialData::SetBR()" <<
G4endl;
121 G4cout <<
"Point: " << points <<
" - Length [mm]: " << maximum <<
G4endl;
122 G4cout <<
"Maximum Radius [m]: " << maximumY <<
" - Minimum Radius [m]: " << minimumY <<
G4endl;
G4GLOB_DLL std::ostream G4cout
G4PhysicsVector * fVectorR
virtual void SetBR(const G4String &)
void SetFilenameElement(const G4String &, std::string)
G4ChannelingMaterialData(const G4String &)
virtual ~G4ChannelingMaterialData()
void SetFilename(const G4String &)
void PutValue(std::size_t index, G4double theValue)