TWiki> Main Web>TWikiUsers>ShiyuanXu>Shiyuan-HGCal (revision 2)EditAttachPDF

Introduction

♦A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies

Prerequisite

♦Setup CMSSW in SL6 machines: CMSSW in 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

Repositories:

♦We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained doing:

git init

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

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

cd PFCal/PFCalEE/

♦To set up the environment and compile (SL6 machines), go to the PFCalEE directory and run:

cd PFCal/PFCalEE

source g4env.sh

cd userlib

mkdir lib

mkdir obj

mkdir bin

make -j 5

cd ../

make -j 5

♦In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, in that case change the first command for:

sh g4env.sh

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
  • -S : Not submit batch job

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.

Geometry Visualization

♦To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:

 enum DetectorVersion {
    v_CALICE=0,
    v_HGCALEE_Si80=1,
    v_HGCALEE_Si120=2,
    v_HGCALEE_Si200=3,
    v_HGCALEE_Si500=4,
    v_HGCALEE_gap1=5,
    v_HGCALEE_CALICE=6,
    v_HGCALEE_inverted=7,
    v_HGCALEE_concept=8,
    v_HGCALEE_W=9,
    v_HGCALEE_gap4=10,
    v_HGCALEE_prePCB=11,
    v_HGCAL=20,
    v_HGCALHE=21,
    v_HGCALHEScint=22,
    v_HGCALHE_CALICE=23
  };

  enum DetectorModel {
    m_SIMPLE_20=0,
    m_SIMPLE_50=1,
    m_FULLSECTION=2,
    m_SIMPLE_100=3
  };

♦In the PFCalEE directory the file PFCalEE.cc can be modified to change to use the desired detector and model, the line to change is:

 int version=0; //DetectorConstruction::v_HGCAL;                                                                                                       
  //int model=DetectorConstruction::m_FULLSECTION;                                                                                                     
  int model=DetectorConstruction::m_SIMPLE_20;

♦After the file is modified to compile run:

make -j 5

♦After this, run the following command (Changing the path to one in your directory):

export G4DAWNFILE_DEST_DIR=/afs/cern.ch/user/h/hhernand/work/PFCal/PFCalEE/

♦Copy the file vis.mac to the directory where the PFCalEE executable is (geant4_workdir/bin/Linux-g++).

♦To run the visualization is necessary to go to the directory where the PFCalEE executable is and run:

PFCalEE vis.mac

♦A sample and a complete geometry construction for the CALICE detector can be found in the attached files.

♦A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.

Topic attachments
I Attachment History Action Size Date Who Comment
PDFpdf CALICE.pdf r1 manage 13.2 K 2014-06-30 - 17:58 ShiyuanXu  
PDFpdf CALICE_FULL.pdf r1 manage 110.3 K 2014-06-30 - 17:58 ShiyuanXu  
PDFpdf HATS-HGCal.pdf r1 manage 5018.3 K 2014-06-30 - 17:58 ShiyuanXu  
PDFpdf HGCalHE_CALICE.pdf r1 manage 19.4 K 2014-06-30 - 17:58 ShiyuanXu  
PDFpdf HGCalHE_CALICE_FULL.pdf r1 manage 173.2 K 2014-06-30 - 17:58 ShiyuanXu  
Edit | Attach | Watch | Print version | History: r18 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2014-06-30 - ShiyuanXu
 
    • 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