Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
cms:analysis:pixelphase2simdoc [10/03/2015 16:01]
migliore
cms:analysis:pixelphase2simdoc [17/03/2016 14:59] (versione attuale)
migliore
Linea 24: Linea 24:
 git config --global user.github emiglior git config --global user.github emiglior
 git config --global http.sslVerify false git config --global http.sslVerify false
 +git config --global color.ui true  # pretty printing!
 </​code>​ </​code>​
  
Linea 74: Linea 75:
 cd CMSSW_6_2_0_SLHC17_patch1/​src/​ cd CMSSW_6_2_0_SLHC17_patch1/​src/​
 eval `scram r -sh` eval `scram r -sh`
-git clone -b 620_slhc17_patch1_phase2 ​git://​github.com/​emiglior/​usercode.git . +git clone -b 620_slhc17_patch1_phase2_fwd ​git://​github.com/​emiglior/​usercode.git . 
 # to "​push"​ changes to the remote later # to "​push"​ changes to the remote later
 # option 1.  # option 1. 
 # git remote set-url origin git@github.com:​emiglior/​usercode.git ​ # git remote set-url origin git@github.com:​emiglior/​usercode.git ​
 # option 2. clone with SSH protocol # option 2. clone with SSH protocol
-# git clone -b 620_slhc17_patch1_phase2 ​git@github.com:​emiglior/​usercode.git .+# git clone -b 620_slhc17_patch1_phase2_fwd ​git@github.com:​emiglior/​usercode.git .
 </​code>​ </​code>​
 ++++ ++++
Linea 91: Linea 92:
   * <​del>''​LoopCMSSWBuildAndRun.py''​ DIGI->​DQM steps for MultiTrackValidation (not yet available in 620_slhc17_patch1_phase2)</​del>​   * <​del>''​LoopCMSSWBuildAndRun.py''​ DIGI->​DQM steps for MultiTrackValidation (not yet available in 620_slhc17_patch1_phase2)</​del>​
  
-Issue ''​python <​script_name>​ -h''​ for online help+Issue ''​python <​script_name>​ -h''​ for online help.\\ 
 +e.g. ''​PixelLocalRecoBuildAndRun.py -s -i MyTestConfiguration.ini''​ it will create and submit jobs based on directives in the ''​MyTestConfiguration.ini''​ configuration file.
  
 <​del>​**Note:​** ​ in ''​LoopCMSSWBuildAndRun.py''​ the lines  <​del>​**Note:​** ​ in ''​LoopCMSSWBuildAndRun.py''​ the lines 
Linea 107: Linea 109:
 To build the shared object required to make the plots  To build the shared object required to make the plots 
  
-  * On lxplus or on a machine with a CMSSW installation. From the CMSSW installation area:+  ​* **On lxplus or on a machine with a CMSSW installation** (skip the first instructions if CMSSW is already installed): 
 +  - ''​scram p CMSSW CMSSW_6_2_0_SLHC17_patch1''​ 
 +  - ''​cd CMSSW_6_2_0_SLHC17_patch1/​src''​ 
 +  - ''​eval `scram r -sh`''​
   - ''​git cms-addpkg DPGAnalysis/​​SiStripTools''​   - ''​git cms-addpkg DPGAnalysis/​​SiStripTools''​
   - ''​scram b -r''​   - ''​scram b -r''​
 +  * After the shared object is built, from an interactive ROOT session:
 +<​code>​
 +.L libDPGAnalysisSiStripToolsMacros.so # or whatever path to the shared object
 +TFile *_file0 = TFile::​Open("​MyOccupancyPlotsOnly.root","​READ"​) # or whatever name of the root file
 +PlotOccupancyMapPhase2(_file0,​ "​pixeloccupancyplots/​run_1",​ 0.00001, 10., 0.00001, 10.,1)
 +</​code>​
  
-  * FIXME On your lapotop (the macro will open several canvas, so it could be useful when working in remote). From any where:  +  * **On your lapotop** (the macro will open several canvas, so it could be useful when working in remote). From any where:  
-  ​- ​''​git init''​ +      * method #1: Using git and GitHub 
-  ​- ​''​git remote add -f official-cmssw https://​github.com/​cms-sw/​cmssw.git''​  +          * ''​git init''​ 
-  ​- ​''​echo "​DPGAnalysis/​SiStripTools"​ >> .git/​info/​sparse-checkout''​ +          * ''​git config core.sparsecheckout true''​ 
-  ​- ​git pull official-cmssw ​from-CMSSW_6_2_0_SLHC17_patch1 +          * ''​git remote add -f official-cmssw ​%%https://​github.com/​cms-sw/​cmssw.git%%''​  
-  - copy in ''​DPGAnalysis/​SiStripTools/​bin''​ this Makefile +          ​* ​''​echo ​%%"%%DPGAnalysis/​SiStripTools%%"%% %%>>%% .git/​info/​sparse-checkout''​ 
-  - ''​cd DPGAnalysis/​SiStripTools/​bin''​ +          * ''​git pull official-cmssw CMSSW_6_2_0_SLHC17_patch1'' ​  
-  - ''​make'' ​ +      * method #2:copy to you laptop the CMSSW module DPGAnalysis/​SiStripTools from an already existing installation (e.g. scp from lxplus)  
-  FIXME +   - copy in ''​DPGAnalysis/​SiStripTools/​bin''​ this {{dpganalysissistriptools_makefile.zip|Makefile}} 
 +   ​- ''​cd DPGAnalysis/​SiStripTools/​bin''​ 
 +   ​- ''​make ​all'' ​
    * After the shared object is built, from an interactive ROOT session:    * After the shared object is built, from an interactive ROOT session:
 <​code>​ <​code>​
Linea 129: Linea 141:
  
  
- +==== Change sensor thickness in GEN-SIM step ==== 
----- +<​code>​ 
----- +scram p CMSSW CMSSW_6_2_0_SLHC17_patch1 
-----+cd CMSSW_6_2_0_SLHC17_patch1/​src 
 +eval `scram r -sh` 
 +git cms-addpkg Geometry/​TrackerCommonData 
 +# we need to clone usercode in a separate directory as a .git area has been already produced by the cms-addpkg command 
 +git clone -b 620_slhc17_patch1_phase2_fwd git://​github.com/​emiglior/​usercode.git 
 +mv usercode/​AuxCode .  
 +rm -fr usercode 
 +cd AuxCode/​SLHCSimPhase2/​test/​GenSimStep 
 +./​ChangeThickness.sh 
 +</​code>​
  
 ===== EXPERT USE ===== ===== EXPERT USE =====