HGCal

♦login slc6:

knit username@FNALNOSPAMPLEASE.GOV

ssh -x username@cmslpc-sl6NOSPAMPLEASE.fnal.gov

♦copy the files to cmslpc: git remote add PFcal https://github.com/pfs/PFCal

♦git clone: git clone https://github.com/pfs/PFCal

one simple exercise:

set up geat4 in slc6:

cd /PFCal/PFCalEE

source g4env.sh

cp the file and create the directory:

cp -R $G4BASE/9.1.p02/slc4_amd64_gcc34/share/examples/novice/N01 .

compile the code:

cd N01

gmake

run the simulation with geant4:

cd ~

cd geant4_workdir

cd /bin/Linux-g++/

ls

exampleN01

standalone simulation

♦setup a CMSSW for SL6 in the cmslpc sl6 machines:

source /uscmst1/prod/sw/cms/cshrc cvmfs
scram --arch slc6_amd64_gcc481 list CMSSW | grep CMSSW_7_1
scram --arch slc6_amd64_gcc481 project CMSSW_7_1_0_pre8
cd CMSSW_7_1_0_pre8/src/
cmsenv
scram b

♦clone the file:

git init git

git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE

git clone -b BASELINE-TP https://github.com/pfs/PFCal

♦set up environment in SLC6

source g4env.sh ( for sl6 : sh g4env.sh)

cd userlib

mkdir lib

mkdir obj

mkdir bin

make -j 5

cd ../

make -j 5

♦analysis code

•The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:

python submitProd.py -options

•In case of options conflicts it can be used also:

./submitProd.py -options

  • The options for the code are:
    • -n : Number of events to generate (default 1000)
    • -g : Use particle gun
    • -d : Data or type of particle to shoot (default e-)
    • -s : Short batch queue (default 1nd)
    • -l : Long batch queue (default 2nw)
    • -t : Git tag use it
    • -r : Run stats
    • -m : Detector model
    • -v : Detector version
    • -e : eos Path to save root file
    • -o : Output directory
    • -a : Incidence angle in radians (default 0)
    • -b : Magnetic field in Tesla (default 0)
    • -f : Path to the HepMC input file

visualize the geometry:

♦particle gun:

To run this example modify the submitProd.py file to set energy loops and run:

for i in seq 0 5; do python submitProd.py -s 1nd -q 2nd -t V00-00-00 -g -r ${i} -v 3 -m 0 -e /store/cmst3/group/hgcal/Geant4 -o ~/work/ntuples -d e- -n 2500; done

This example is running 2500 events of a particle gun shooting electrons to the detector model.

commands of geant4:



Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r10 - 2014-06-19 - unknown
 
    • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback