Message: Optical Model Problems Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Optical Model Problems 

Forum: Processes Involving Optical Photons
Date: 23 Feb, 2015
From: Andrew Pollitt <Andrew Pollitt>


I have recieved a code which works on another persons version of Geant4 but doesn't work on mine. I have tried to include the optical photon model. However, when I 'make' my code, I get the following errors:

pollitt@jentschelpc2:~/Geant4Projects/OptSim$ make
[ 25%] Building CXX object CMakeFiles/optsim.dir/
[ 50%] Building CXX object CMakeFiles/optsim.dir/src/
[ 75%] Building CXX object CMakeFiles/optsim.dir/src/
[100%] Building CXX object CMakeFiles/optsim.dir/src/
/home/pollitt/Geant4Projects/OptSim/src/ In constructor ‘Physics::Physics()’:
/home/pollitt/Geant4Projects/OptSim/src/ error: cannot call member function ‘void G4Scintillation::SetScintillationYieldFactor(G4double)’ without object
/home/pollitt/Geant4Projects/OptSim/src/ error: cannot call member function ‘void G4Scintillation::SetTrackSecondariesFirst(G4bool)’ without object
/home/pollitt/Geant4Projects/OptSim/src/ In member function ‘void Physics::ConstructOp()’:
/home/pollitt/Geant4Projects/OptSim/src/ error: cannot call member function ‘void G4Scintillation::AddSaturation(G4EmSaturation*)’ without object
make[2]: *** [CMakeFiles/optsim.dir/src/] Error 1
make[1]: *** [CMakeFiles/optsim.dir/all] Error 2
make: *** [all] Error 2

Does anybody have any ideas? I have included G4Scintillation.hh in my Physics list.

Regards, Andy

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

1 Feedback: Re: Optical Model Problems   (Gumplinger Peter - 10 Mar, 2015)
 Add Message Add Message
to: "Optical Model Problems"

 Subscribe Subscribe

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