Tags:
, view all tags

Tutorial to make Full Simulation at High Pileup Scenarios

This tutorial illustrates the simulation of neutrino samples with pileup 70 considering upgraded geometry for the pixel detector (4-layers, 3-disks).

Generation of events

We are going to simulate Neutrinos with Pt 2-20 according to this snippet.

ssh jruizvar@lxplus5.cern.ch
cmsrel CMSSW_6_1_2_SLHC6_patch1
cd CMSSW_6_1_2_SLHC6_patch1/src
source script.sh

script.sh requires Bash terminal.

Copy the following files (in CMSSW_6_1_2_SLHC6_patch1/src)

Before submitting the job to crab, do a local test

scram b -j 8
cmsRun Neutrino_Pt2to20_gun_cff_py_GEN_SIM.py

Check edmFileUtil Neutrino_Pt2to20_gun_cff_py_GEN_SIM.root.

Submit to crab.

rm Neutrino_Pt2to20_gun_cff_py_GEN_SIM.root
crab -create
crab -submit -c Neutrino_Pt2to20_14TeV

It takes around 15 min to generate 10000 events. 0.2M events can be generated in 20 jobs. After crab getoutput, don't forget

crab -publish -c Neutrino_Pt2to20_14TeV

Create Analyzer

We are going to create an standalone analyzer (no need to checkout external libraries) that can be used with any GEN-SIM sample, not only neutrinos.

ssh jruizvar@lxplus5.cern.ch
cmsrel CMSSW_6_1_2_SLHC6_patch1
cd CMSSW_6_1_2_SLHC6_patch1/src
source script.sh

Same script.sh as above. Make a directory with a dummy name, in this case neutrinoPU70. Create an analyzer respecting the name Pxecal

mkdir neutrinoPU70
mkedanlzr Pxecal
cd Pxecal

Copy to this folder the following two files

and substitute

Run a local test and check the resulting n-tuple Neutrino_PU70_ntuple.root

scram b -j 8
cmsRun pxecal_cfg.py

The crab submission can be done in two blocks

rm Neutrino_PU70_ntuple.root
crab -create
crab -submit 1-500 -c Neutrino_PU70_100K_ntuple
crab -submit 501-1000 -c Neutrino_PU70_100K_ntuple

This step is more time consuming than the generation part. No need to publish because the output are n-tuples stored at T2_BR_SPRACE for private analysis.

Exercise

Make the full simulation for a SingleElectronFlatPt5To50 for three pileup scenarios:

  • PU35 (200K events)
  • PU70 (100K events)
  • PU140 (50K events)

Hint:

  • The GEN-SIM step should be done only once.
  • The python configure files should be slightly modified.
  • No need to touch the Pxecal.cc source file.
Topic attachments
I Attachment History Action SizeSorted ascending Date Who Comment
Unix shell scriptsh script.sh r1 manage 0.1 K 2013-08-28 - 05:29 JoseRuiz Setup crab at lxplus
Texttxt BuildFile.xml.txt r1 manage 0.4 K 2013-08-28 - 07:26 JoseRuiz BuildFile
Unknown file formatcfg crabGENSIM.cfg r1 manage 0.7 K 2013-08-28 - 06:30 JoseRuiz Crab configure file to generate and publish GEN-SIM
Unknown file formatcfg crab.cfg r1 manage 0.8 K 2013-08-28 - 05:28 JoseRuiz Crab configure file
Texttxt Neutrino_Pt2to20_gun_cff_py_GEN_SIM.py.txt r1 manage 4.8 K 2013-08-28 - 06:22 JoseRuiz Configure file to make GEN-SIM
Texttxt pxecal_cfg.py.txt r1 manage 6.4 K 2013-08-28 - 05:29 JoseRuiz Configure file
Unknown file formatcc Pxecal.cc r1 manage 14.1 K 2013-08-28 - 05:31 JoseRuiz Source code
PNGpng Screen_Shot_2013-08-28_at_10.02.51_AM.png r1 manage 84.1 K 2013-08-28 - 08:05 JoseRuiz Generator fragment
Texttxt MinBiasSource.py.txt r1 manage 108.2 K 2013-08-28 - 05:29 JoseRuiz  
Edit | Attach | Print version | History: r16 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2013-08-28 - JoseRuiz
 

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.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort