PARSEC Logo of the RWTH University

Last modification: 8 Apr 2014

Simulation Example

The archive contains an example file in PATH/To/ARCHIVE/example/extragalacticSimulationChainExample.xml . It realizes a simple model with some sources and the extragalactic fields. Later in this section the geometrical acceptance of an experiment and Galactic Fields are added to the example. A full simulation example is provided in PATH/To/ARCHIVE/example/fullSimulationExample.xml .

Basic Example

Opening the example file in VISPA The first module simply creates a number (default 1)) of empty universes (pxl::BasicContainer) which is the passed through the module chain along the red lines. The next module, SourceModel, adds isotropic distributed sources to this container. It is realized as python script. You can view or change the module options by clicking on the module. The parameters are then shown on the bar on the right. By double clicking on the module, it should open the python source code in your default editor.

vispa screen

The EGMF module calculates the extragalactic pdf for this source model for homogeneous turbulent extragalactic fields and adds the pdf as pxl::HealpixMap to the universe. Here the main calculations are done. the next module creates a number of UHECR from this model, and gives the result to the file output. A file exampleOUT.pxlio is created. You can run the example by clicking on the blue run button in the toolbar, or executing

$ pxlrun extragalacticSimulationChainExample.xml

After executing, you can browse the output file by double clicking on the symbol. You should switch the view to "None View", "Skyplot View", or "ROOT Canvas View" for acceptable performance, as the output file will contain ~15000 Objects.

vispa screen

Galactic Lens and Auger Acceptance

We now want to add the modules for the Galactic field and the Auger Acceptance to the example. At first, erase the connection between the EGMFModel and the Cosmic Ray creator. Add then the GMFModule to the analysis designer by dragging it from the list of available modules to the designer canvas. Connect the EGMF Model output to the GMFModule input. Do the same for the AugerAcceptance Module, and connect the output of the AugerAcceptance Module to the input of the CosmicRay creator. Save the example.

The GMF Module needs a galactic lens to work with, e.g. this one . Extract the archive and enter the path to the containing lens.cfg file in the GMFModule option. Save the example and execute the analysis. The resulting output now includes the effects of the galactic field model and a typical detector acceptance

vispa screen