The GRB package has been developed to provide the Glast simulator software with a full fledged simulator of a physical transient source. As such it has been designed to correctly interface FluxSvc, by providing spectrum classes derived from ISpectrum. This package is also developed to study the physics of bursts and the capability of Glast in the observation of rapid transient signals. It is interfaced to ROOT for possible visualization.
This package contains four parts related to Gamma-Ray Bursts:
A short list of articles regarding the physics of GRB, observations and theories can be found here.
Parameters for the GRB physical model
The file GRBParam.txt holds information used for the description of the GRB. It can be changed without recompiling the entire package.
It MUST be in /src/test directory of the GRB package.
Depending on how GRBengine works, the sequence of shock that give up the GRB can be formed in different ways. The File GRBParam.txt contains information about:
peaks
Very short introduction to the alert algorithm
The GRB simulator can be use with several test program:
//==================================================
ApplicationMgr.ExtSvc += { "GRBSvc" };
ApplicationMgr.DLLs += { "GRB" };
//==================================================
At this point GRB is available from an external application (as Gleam). To have the item "GRB" in the sources menu of the GUI one can just edit the xml file containing the source definition adding the following lines:
<source name="GRB" > <spectrum> <SpectrumClass name="GRBSpectrum"/> <use_spectrum/> </spectrum> </source>
The /src/test/jobOptions.txt file holds information used for the implementation of GRB algorithm. It doesn't contain any information regarding the physics of the GRB (that are all included in the GRBParam file), but it manages some options available for the GRB Algorithm.
jobOptions files
There are two different jobOptions.txt file:
#include' statements) between the 3 files: GRBtestAlgOptions.txt, TDSreadFluxOptions.txt, and LatGRBAlertOptions.txt| GRBTestAlg.source_name | passes the name of the GRB source, to be chosen among the ones defined in GRB_user_library.xml |
| GRBTestAlg.background_name | passes the name of the background source, to be added on top of the GRB signal. It can be any spectrum defined in FluxSvc xml files. |
| GRBTestAlg.EvtMax | Maximum number of photon generated. Default is 100000 |
| GRBTestAlg.savefile |
"root" saves data in ROOT format, "ascii" in ASCII text file. Saving in both is also possible
|
| TDSreadFluxAlg.savefile |
"root" saves data in ROOT format, "ascii" in ASCII text file. Saving in both is also possible
|
| LatGRBAlertAlg.nbckoff | Region threshold; determines when to start testing for false triggers. Default is 5. |
| LatGRBAlertAlg.mix | A value of 0 indicates that background mix has already been generated in file named by mixedFile field. Default is 0. |
| LatGRBAlertAlg.grbFile | Name of file listing events data. |
| LatGRBAlertAlg.backgroundFile | Name of file containing background data. |
| LatGRBAlertAlg.grbOffsetTime | Value to be used to offset events times. Default is 0. |
| LatGRBAlertAlg.mixedFile | Name of file containing background mixed data. |
package GRB
use FluxSvc
use ROOT
use RootIo
use GlastSvc
apply_pattern packageShr
# This needs to be fixed (?)
#=============================================================
path_append LD_LIBRARY_PATH ${GRBROOT}/${BINDIR}
path_append LD_LIBRARY_PATH ${FLUXSVCROOT}/${BINDIR}
#=============================================================
private
apply_pattern package_Cshlibflags
apply_pattern package_headers
apply_pattern package_stamps
macro_append GRB_stamps " $(GRBDir)/GRB_lib.stamp"
# component library, with GRB, GRBmaker, GRBUtil, and LatGRBAlert
macro_append GRB_headers "" \
WIN32 "../xml/*.xml test/*.xml GRBmaker/*.h LatGRBAlert/*.h GRB/*.h"
library GRB_lib -no_share *.cxx GRB/*.cxx \
GRBmaker/*.cxx LatGRBAlert/*.cxx \
${GRB_headers}
macro libs "" WIN32 " $(GRBDir)/GRB_lib.lib "
macro GRB_linkopts "-L $(GRBDir) -lGRB_lib" \
WIN32 ""
macro_append ROOT_linkopts " -lHist -lMatrix -lGraf -lGraf3d -lGpad " \
WIN32 " $(ROOT_PATH)/lib/libHist.lib $(ROOT_PATH)/lib/libMatrix.lib $(ROOT_PATH)/lib/libGraf.lib $(ROOT_PATH)/lib/libGraf3d.lib $(ROOT_PATH)/lib/libGpad.lib "
library GRB Dll/*.cxx $(libs)
macro GRB_extrastamps "$(GRBDir)/GRB_lib.stamp"
#
# Executables:
#
# this executable provides visualization with ROOT at runtime
#
application test_GRBROOT test/other/GRBROOTtest.cxx $(libs)
public set JOBOPTIONS ${GRBROOT}/src/test/jobOptions.txt
# builds batch job (no ROOT visualization) for nightly builds,
# and sets its jobOptions file
#
apply_pattern package_test
set TESTJOBOPTIONS ${GRBROOT}/src/test/test_jobOptions.txt
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001