Problem 2005 - The macro "/gps/ene/min" doesn't work for arb. spectra
Summary: The macro "/gps/ene/min" doesn't work for arb. spectra
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: event (show other problems)
Version: 10.3
Hardware: All All
: P4 minor
Assignee: Andrea Dotti
URL:
Depends on:
Blocks:
 
Reported: 2017-09-13 10:58 CEST by Hualin Xiao
Modified: 2017-09-26 15:24 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Hualin Xiao 2017-09-13 10:58:20 CEST
Dear , 
It seems that the command "/gps/ene/min " doesn't work for arbitrarily defined spectra. The following macro always gives a cut at 20 keV instead of 100 keV.
Is it a bug? How could I set the minimum energy?
Thanks.
---------

/gps/ene/type Arb
/gps/hist/type arb
/gps/hist/point 0.02	6.98E+15
/gps/hist/point 0.03	8.45E+15
/gps/hist/point 0.05	5.65E+15
/gps/hist/point 0.07	3.32E+15
/gps/hist/point 0.1	1.58E+15
/gps/hist/point 0.2	5.01E+14
/gps/hist/point 0.3	2.47E+14
/gps/hist/point 0.5	1.22E+14
/gps/hist/point 0.7	8.51E+13
/gps/hist/point 1	2.91E+13
/gps/hist/point 2	3.67E+12
/gps/hist/point 3	1.11E+12
/gps/hist/point 5	2.49E+11
/gps/hist/point 7	9.43E+10
/gps/hist/point 10	3.36E+10
/gps/hist/point 20	3.70E+09
/gps/hist/point 30	7.58E+08
/gps/hist/point 50	1.04E+08
/gps/hist/point 70	3.20E+07
/gps/hist/point 100	8.70E+06
/gps/hist/point 200	1.05E+06
/gps/hist/point 300	4.11E+05
/gps/hist/point 500	1.56E+05
/gps/hist/point 700	8.80E+04
/gps/hist/point 1000	4.92E+04
/gps/hist/inter Log
/gps/ene/min 100.0 keV
Comment 1 Andrea Dotti 2017-09-26 15:24:25 CEST
Hello,
sorry for taking long in answering this.

/gps/ene/min (and max) do not have meaning when the user defines a spectra as you do. The minimum(maximum) in that case is the lowest(highest) bins.

If yo want to use E>100keV do not specify the first 4 points in your arbitrary defined spectra.

I do recognize the documentation is not very clear on this point.
Sorry for that.

Andrea