Project

General

Profile

How to run cmsExp


0) requirement:
   - cmake
   - Geant4 installation 
     (preferred Geant4 9.6.p02 which can be downloaded from 
      http://geant4.cern.ch/support/download.shtml)

    (if you don't have a local geant4 installation, I can provide a simple 
     script and instructions how to install it)   

1) pull the latest g4hpcbenchmarks or checkout cmsExp from the git respository

   git clone http://cdcvs.fnal.gov/projects/g4hpcbenchmarks

   (attention: this cmsExp is different from the one under 
    http://cdcvs.fnal.gov/projects/g4ascr)

2) build cmsExp
   cmake -DProject=cmsExp -DGeant4_DIR=/your_geant4_installation/build_directory ..
   make

3) setup geant4 data sets (my example is included below)
   source setenv.sh  

4) select physics list and physics process
   export PHYSLIST=cmsExpEmPhysics
   export EMPROCESS=EmStandard

   later on, to select a specific process set 

   EMPROCESS=eMultipleScattering (for G4UrbanMscModel95)
   EMPROCESS=eBremsstrahlung (for G4SeltzerBergerModel/G4eBremsstrahlungRelModel)  
   EMPROCESS=eIonisation (for G4MollerBhabhaModel)  
   EMPROCESS=eCoulombScattering (for G4WentzelOKandVIxSection)
   EMPROCESS=ComptonScattering (for G4KleinNishinaCompton)
   EMPROCESS=PhotoElectricEffect (for G4PEEffectFluoModel)  
   EMPROCESS=GammaConversion (for G4BetheHeitlerModel/G4PairProductionRelModel)  

   EMPROCESS=Electron (for all electron processes)
   EMPROCESS=Photon (for all photon processes)

   (refer to include/cmsExpEmProcessType.hh for the full list)

5) run cmsExp from cmsExp directory
   ./bin/cmsExp run_eGamma.g4

   to increase intensity, please edit UI-command in run_eGamma.g4, 
   for examples, 
   /mygen/nParticle  100    (number of particles)
   /mygen/maxP 100 GeV  (energy range)
   /run/beamOn  1000  (number of events)

6) to write out physics tables for EMPROCESS
   (tables for a material (PbWO4) will be written in the ./table directory)
   export CMSEXP_LAMBDA_TABLE=1

--------------------------------------------------------------------
my setenv.sh to setup geant4 data sets compatible with 9.6.ref07 
- change G4P_G4DIR 
--------------------------------------------------------------------
#CMake maual setup to link geant4 data
export G4P_G4DIR=/your_dir_where_geant4_data_sets_are_installed  
export G4LEDATA=${G4P_G4DIR}/data/G4EMLOW6.33
export G4LEVELGAMMADATA=${G4P_G4DIR}/data/PhotonEvaporation2.3
export G4NEUTRONHPDATA=${G4P_G4DIR}/data/G4NDL4.3
export G4RADIOACTIVEDATA=${G4P_G4DIR}/data/RadioactiveDecay3.7
export G4ABLADATA=${G4P_G4DIR}/data/G4ABLA3.0
export G4REALSURFACEDATA=${G4P_G4DIR}/data/RealSurface1.0
export G4NEUTRONXSDATA=${G4P_G4DIR}/data/G4NEUTRONXS1.3
export G4PIIDATA=${G4P_G4DIR}/data/G4PII1.3
export G4SAIDXSDATA=${G4P_G4DIR}/data/G4SAIDDATA1.1