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 p
T=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