Message: Is this a bug of GPS Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Is this a bug of GPS 

Forum: Particles
Date: 16 Feb, 2017
From: Huagang Yan <Huagang Yan>

I tried to use an energy spectrum for my planar particle source.
Following the examples of exgps, I used the following commands for energy 
distribution.

/gps/ene/type Arb
/gps/hist/type arb
/gps/hist/file spectrum160.dat

The content of spectrum160.dat looks like this:
0.018 0.000104
0.019 0.00024
0.02 0.00048
0.021 0.00084
0.022 0.00135
0.023 0.00200
0.024 0.00277
....
0.154 0.000582447
0.155 0.000517353
0.156 0.000453812
0.157 0.000379098
0.158 0.000249693
0.159 0.000123373
0.160 0.00002

The first column is energy, the second is weight. I am absolutely sure that there is no irrelevant characters in the file. However, I received the following error message after starting the program:

### Run 0 starts.
G4WT0 > ### Run 0 starts on worker thread 0.
G4WT0 > ... create Csv file : np2m70keV_nt_microdosimetry_t0.csv - done
G4WT0 > 
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : Event0302
      issued by : G4SPSEneDistribution::GenArbPointEnergies
Error: IntType unknown type
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------

G4WT0 > 
G4WT0 > *** G4Exception: Aborting execution ***
Aborted (core dumped)

Whether I use /gps/ene/type Arb or /gps/ene/type User, the above message appears. If I used 

/gps/hist/type energy
/gps/hist/file spectrum160.dat

The program can run smoothly. However, the spectrum specified in spectrum160.dat is not used at all.

Is this a bug of GPS?

Thanks,
Huagang.

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

1 Feedback: Re: Is this a bug of GPS   (jWiebe - 16 Feb, 2017)
(_ Ok: Re: Is this a bug of GPS   (Huagang Yan - 17 Feb, 2017)
 Add Message Add Message
to: "Is this a bug of GPS"

 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 ]