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 [30/03/2015 18:38]
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>​
  
-  * 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:  
- +      * method #1: Using git and GitHub 
-  - FIXME git sparse checkout not working as expected +          ​* ​''​git init''​ 
-  ​- ​''​git init''​ +          ​* ​''​git config core.sparsecheckout true''​ 
-  ​- ​''​git config core.sparsecheckout true''​ +          ​* ​''​git remote add -f official-cmssw ​%%https://​github.com/​cms-sw/​cmssw.git%%''​  
-  ​- ​''​git remote add -f official-cmssw https://​github.com/​cms-sw/​cmssw.git''​  +          ​* ​''​echo ​%%"%%DPGAnalysis/​SiStripTools%%"%% %%>>%% .git/​info/​sparse-checkout''​ 
-  ​- ​''​echo "​DPGAnalysis/​SiStripTools"​ >> .git/​info/​sparse-checkout''​ +          ​* ​''​git pull official-cmssw CMSSW_6_2_0_SLHC17_patch1'' ​  
-  ​- ​''​git pull official-cmssw CMSSW_6_2_0_SLHC17_patch1'' ​  +      * 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''​ 
-  - copy (git clone? git pull? boh?) to you laptop the CMSSW module DPGAnalysis/​SiStripTools  +   ​- ''​make all'' ​
-  - 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 132: Linea 138:
 TFile *_file0 = TFile::​Open("​MyOccupancyPlotsOnly.root","​READ"​) # or whatever name of the root file 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) PlotOccupancyMapPhase2(_file0,​ "​pixeloccupancyplots/​run_1",​ 0.00001, 10., 0.00001, 10.,1)
 +</​code>​
 +
 +
 +==== 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>​ </​code>​