Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/CaloScan/README is written in an unsupported language. File is not indexed.

0001 (1) cmsrel CMSSW_10_2_0 (for instance)
0002 
0003 (2) cd CMSSW_10_2_0/src
0004 
0005 (3) cmsenv
0006 
0007 (4) git cms-addpkg Validation/CaloTowers
0008 
0009 (5) scram b
0010 
0011 (6) cd Validation/CaloTowers/test/CaloScan
0012 
0013 NB: before step (7) one of the desired templates (template*.py_*) 
0014 has to be renamed into simple template.py (which is used in step (7) below)
0015 
0016 (7) ./make_configs.csh  
0017 creates 50 job configs (each for 1k ev "slice" processing from input file) 
0018 
0019 (8) ./submit_batch.csh  (LSF batch) or ./submit_HTCondor.csh (HTCondor batch) 
0020 
0021 NB: it uses batch submission 
0022 (batch.csh for LSF or batch_HTCondor.csh for HTCondor) at CERN 
0023 
0024 with input file 
0025 /afs/cern.ch/cms/data/CMSSW/Validation/HcalHits/data/620/mc_pi50_eta05.root
0026 Each of 50 job uses 1K out of total 50K input.
0027 
0028 In ~30-40 min (in the submission directory, /scan in this case)
0029 the results of 50 batch jobs will start arriving. 
0030 Once all 50 jobs finished and 50  *.root files appeared locally, 
0031 
0032 (9) ./Merge.sh 10_2_0  (e.g. the extension name for resulting DQM file)
0033 
0034 It will do following things:
0035 
0036 cmsRun  merging_cfg.py
0037 (to produce final DQMxxx.root file)
0038 
0039 clean up the directory
0040 rm -r pi50_*.py *.log LSFJOB_* pi50_*.root
0041 
0042 Rename DQMxxx.root file to a convenient name
0043 
0044 NB: there is naming convention  pi50scan<...>_ECALHCAL_CaloTowers.root
0045 where <...> can be any meaningful string (to appear in the legend of histos). It generally indicates the release or upgrade status.
0046 
0047 For example here it's 10_2_0 which needs to be given as the argument for Merge.sh
0048 
0049 move this pi50scan<...>_ECALHCAL_CaloTowers.root to Validation/CaloTowers/test/macros
0050 
0051 
0052 (10) to compare two sets of histos, for instance if you have in 
0053 Validation/CaloTowers/test/macros 
0054 pi50scan10_2_0_ECALHCAL_CaloTowers.root    and
0055 pi50scan10_2_0_pre6_ECALHCAL_CaloTowers.root
0056 
0057 (here "10_2_0" and "10_2_0_pre6" are mentioned <...> strings) - 
0058 
0059 ./RunPions.csh 10_2_0 10_2_0_pre6
0060 
0061 
0062 (11) the result appear as the local directory 
0063 10_2_0_vs_10_2_0_pre6_SinglePi 
0064   
0065 which can be 
0066 (i) viewed with web browser locally, e.g.
0067 firefox 10_2_0_vs_10_2_0_pre6_SinglePi/index.html
0068 
0069 (ii) uploaded to some web server and viewed from anywhere:
0070 
0071 https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/HCAL/calo_scan_single_pi/10_2_0_vs_10_2_0_pre6_SinglePi
0072 
0073 NB:  hitso labels correspond to aforementioned <...> strings, here
0074 10_2_0 and 10_2_0_pre6 (as a reference)
0075 
0076 --------------------------------------------------
0077 NB: changes in the template since 760pre6
0078 to cope with a massive generator/smearing rearrangement in
0079 https://github.com/cms-sw/cmssw/pull/10858
0080 
0081 (A) to continue using default GEN source:
0082     /afs/cern.ch/cms/data/CMSSW/Validation/HcalHits/data/620/mc_pi50_eta05.root
0083 to be used template.py_since760pre6 (renaming it back to template.py)
0084 
0085 (B) for newly generated GEN:
0086     /afs/cern.ch/cms/data/CMSSW/Validation/HcalHits/data/76X/mc_pi50_eta05.root
0087 to be used template.py_since760pre6_forGEN_760pre6 (renaming it back to template.py)