How we simulate cosmic in release 13

Setting up

My requirements file looks like: (for release 13.0.40)
set   SITEROOT /afs/
macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist
macro ATLAS_TEST_AREA /afs/
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
apply_tag oneTest
and I set up using (the first time):
source /afs/
cmt config
source -tag=13.0.40,runtime   <-- always

Simulation with cosmic simulation transform

These steps work:
With a requirements file as above (change ATLAS_TEST_AREA to real work area)

source /afs/
cmt config
source -tag=,releases,AtlasProduction,32,gcc323,runtime

You can now run with <name of outputfile> <N events>  <random number/run number> <geometry> <if filtervolume!=inner detector, specify here> 
For instance: sim.root 1000 12345 ATLAS-Comm-02-00-00 CosmicFilterVolume=TRT_Barrel 
This produces a lot of files as output - including logfile: csc_cosmics_sim.log - so you might want to do this in a separate run directory ... If no events pass the filter volume the transform will crash.
To digitize, follow the steps below.

Simulation standalone

You need the following packages, unless you work in or higher:
cmt co -r CosmicGenerator-00-00-24 Generators/CosmicGenerator
cmt co -r G4AtlasApps-00-02-15 Simulation/G4Atlas/G4AtlasApps
cmt co -r LArG4HitManagement-00-00-25 LArCalorimeter/LArG4/LArG4HitManagement
cmt co -r G4CosmicFilter-00-00-07 Simulation/G4Extensions/G4CosmicFilter
Same method as in release 12, only new jobOption file. This + submission scripts can be found at /afs/

For simulation we use SubmitAll.src and

./SubmitAll.src <directory name> <firstjob> <lastjob>
will submit lastjob-firstjob jobs, with seeds/run numbers firstjob+100 to lastjob+100. To run locally:
athena -c "directory='<directory>';Seed='12345';"

Simulation layout and the filtering options are defined in, and G4CosmicFilter/ sets the CosmicGenerator parameters. The in /afs/ shows our default setting for TRTBarrel simulation.

Filtering on the overlap between 2 volumes

This version is still being improved upon and is not tagged yet. The first volume is always taken to be the TRTBarrel volume at the moment.
  • Copy the G4CosmicFilter/ package from /afs/ and replace G4CosmicAndFilter.cxx with the one in /afs/
  • Recompile and add the other volume in the jO file(s). Example for TRTBarrel + Pixel can be found in the jobOptions files. If it works you should see this line in the log file:
G4CosmicAndFilter: using collectionName TRTBarrelEntryLayer and PixelEntryLayer


Same method as in release 12, jobOptions and submission scripts in the same place as for simulation. The submission file is SubmitDig.src, and the jO file Examples can be found in /afs/ Note that calorimeter noise is set to off in this digitization jobOptions. Change DoCaloNoise to True if you wish to have it included.

To run the digitization you need to have in your working directory, and copy some xml files locally.

13.0.10: /afs/*

13.0.20: xml files above should be copied to TrigConfigSvc directory in running directory

>=13.0.30: this time the directory has to be called TriggerMenuXML/ ...

In 13.0.20 and up the names of the xml files have small variations - just rename to whatever athena wants. As an example of what is needed in 13.0.40, look in /afs/

Local running:

athena -c "directory='dir';"
and submission:
./SubmitDig.src <directoryname as in simulation>  <seed of sim job>
The batch submission scripts have a few things (like output dir and #files per job) hard-coded.

-- ElseLytken - 06 Aug 2007

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2008-04-25 - ElseLytken
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback