InstructionChingWei

Introduction

This twiki page describes how to display the geometry of the upgraded CMS pixel and strip trackers so to detect any possible mistakes in the software. First, we produce 2000 events of simulated muons with pT=10 GeV and | η | < 4.5.Then, hits in the tracker left by the particles will be recorded. By drawing the position of all simulated hits, we can have a bitmap that is close to the true geometry.

Follow these step

1. Get the python files to produce particles
cmsrel CMSSW_6_2_0_SLHC23_patch1
cd CMSSW_6_2_0_SLHC23_patch1/src
cmsenv
runTheMatrix.py --what upgrade -l 14600 >& Log &
replace "CMSSW_6_2_0_SLHC23_patch1" with the CMSSW release corresponding to the geometry you want
2. After about 10 mins,it will produce the directory
 14600_FourMuPt1_200+FourMuPt_1_200_Extended2023Muon4Eta_GenSimHLBeamSpotFull+DigiFull_Extended2023Muon4Eta+RecoFull_Extended2023Muon4Eta+HARVESTFull_Extended2023Muon4Eta   

There will be 4 python files.

Go back to the src directory.

cp -p 14600_FourMuPt1_200+FourMuPt_1_200_Extended2023Muon4Eta_GenSimHLBeamSpotFull+DigiFull_Extended2023Muon4Eta+RecoFull_Extended2023Muon4Eta+HARVESTFull_Extended2023Muon4Eta/*py .
git clone git@github.com:syuvivida/upgrade.git
mv upgrade/tracker/mc_prod/* .
mv upgrade/tracker/DelPanj .
mv upgrade/tracker/scripts/untuplizer.h .

rm -rf upgrade
rm -rf old_python
cmsenv
scramv1 b

./replaceStep1.sh FourMuPt_1_200_cfi_GEN_SIM.py
./replaceGeometry.sh FourMuPt_1_200_cfi_GEN_SIM.py

./loop.bash runStep1.sh 
3.After the step1 bjob finishes,a root file step1_1.root will be produced
If all root files are produce fine ,start to use Ntuple

4. Now, produce the flattuple from stpe1.root

./loop.bash runNtuple.sh 
5.plot the position on the figure
root -q -b geo.C++\(\"charged_output_1.root\"\)

Example Figure

CMSSW_6_2_0_SLHC23_patch1
Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg 23p.jpg r1 manage 67.7 K 2015-03-05 - 11:12 UnknownUser  
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2015-05-17 - ShinShanYu
 
    • 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