Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /DPGAnalysis/HcalTools/macros/amt/Readme is written in an unsupported language. File is not indexed.

0001 ========================================================================================================= AMT RGSM readme:
0002 Algorithm:
0003 ---------
0004 1. Use local LED runs taken during p-p collisions of 2016 and 2017;
0005 2. For each run and each HE ijk-channel (i=depth, j=eta, k=phi) 
0006      use <Aijk> - Ampitude averaged over events of run,
0007 where Amplitude: adcCounts collected either over 4 TSs(-1,max,+1,+2) or 
0008                                                     over all TSs(for x-check), w/o pedestal subtraction;
0009 3. Use root files produced by RMT, where these Amplitudes are available in histoes;
0010 4. Criteria for run selection: 
0011  - runs or/and channels with abnormal behavior are rejected;
0012 (abnormal behavior means:
0013 for channels: <Aijk> within some limits; for runs: R(see below)  within some limits; )
0014 5. averaging over depthes: <Aijk>  -->    <Ajk>_depth 
0015 6. Define R = <Ajk>_depth / <Ajk_ref>_depth
0016 7. Plots: R vs t (days)
0017 8 Runs selected:
0018 Use 
0019 =========================================================================================================  !!! how to see last local runs taken:
0020 ssh lxplus
0021 cd /eos/cms/store/group/dpg_hcal/comm_hcal/USC
0022 ls -latr run309573
0023 ls -latr
0024 =========================================================================================================  !!! how can remove dirs in CMT DIRECTLY!!!
0025 ssh lxplus
0026 cd /eos/cms/store/group/dpg_hcal/comm_hcal
0027 ll
0028 cd /eos/cms/store/group/dpg_hcal/comm_hcal/www/HcalRemoteMonitoring/CMT
0029 cd /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMweb/histos/   *root  files
0030 /afs/cern.ch/work/k/kodolova/public/RDMweb    directories
0031 /afs/cern.ch/work/k/kodolova/public/RDMweb/histos
0032 cd /eos/cms/store/group/dpg_hcal/comm_hcal/www/HcalRemoteMonitoring/
0033 
0034 posle zapuska RMT dlya sozdaniya root files:
0035 cd /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMweb/histos/
0036 ll > /afs/cern.ch/work/z/zhokin/hcal/soc7/CMSSW_10_4_0/src/RecoHcal/HcalPromptAnalysis/test/SHIFTER_VALIDATION/Cscripts/zzzlist.010319RDMweb
0037 
0038 posle zapuska scriptov postroeniya plotov RMT:
0039 cd /eos/cms/store/group/dpg_hcal/comm_hcal/www/HcalRemoteMonitoring/RMT/
0040 ll > /afs/cern.ch/work/z/zhokin/hcal/soc7/CMSSW_10_4_0/src/RecoHcal/HcalPromptAnalysis/test/SHIFTER_VALIDATION/Cscripts/zzzlist.010319
0041 
0042 
0043 
0044 
0045 ======= selected are:
0046 2016 : 81 runs since 10.05.2016 up to 15.11.2016
0047 (1st run 272946 in the list below is a reference run)
0048 "272946","272947","273117","273234","273316","273455","273557","273604","273616","273648", "273757","273763","273770","273894","273961","274752","274890","275013","275265","275430", "275457","275697","275807","275864","276081","276402","276416","276461","276462","276463", "276476","276520","276531","276554","276600","276678","277132","277172","277336","277511", "278596","278897","279058","279096", "279723", "279908","280200","280262","280379","281059","281362","281458","281645","281735","282462", "282726","282775","282776","282847","283010","283013","283098","283099","283101","283102", "283103","283104","283111","283296","283370","283398","283440","283442","283536","284124", "284184","284188", "284878","285101","285224","285349"
0049 and 81 corresponding days:
0050 1., 1., 2., 3., 5., 7., 10., 11., 11., 11., 15., 15., 15., 16., 17., 31., 35., 39., 41., 46., 46., 49., 51., 53., 55., 60., 60., 62., 62., 62., 62., 63., 64., 65., 66., 67., 77., 78., 80., 82., 96., 102., 105., 106., 115., 119., 123., 124., 125., 135., 139., 140., 143., 145., 153., 156., 157., 157., 158., 159., 159., 160., 160., 160., 160., 160., 160., 160., 162., 164., 164., 165., 165., 166., 175., 176., 176., 186., 188., 191., 193.
0051 (for reference run the day is equal 1)
0052 
0053 2017 : 22 runs since 28.05.2017 up to 07.11.2017
0054 (1st run 295401 in the list below is a reference run)
0055 "295401","295675","296185","296808","297082","297522","297571","297630","297687","298863", "299468","302183","302246","302585","304276","304432","304526","305142","305485","305711", "305886","306249"
0056 and 22 corresponding days:
0057 1., 4., 10., 18., 21., 30., 31., 32., 33., 46., 54., 97., 98., 106., 128., 130., 132., 142., 149., 152., 156., 164. 
0058 
0059  2018 : 73 runs since 07.05.2018 up to 02.12.2018
0060 (1st run 315812 in the list below is a reference run)
0061 "315812","315984","316826","317116","317193","317268","317271","317273","317363","317444","317606","317607","317609","317610","317611","317612","317613","317617","317785","318758","319198","319401","319517","319519","319520", "319564","319612","319734","319771","319774","319857","319969","320117","320158","320203","320205","320348","320579","320873","320892","320952","321019","321036","321187","321339","321359","321371","321447","321514","321853", "321874","322781","322782","323314","323502","323579","323613","323742","324030","324032","324138","324225","324296","324919","325141","325787","326234","326780","326875","327288","327438","327552","327579"
0062 and  73 corresponding days:
0063 (for reference run the day is equal 1)
0064 0., 2., 17., 22., 23., 24., 24., 24., 27., 29., 32., 32., 32., 32., 32., 32., 32., 32., 38., 51., 58., 63., 65., 65., 65., 66., 68., 70., 71., 71., 72., 74., 77., 78., 79., 79., 80., 85., 90., 91., 92., 93., 93., 98., 101., 101., 101., 104., 106., 112., 112., 129., 129., 138., 141., 142., 143., 146., 150., 150., 151., 153., 155., 165., 169., 179., 183., 193., 195., 203., 205., 208., 209. 
0065 
0066 
0067 
0068 
0069 9. Use AMT to provide visualization:
0070 https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/HcalRemoteMonitoring/AMT/HE.html
0071 Summary:
0072 
0073 
0074 ----------------------------------------------------------------------------------------
0075 
0076 ========================================================================================================= AMT RADDAM readme:
0077 // see V.Epshteyn plots:
0078 acroread /afs/cern.ch/user/z/zhokin/public/html/RADDAM/Note_draft_v2.pdf 
0079 acroread ~/zppt/HE_RadDam_Oct_12_2018.pdf
0080 
0081 readme:
0082 ======
0083 cd roc4/Cscripts
0084 setenv SCRAM_ARCH slc6_amd64_gcc530
0085 cmsenv
0086 voms-proxy-init -voms cms
0087 
0088 ln -s /afs/cern.ch/work/z/zhokin/hcal/roc4/CMSSW_9_2_14/src/RecoHcal/HcalPromptAnalysis/test/SHIFTER_VALIDATION/Cscripts raddam
0089 
0090 cd raddam
0091 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!================================    latest info: see ~/zppt/zzzhcal42.pdf with results (/afs/cern.ch/user/z/zhokin/private/talk_gsm110218  )
0092 ------------------------------------------------
0093 
0094 
0095 for RADDAM:
0096 ------------------------------------------------ HE:
0097 Latest script for RADDAM is zamt5raddam.cc
0098 emacs Readme zamt5raddam.cc  &
0099 zamt5raddam.cc   znegamt5raddam.cc
0100 
0101 
0102 for GSM:
0103 ------------------------------------------------ HE:
0104 zamt6raddam.cc for HPD channels 2017                              DONE  testamt6
0105 zamt6raddamHEP17.cc for HEP17 SiPM 2017                           DONE  testamt6HEP17
0106 zamt6raddamHEP178.cc for HEP17new & SiPM 20178                    DONE  testamt6HEP178
0107 
0108 zamt9gsm2018.cc      for SiPM 20178 shunt1 led-low-intensity      DONE  testamt9gsm2018
0109 zamtshunt6gsm2018.cc for SiPM 20178 shunt6 led                    DONE  testamtshunt6gsm2018            
0110 zamt0shunt6gsm2018.cc for SiPM 2018 shunt6 led                    DONE  testamt0shunt6gsm2018   last          
0111 
0112 zamt7raddam.cc for HPD channels 2016                              DONE
0113 zamt8raddam.cc for HPD channels 2016+2017                         DONE  testamt8
0114 ------------------------------------------------
0115 zamt9raddam.cc for HPD channels 2016+2017 + between               NOT DONE, no sense
0116 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  HB:
0117 for GSM:
0118 zamt5GSMHB.cc for HPD channels 2018                         DONE
0119 zamt6GSMHB.cc for HPD channels 2017                         DONE
0120 zamt7GSMHB.cc for HPD channels 2016                         DONE
0121 zamt8GSMHB.cc for HPD channels 2016+2017                    DONE
0122 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  HO:
0123 for GSM:
0124 zamt5GSMHO.cc for HPD channels 2018                         DONE
0125 zamt6GSMHO.cc for HPD channels 2017                         DONE
0126 zamt7GSMHO.cc for HPD channels 2016                         DONE
0127 zamt8GSMHO.cc for HPD channels 2016+2017                    DONE
0128 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  HF:
0129 for GSM:
0130 zamt5GSMHF.cc for HPD channels 2018                         DONE
0131 zamt5GSMHF.cc for HPD channels 2018                         DONE
0132 zamt6GSMHF.cc for HPD channels 2017                         DONE
0133 zamt7GSMHF.cc for HPD channels 2016                         DONE
0134 zamt8GSMHF.cc for HPD channels 2016+2017                    DONE
0135 
0136 
0137 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!================================
0138 ln -s /afs/cern.ch/work/z/zhokin/hcal/soc7/CMSSW_10_4_0/src/RecoHcal/HcalPromptAnalysis/test/SHIFTER_VALIDATION/Cscripts raddam
0139 latest, 8.8.2019
0140 /afs/cern.ch/work/z/zhokin/hcal/soc7/CMSSW_10_4_0/src/RecoHcal/HcalPromptAnalysis/test/SHIFTER_VALIDATION/Cscripts
0141 zamt2019raddam.cc  2018
0142 dir. with PLOTs: amt2019raddam
0143 
0144 to start:
0145 ./compile.csh zamt5raddam.cc
0146 ./zamt5raddam.cc.exe
0147 
0148 plots to be copied into /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/AMTweb/2016, 2016lin are here:
0149 cd raddam/testamt5
0150 
0151 zamt5raddam.cc allows to change flags: 
0152 
0153 1.flagcutamplitude - to reject channels with Aijk or with Mean-RMS of <Aijk> 
0154  = 0 Acut    =1 (mean_with_kfactor +  cutMinA)       =2 (mean_with_k2factor*RMS +cutMinA)   <--- all works good; plots are perfect for flagcutamplitude=2 (default now)
0155 
0156 2. flaglumiuse - to select X-scale eirther days or Lumi.
0157 
0158 3. flaggaincorrections - to use gain corrections(now stable - no need to play)
0159 
0160 Produce plots as for HEP and HEM at the same time, and in adddition some control plots.
0161 (Est' varianty ispol'zovaniya A, A12, A12withPedestalSubtraction(in each TS), but default is A12, kak u V.Epshtejna)
0162 
0163 Script znegamt5raddam.cc - just for checks only HEP or HEM (not at the same time, change massive by hands)
0164 
0165 Visualization is in:
0166 /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/AMTweb/
0167 /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/AMTweb/2016, 2016lin
0168 
0169 cp *png /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/AMTweb/2017/*
0170 
0171 
0172 
0173 
0174 Algorithm:
0175 1. Use local LASER runs during Stable Operation(protons only) of 2016
0176 [see CMS Fill Report:
0177 https://cmswbmoff.web.cern.ch/cmswbmoff/cmsdb/servlet/FillReport?N=12&BYLASTFILLS=TRUE&STABLE=TRUE
0178 https://cmswbm.cern.ch/cmsdb/servlet/FillReport?N=12&BYLASTFILLS=TRUE&STABLE=TRUE
0179 ]
0180 
0181 2. For each run and each HE channel use Ampitude averaged over events of run (<Aijk>).
0182 Amplitude: adcCounts collected over 4 TSs(-1,max,+1,+2) w/o pedestal subtraction.
0183 Use RMT root files, where these Amplitudes are available.
0184 
0185 3. Apply gain corrections for <Aijk>: LED runs 272847(ref.) and 285349
0186 
0187 4. Choose reference runs(10.05.2016) for HEP and HEM (272957 and 272967)
0188 
0189 5. Define Rijk =  <Aijk> /  <Aijk>_ref and reject bad channels: Rijk < 40.
0190 
0191 6. phi-averaging: Rijk  -->    <Rij>_phi
0192 
0193 7. Define Rr = <Rij>_phi / <R_3_16>_phi
0194 
0195 8. Plots: Rr vs t (days, Lumi)
0196 
0197 9. Use AMT to provide visualization:
0198 [
0199 https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/HcalRemoteMonitoring/AMT/HE.html
0200 ]
0201 
0202 * to specify runlist:
0203 cd /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMweb/histos/
0204 //ls *LASER*root > ~/raddam/zzzlist.61117
0205 ls *LASER*root > ~/raddam/zzzlist.71117
0206 ll *LASER*root |less
0207 ll *LED*root |less
0208 ls *LED*root > ~/raddam/zzzlist.200218
0209 
0210 //date=`cat zzzlist.61117 | awk '{print $7" "$8}'`
0211 date=`cat zzzlist.61117 | awk '{print $7" "$8}'`
0212 cat zzzlist.61117 | awk '{print $7" "$8}' > zzzlist.61117-1
0213 
0214 ls *LED*root > ~/raddam/zzzlist.120218
0215 date=`cat zzzlist.120218 | awk '{print $7" "$8}'`
0216 cat zzzlist.120218 | awk '{print $7" "$8}' > zzzlist.120218-1
0217 
0218 use emacs  rektangle
0219 select rektangle C-probel move strelki, a zatem:
0220 C-x r k  -ubit' rektangle
0221 
0222 ========================================================================================================= 
0223 
0224 
0225 
0226 
0227