Message: Re: error linking linac example when it is modified to read iaea files Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: error linking linac example when it is modified to read iaea files 

Forum: Medical Applications
Re: None error linking linac example when it is modified to read iaea files (Balder)
Re: None Re: error linking linac example when it is modified to read iaea files (Miguel Cortes-Giraldo)
Date: 05 Feb, 2014
From: Balder <Balder>

Dear Miguel, Thanks for answering, you were right. I have rebuild and compile from scratch but now it appears three main errors directly related with the file G4IAEAphspReader.cc. I think they are about units like cm and MeV.

1. /src/G4IAEAphspReader.cc:655:47: error: ‘cm’ was not declared in this scope 
       particle_position = particle_position *= cm; // IAEA file stores in cm 

   install/include/Geant4/CLHEP/Units/SystemOfUnits.h:89:23: note:   ‘CLHEP::cm’ 
   static const double cm  = centimeter; 

2. /src/G4IAEAphspReader.cc:658:76: error: ‘MeV’ was not declared in this scope 
       G4double partEnergy = static_cast<G4double>   (*theEnergyVector[k])*MeV         + partMass; 

 /geant4.10-install/include/Geant4/CLHEP/Units/SystemOfUnits.h:156:23: note:   ‘CLHEP::MeV’ static const double MeV = megaelectronvolt; 

3. /src/G4IAEAphspReader.cc:658:67: error: invalid static_cast from type ‘std::vector<double>’ to type ‘G4double {aka double}’ 
       G4double partEnergy = static_cast<G4double>(*theEnergyVector)[k] + partMass; 

I am using now geant4 10.0 whit the default installation of CLHEP and fedora 20. Please, Could you advise me about this? Best regards, Balder.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Warning: Re: error linking linac example when it is modified to read iaea files   (Miguel Cortes-Giraldo - 05 Feb, 2014)
1 Agree: Re: error linking linac example when it is modified to read iaea files   (artur - 07 Feb, 2014)
2 None: Re: error linking linac example when it is modified to read iaea files   (heid - Mar 14, 03:19)
1 None: Re: error linking linac example when it is modified to read iaea files   (Miguel Cortes-Giraldo - Mar 19, 09:06)
(_ None: Re: error linking linac example when it is modified to read iaea files   (heid - Mar 20, 03:14)
(_ None: Re: error linking linac example when it is modified to read iaea files   (Miguel Cortes-Giraldo - Mar 20, 08:07)
(_ None: Re: error linking linac example when it is modified to read iaea files   (heid - Mar 22, 00:55)
 Add Message Add Message
to: "Re: error linking linac example when it is modified to read iaea files"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]