Message: Geant4 not making source of 0.025 eV Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Geant4 not making source of 0.025 eV 

Forum: Biasing and Scoring
Date: Feb 04, 11:06
From: Sanchit Sharma <Sanchit Sharma>

Greetings! I have issue that Geant4 is not defining 0.025 MeV Neutrons for me. I am using a GPS and my primarygenerator.cc looks like this:

#include "PrimaryGeneratorAction.hh"
#include <G4GeneralParticleSource.hh>
#include "Randomize.hh"

#include "G4Event.hh"
#include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh"
#include "G4SystemOfUnits.hh"
#include "G4SolidStore.hh"
#include "G4Tubs.hh"
using namespace std;
PrimaryGeneratorAction::PrimaryGeneratorAction()
{
    fGPS = new G4GeneralParticleSource();
}
PrimaryGeneratorAction::~PrimaryGeneratorAction()
{
    delete fGPS;
}
void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
{
    fGPS->GeneratePrimaryVertex(anEvent);
}

and my macro file is below:

/gps/pos/radius 0.5 cm /gps/pos/centre 0.704 0. 1. cm /gps/pos/type Beam /gps/pos/shape Circle /gps/ang/type beam2d /gps/ene/mono 0.025 eV /gps/energy 0.025 eV

I have tried almost everything to change this value but it always shows the default value of 1MeV, when I do /gps/source/list

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2019/02/04/11.05-99048-Capture.PNG

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

1 Feedback: Re: Geant4 not making source of 0.025 eV   (Jonathan Madsen - Feb 04, 18:40)
(_ Question: Re: Geant4 not making source of 0.025 eV   (Sanchit Sharma - Feb 08, 15:25)
 Add Message Add Message
to: "Geant4 not making source of 0.025 eV"

 Subscribe Subscribe

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