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>

Hi,

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/optsim.cc.o
[ 50%] Building CXX object CMakeFiles/optsim.dir/src/Primaries.cc.o
[ 75%] Building CXX object CMakeFiles/optsim.dir/src/Geometry.cc.o
[100%] Building CXX object CMakeFiles/optsim.dir/src/Physics.cc.o
/home/pollitt/Geant4Projects/OptSim/src/Physics.cc: In constructor ‘Physics::Physics()’:
/home/pollitt/Geant4Projects/OptSim/src/Physics.cc:27:50: error: cannot call member function ‘void G4Scintillation::SetScintillationYieldFactor(G4double)’ without object
   G4Scintillation::SetScintillationYieldFactor(1.);
                                                  ^
/home/pollitt/Geant4Projects/OptSim/src/Physics.cc:28:49: error: cannot call member function ‘void G4Scintillation::SetTrackSecondariesFirst(G4bool)’ without object
   G4Scintillation::SetTrackSecondariesFirst(true);
                                                 ^
/home/pollitt/Geant4Projects/OptSim/src/Physics.cc: In member function ‘void Physics::ConstructOp()’:
/home/pollitt/Geant4Projects/OptSim/src/Physics.cc:88:48: error: cannot call member function ‘void G4Scintillation::AddSaturation(G4EmSaturation*)’ without object
     G4Scintillation::AddSaturation(emSaturation);
                                                ^
make[2]: *** [CMakeFiles/optsim.dir/src/Physics.cc.o] 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