Message: GPS for gamma ray spectrum from radioactive isotope Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question GPS for gamma ray spectrum from radioactive isotope 

Forum: Particles
Date: 07 Feb, 2011
From: benny <benny>

how can i use GPS for simulating gamma ray spectrum
 from radioactive isotopes like
Am-241
Co-57
Cs-137
etc

in my PrimaryGeneratorAction.cc ---------------------------------------------------------------------------

#include "G4Event.hh"

#include "G4GeneralParticleSource.hh"
#include "globals.hh"

#include "G4ParticleDefinition.hh"
#include "G4ParticleGun.hh"
#include "G4ParticleTable.hh"

BeamTestPrimaryGeneratorAction::BeamTestPrimaryGeneratorAction()
{
   particleGun = new G4GeneralParticleSource();

  }

BeamTestPrimaryGeneratorAction::~BeamTestPrimaryGeneratorAction()
{
  delete particleGun;
}

void BeamTestPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
{
  particleGun->GeneratePrimaryVertex(anEvent);
}

---------------------------------------------------------------------------

In my MACRO file ..

---------------------------------------------------------------------------

#Co-60 /gps/position 0 0 0 /gps/energy 0 keV /gps/particle ion /gps/ion 27 60 0 0

#/run/beamOn 1000

---------------------------------------------------------------------------

after running this macro .. i can not see any gamma ray in my visualisation

can any one please suggest ..where i am dooing wrong

Thank you

P.S. i am using geant4_9_3_p01 version

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

1 None: Re: GPS for gamma ray spectrum from radioactive isotope   (michel maire - 08 Feb, 2011)
1 None: Re: GPS for gamma ray spectrum from radioactive isotope   (benny - 09 Feb, 2011)
(_ None: Re: GPS for gamma ray spectrum from radioactive isotope   (michel maire - 09 Feb, 2011)
(_ None: Re: GPS for gamma ray spectrum from radioactive isotope   (benny - 10 Feb, 2011)
(_ None: Re: GPS for gamma ray spectrum from radioactive isotope   (michel maire - 10 Feb, 2011)
2 Question: Re: GPS for gamma ray spectrum from radioactive isotope   (Aurelien Perier - 10 Feb, 2012)
1 None: Re: GPS for gamma ray spectrum from radioactive isotope   (michel maire - 11 Feb, 2012)
(_ None: Re: GPS for gamma ray spectrum from radioactive isotope   (Aurelien Perier - 13 Feb, 2012)
(_ None: Re: GPS for gamma ray spectrum from radioactive isotope   (michel maire - 14 Feb, 2012)
3 Question: Re: GPS for gamma ray spectrum from radioactive isotope   (Aurelien Perier - 10 Feb, 2012)
4 None: Re: GPS for gamma ray spectrum from radioactive isotope   (Andrew Pollitt - 02 Jun, 2014)
1 Idea: Re: GPS for gamma ray spectrum from radioactive isotope   (benny - 04 Jun, 2014)
 Add Message Add Message
to: "GPS for gamma ray spectrum from radioactive isotope"

 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 ]