field map can be used for the Bfield by loading in an RZ field map description from a url.
How do I create an event with two or more different particles using the GPS
GPS can be used to generate events with multiple, different particle types in the same event. The macro below generates a muon and a pion within the same event. /gps/verbose 2 # muon /gps/source/intensity 1.0 /gps/particle mu ...
How do I create events sampled from multiple sources using the GPS
GPS can select from multiple, weighted sources event by event. The following will generate 10 events, approximately half of which will be muons and the other half pions. # muon /gps/source/intensity 1. /gps/particle mu /gps/position ...
How do I create full detector geometry files from the compact description
Follow the instructions for Converting to LCDD or HepRep using GeomConverter
How do I dump a GDML file of the current geometry using SLIC
macro command can be used to dump a plain GDML file mygeom.gdml from a loaded LCDD geometry. /lcdd/dumpGDML mygeom.gdml The G switch is the corresponding command line option. slic g mygeom.lcdd G mygeom.gdml
How do I dump the state of the CLHEP random engine
random/setSavingFlag true
How do I find out what version of Geant4 I am running
Startup slic in a mode where Geant4 will be initialized. For instance, you can start in interactive mode. slic n Or you can load a geometry file. slic g mygeom.lcdd The splash screen printed by the G4RunManager shows the Geant4 version, similar ...
How do I find out what version of SLIC I am running
command slic v will print slic's version and immediately exit. 1019 $ ./slic/bin/Linuxg/slic v Start Time Simulator for the Linear Collider; SLIC; v2r0p12; Jeremy McCormick ...
How do I get started with org.lcsim?
org.lcsim getting started tutorial lcsim Getting Started has detailed instructions on getting started with the org.lcsim software, including instructions on installing Java and JAS3, using the lcsim event browser and event display and getting started with writing your own ...
How do I get the magnetic field?
general you should get the detector from the event, and the field map from the detector. If you only want the Z field, and you are prepared to assume the field is constant (since we don't have a detailed field map that is probably a good ...
How do I increase the amount of memory available to Maven when it runs the test cases?
Sometimes Maven will fail when running the test cases with this error. java.lang.OutOfMemory This means that Maven has run out of available system memory. To increase the memory available to Maven, the environment variable MAVENOPTS should be set to the value Xmx1024m XX:MaxPermSize ...
How do I initialize a Java array?
Question If I have a data member initialized as: protected double refPoint = new double3; does this zero fill refPoint or does it contain uninitialized memory? Answer Java classes are never allowed to have unreferenced memory. Arrays are always zero ...
How do I install the XML schemas to a local directory
Configure LCDD with a schama installation directory. cd lcdd ./configure withschemainstalldir Then execute this command after the build. make schemainstall
How do I load back the state of the random engine that I dumped previously
random/resetEngineFrom dump.rndm
How do I print some information about various Geant4 and SLIC data objects at runtime
commands in the /stores directory can be used to print information about Geant4 and LCDD runtime objects
How do I print the table of defined materials
command will print the full table of defined materials. /stores/G4Material/print
How do I rebuild the Geant4 visualization libraries
After reconfiguring the visualization settings using the G4VIS variables, rebuild the Geant4 visualization as follows. cd $G4INSTALL/source/visualization gmake clean gmake cd $G4INSTALL/source/interfaces gmake clean gmake cd $G4INSTALL/source gmake libmap
How do I reset an event source to the first record
command is used to close and reopen an event file to the first event. /generator/reset
How do I run a file with Geant4 macro commands
two ways to run a file with Geant4 macro commands using slic. First, a single nonoption command line argument is treated as a macro. slic run.macro Secondly, the m switch can be used one or more times to specify macros that will be executed ...
How do I run a single test case?
single test can be run by using the following command, where package should be replaced by the class's package and class should be replaced by the name of the class. maven test:single Dtestcase=package.classname For instance, to run the FixedConeClustererTest, use this command. maven test ...
How do I run a SLIC Linux binary on SL5
When running a SLIC Linux binary from http://www.lcsim.org/dist/slic on your SL5 machine, you may receive an error about a missing libstdc\ library. By default, SL5 has gcc 4.x whereas SLIC binaries ...
How do I run in batch mode
default, slic runs in batch mode. The interactive mode must be explicitly selected. To run in batch mode, a macro could be executed that contains all the necessary initializations and the run command. slic run.mac Or all the options could be specified at the command line ...
How do I run in interactive mode
command slic n will start the simulator in interactive mode, where Geant4 commands can be typed into the terminal. When you use this command, you should see the Geant4 prompt. PreInit> The "PreInit" means that the geometry and physics have not been loaded ...
How do I run SLIC from the command line
SimDist The SimDist build system attempts to minimize SLIC's runtime dependencies. On Linux, you should get a static binary at SimDist/packages/slic/SLICVERSION/bin/G4SYSTEM/slic that can be run without a wrapper script. Alternately, the SimDist wrapper script at SimDist ...
How do I set the CHBIT_LONG flag to store explicit hit positions
macro command /lcio/longFlag will turn on the CHBITLONG flag for storing the hit positions. This is SLIC's default setting. To turn this flag off, use this command. /lcio/longFlag false
How do I set the CHBIT_PDG flag to store each individual MCParticle contribution in a hit
default, MCParticle energy contributions to SimCalorimeterHits are aggregated to one per particle type. To store the individual contributions to hits, use this command. /lcio/PDGFlag true
How do I set the minimum tracking distance using Geant4 commands
Geant4 employs the concept of minimum tracking distance, whereby secondary particles such as electrons are not produced if they would travel less than this distance. The total energy of the track is still decremented in order to preserve energy. The default minimum tracking distance is 1 mm ...
How do I set the name of the LCIO file
o command line option sets the name of the LCIO file. The .slcio will be appended automatically. slic g mygeom.lcdd o outputevents The corresponding command is /lcio/filename. /lcio/filename outputevents
How do I set the number of events to run
command line option r is used to set the maximum number of events that slic will run. slic g mygeom.lcdd i events.stdhep r 1 The actual number of events may be less, if you have a filebased event source like a StdHep ...
How do I set the output path for LCIO files
p command line option sets the output directory where LCIO files will be created. slic g mygeom.lcdd o outputevents p ./outputdir In the above, the LCIO file will be created at the relative path ./outputdir/outputevents . The corresponding command is /lcio/path ...
How do I set the random seed
command is used to seed the random engine with the number 12345. /random/seed 12345 With no argument, the random engine is seeded with the current time in milliseconds. /random/seed The d command is the corresponding command line switch
How do I set the run number
default, the run number starts at 0 and is incremented by one for each call to /run/beamOn in the same session. This command can be used to explicitly set the run number. /lcio/runNumber 999
How do I setup the public and private keys from a Grid certificate
Start by following the instructions at http://www.doegrids.org/pages/certrequest.html, part of which is included below. After exporting the certificate from your browser, use these commands to get the public and private keys. To get the encrypted public key : openssl pkcs12 in YourCert.p12 ...
How do I skip events in a StdHep file
commands skips 5 events. /generator/skipEvents 5
How do I skip the test cases?
skip the test cases, run maven as follows. maven Dmaven.test.skip=true None of the tests will be run, but the jar file will still be generated
How do I submit a batch job using LSF
command similar to the following will run slic on an LSF batch system. bsub q xlong G lcd \ o `pwd`/job.log \ e `pwd`/job.err \ time ./slic \ g mygeom.lcdd \ O \ p outputPath \ i events \ m ...
How do I turn on histograms in Drivers (e.g. FastMC)?
All Drivers have a method setHistogramLevel(int level) which can be used to control the level of histograms produced by a Driver. By default the level is set to 0, which means do not produce any histograms at all. Setting the histogram level on a driver ...
How do I use a StdHep file as my event source
StdHep http://cepa.fnal.gov/psm/stdhep/ is a binary format for the HEPEVT http://cepa.fnal.gov/psm/simulation/mcgen/lund/pythiamanual/pythia6.3/pythia6301/node39.html event generation format. Most of the event generators on An Inventory of Event Generators for Linear Collider Physics http ...
How do I use an LCIO file as my event source
SLIC can convert LCIO MCParticles into a Geant4 event by reading from the collection called "MCParticle". The macro command /generator/filename can be used to specify an input LCIO file. /generator/filename events.slcio The i command line switch ...
How do I use the General Particle Source (GPS) as my event source
command will select the General Particle Source (GPS) as the event generator. /generator/select gps The GPS Manual http://reat.space.qinetiq.com/gps/newgpssumfiles/gpssum.htm provides documentation of the GPS macro commands
How do I use the LCG grid
ILC VO Firstly, you need to obtain a membership in the ilc Virtual Organization (VO), which is sponsored by DESY. This is a VO on the LCG http://lcg.web.cern.ch/LCG/ grid. Alternately, you can become a member of the calice VO, but this will only work if your ...
How do I use the OSG Grid
Overview This example shows how to run jobs and especially SLIC https://confluence.slac.stanford.edu/display/ilc/SLIC, the Simulator for the Linear Collider, on the FermiGrid http://fermigrid.fnal.gov/ which is part of the Open Science Grid http://www.opensciencegrid.org/. SLIC is a Geant4based simulations package ...
How do I use the particle gun as my event source
generator/select gun Then use the particle gun commands as usual
How do I visualize with DAWN
Create a scene. In this case, we only visualize the detector geometry. /vis/scene/create /vis/scene/add/volume Now open the DAWN driver and update it. /vis/open DAWNFILE /vis/viewer/flush
How do I visualize with HepRep and WIRED
you are using the standard ILC Java toolchain, follow the WIRED event display instructions Using the Event Display. Otherwise, Geant4 can dump HepReps to a zip file. /vis/scene/create /vis/scene/add/logicalVolume /vis/open ...
How do I visualize with OpenGL
First, create a scene containing volumes, hits, and trajectories. /vis/scene/create /vis/scene/add/volume /vis/scene/add/hits /vis/scene/add/trajectories Open the OpenGL stored viewer to use the backing store, which ...
How do I visualize with OpenInventor
Create the scene. /vis/scene/create /vis/scene/add/volume /vis/scene/add/hits /vis/scene/add/trajectories Now open the inventor driver. /vis/open OIX To use the viewer, the update command needs to be called ...
How do I visualize with ROOT
LCDD geometry needs to be dumped to plain GDML How do I dump a GDML file of the current geometry using SLIC to be loaded by ROOT. Before using ROOT, the environment needs to be setup. export ROOTSYS=/my/root/dir cd ...
How do I visualize with VRML
Geant4 can produce VRML, which is readable by many 3D software packages. /vis/scene/create /vis/scene/add/logicalVolume /vis/open VRML2FILE /vis/viewer/flush Alternately, you might only want to add certain ...
How to I create ScatterPlots in AIDA?
Question In AIDA, can I tell cloud2d that I want a true scatter plot, not a binned histogram? Answer By default clouds (both 1d and 2d) "convert" automatically to histograms when they reach a certain number of entries. This generally allows the histograms ...