Message: Physics List for Low energy Compton scattering Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Physics List for Low energy Compton scattering 

Forum: Physics List
Date: 18 Apr, 2015
From: Xiao Tong <Xiao Tong>

I am using mac pro to run Geant4.10.1 I want to know the doppler broadening effect of the Compton scattering. My physics list is as below:

#include "BeamTestPhysicsList.hh"
#include "G4BaryonConstructor.hh"
#include "G4BosonConstructor.hh"
#include "G4PenelopeComptonModel.hh"
#include "G4ComptonScattering.hh"
#include "G4Decay.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eIonisation.hh"
#include "G4eplusAnnihilation.hh"
#include "G4PenelopeGammaConversionModel.hh"
#include "G4GammaConversion.hh"
#include "G4PenelopeIonisationModel.hh"
#include "G4hIonisation.hh"
#include "G4IonConstructor.hh"
#include "G4LeptonConstructor.hh"
#include "G4MesonConstructor.hh"
#include "G4MuBremsstrahlung.hh"
#include "G4MuIonisation.hh"
#include "G4MuMultipleScattering.hh"
#include "G4hMultipleScattering.hh"
#include "G4eMultipleScattering.hh"
#include "G4MuPairProduction.hh"
#include "G4ParticleTypes.hh"
#include "G4PenelopePhotoElectricModel.hh"
#include "G4PhotoElectricEffect.hh"
#include "G4ProcessManager.hh"
#include "G4ShortLivedConstructor.hh"
....
....
if (particleName == "gamma") {
      // Gamma
      G4ComptonScattering* theComptonScattering = new G4ComptonScattering(); 
      theComptonScattering->SetModel(new G4PenelopeComptonModel()); 
      pmanager->AddDiscreteProcess(theComptonScattering);
When I make, I got the error as below&#65306;

/Users/xiaotong/LE1/src/BeamTestPhysicsList.cc:121:29: error: no member
      named 'SetModel' in 'G4ComptonScattering'; did you mean 'SetEmModel'?
      theComptonScattering->SetModel(new G4PenelopeComptonModel()); 
                            ^~~~~~~~
                            SetEmModel
/Users/JiangJY12/Documents/geant4/geant4.10.1-install/include/Geant4/G4VEmProcess.hh:227:8: note: 
      'SetEmModel' declared here
  void SetEmModel(G4VEmModel*, G4int index = 1);
       ^
1 error generated.
make[2]: *** [CMakeFiles/Compton_Geant4-rev1.dir/src/BeamTestPhysicsList.cc.o] Error 1
make[1]: *** [CMakeFiles/Compton_Geant4-rev1.dir/all] Error 2
make: *** [all] Error 2
But according to the official guide, for discrete processes, the method to invoke is SetModel().

When I change the SetModel to SetEmModel, I can make the program.
 I want to know what is the problem. Anyone can tell me. 
Thank you! 
And is the physics list I coded really included the doppler effect?

Thank you so much. Xiaotong

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

1 Idea: Re: Physics List for Low energy Compton scattering   (Vladimir Ivanchenko - 27 Apr, 2015)
 Add Message Add Message
to: "Physics List for Low energy Compton scattering"

 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 ]