Message: GPS in version geant4.9.4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None GPS in version geant4.9.4 

Forum: Particles
Date: 27 Mar, 2011
From: Davinder Siwal <Davinder Siwal>

Hii Geant4 users

I would like to throw the gammas at diffrent angle w.r.t detector surface norma normal for that i am trying to use gps command but it shows an error

Here is my primarygeneratorction file

#include "PlanarPrimaryGeneratorAction.hh"

#include "G4Event.hh"
#include "G4ParticleGun.hh"
#include "G4GeneralParticleSource.hh"

PlanarPrimaryGeneratorAction::PlanarPrimaryGeneratorAction()
{
  particleGun = new G4ParticleGun();
}

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

void PlanarPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent) {

  particleGun->GeneratePrimaryVertex(anEvent);
}

Here is my Planar.mac file

/gps/particle gamma /gps/pos/type Point /gps/pos/centre 0 0 0 mm /gps/direction 1 0 0

/control/verbose 2 /run/verbose 2 /tracking/verbose 1

#
# Create a scene handler for a specific graphics system
# (Edit the next line(s) to choose another graphics system)
#
#/vis/open OGLIX 600x600-0+0
#/vis/open HepRepFile
#
####/vis/open OGLSXm
####/vis/open HepRepXML
#
####/vis/open DAWNFILE
#
# draw scene
#
/vis/drawVolume # /vis/viewer/set/viewpointThetaPhi 90 100 deg /vis/viewer/zoom 1.4
#
# for drawing the tracks
/vis/scene/add/trajectories smooth
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
# for drawing the hits, uncomment next line
# /vis/scene/add/hits
# (if you prefer refreshing each event, comment out next line)
/vis/scene/endOfEventAction accumulate # /run/beamOn 1

and here is the output of my terminal

*************************************************************
 Geant4 version Name: geant4-09-04    (17-December-2010)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************

Visualization Manager instantiating with verbosity "warnings (3)"... Visualization Manager initialising... Registering graphics systems...

You have successfully registered the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  gMocrenFile (gMocrenFile)
  FukuiRenderer (DAWN)
  OpenGLStoredXm (OGL)
  OpenGLImmediateXm (OGLI)
  OpenGLStoredXm (OGLS)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  OpenGLImmediateXm (OGLIXm)
  OpenGLStoredXm (OGLSXm)
  RayTracerX (RayTracerX)
  VRML1 (VRML1)
  VRML2 (VRML2)

Registering model factories...

You have successfully registered the following model factories.
Registered model factories:
  generic
  drawByCharge
  drawByParticleID
  drawByOriginVolume
  drawByAttribute

Registered filter factories:
  chargeFilter
  particleFilter
  originVolumeFilter
  attributeFilter

The material defined are :

***** Table : Nb of materials = 7 *****

 Material:      Air     density:  1.290 mg/cm3  RadL: 285.161 m    Nucl.Int.Length: 662.904 m    Imean:  85.703 eV   temperature: 273.15 K  pressure:   1.00 atm   --->  Element: Nitrogen (N)   Z =  7.0   N =  14.0   A =  14.01 g/mole  ElmMassFraction:  70.00 %  ElmAbundance  72.71 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  30.00 %  ElmAbundance  27.29 %

 Material:    Scint     density:  7.400 g/cm3   RadL:   1.177 cm   Nucl.Int.Length:  20.531 cm   Imean: 399.126 eV
   --->  Element: Lutetium (Lu)   Z = 71.0   N = 175.0   A = 175.01 g/mole  ElmMassFraction:  71.00 %  ElmAbundance  22.22 %
   --->  Element: Silicon (Si)   Z = 14.0   N =  28.0   A =  28.01 g/mole  ElmMassFraction:   7.00 %  ElmAbundance  13.69 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  18.00 %  ElmAbundance  61.62 %
   --->  Element: Yttrium (Y)   Z = 39.0   N =  88.9   A =  88.90 g/mole  ElmMassFraction:   4.00 %  ElmAbundance   2.46 %

 Material:     LYSO     density:  7.400 g/cm3   RadL:   1.177 cm   Nucl.Int.Length:  20.537 cm   Imean: 399.323 eV
   --->  Element: Lutetium (Lu)   Z = 71.0   N = 175.0   A = 175.01 g/mole  ElmMassFraction:  70.87 %  ElmAbundance  22.21 %
   --->  Element: Silicon (Si)   Z = 14.0   N =  28.0   A =  28.01 g/mole  ElmMassFraction:   6.99 %  ElmAbundance  13.68 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  17.97 %  ElmAbundance  61.58 %
   --->  Element: Yttrium (Y)   Z = 39.0   N =  88.9   A =  88.90 g/mole  ElmMassFraction:   3.99 %  ElmAbundance   2.46 %
   --->  Element: Cerium (Ce)   Z = 58.0   N = 140.0   A = 140.00 g/mole  ElmMassFraction:   0.19 %  ElmAbundance   0.07 %

 Material:    Glass     density:  1.032 g/cm3   RadL:  42.538 cm   Nucl.Int.Length:  70.172 cm   Imean:  64.808 eV
   --->  Element: C (C)   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction:  91.53 %  ElmAbundance  47.62 %
   --->  Element: H (H)   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction:   8.47 %  ElmAbundance  52.38 %

 Material:       Al     density:  2.700 g/cm3   RadL:   8.893 cm   Nucl.Int.Length:  38.860 cm   Imean: 166.000 eV
   --->  Element: Al ( )   Z = 13.0   N =  27.0   A =  26.98 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

 Material:     GaAs     density:  5.320 g/cm3   RadL:   5.167 cm   Nucl.Int.Length:  34.468 cm   Imean: 330.000 eV
   --->  Element: GaAs ( )   Z = 30.0   N = 144.6   A = 144.60 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

 Material: Galactic     density:  0.000 kg/m3   RadL: 204727512.315 pc   Nucl.Int.Length: 114561548.020 pc   Imean:  19.200 eV   temperature:   2.73 K  pressure:   0.00 atm
   --->  Element: Galactic ( )   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

REGISTER PARTICLES ARE :- Gamma Electron Positron

Hii Dav
 AddDiscreteProcess to OpticalPhoton
***** COMMAND NOT FOUND </gps/particle gamma> *****

***** Batch is interrupted!! *****

Can any body tell me where is the problem

with regard

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

1 Disagree: Re: GPS in version geant4.9.4   (Gumplinger Peter - 28 Mar, 2011)
(_ None: Re: GPS in version geant4.9.4   (Davinder Siwal - 29 Mar, 2011)
 Add Message Add Message
to: "GPS in version geant4.9.4"

 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 ]