0. env cd /publicfs/cms/user/taojq/ (or your home dir) setenv SCRAM_ARCH slc7_amd64_gcc700 (Bash: export SCRAM_ARCH=slc7_amd64_gcc700) (echo $SHELL) source /cvmfs/cms.cern.ch/cmsset_default.csh (Bash: source /cvmfs/cms.cern.ch/cmsset_default.sh) cmsrel CMSSW_10_6_29 cd CMSSW_10_6_29/src/ cmsenv mkdir PhotonIDMVA_ForRun2Hgg cp /publicfs/cms/user/taojq/CMSSW_10_6_29/src/PhotonIDMVA_ForRun2Hgg/* . #just put a soft link to the input file, since it's a large file ln -s /publicfs/cms/user/taojq/CMSSW_10_6_29/src/PhotonIDMVA_ForRun2Hgg/InputFile . 1. Producinh the comparispon plots of sig/bkg photons >mkdir SigBkgComparisonsPlots >root -l -b -q DrawComparisonPlots.C --> output plots under SigBkgComparisonsPlots/ 2. training for EB and EE separately root -l -b -q TMVAClassification_EB.C root -l -b -q TMVAClassification_EE.C --> weight files: PhotonID_Weight/weights/*.xml --> output root files: PhoID_barrel_Train_GJetMC.root and PhoID_endcap_Train_GJetMC.root >root -l >TMVA::TMVAGui("PhoID_barrel_Train_GJetMC.root") --> comparisons of inputs, correlation matrix, output, eff., .... 3. application in the analysis: root -l -b -q evaluateMVA_AnySample.C --> Output_mvares_included.root Cut on "idmva_res" to suppress bkg 4. To get the comparison plots of photon ID MVA between signal photon and fake photon, in EB and EE separately root -l -b -q DrawComparisonPlots.C #together with plotting style hggPaperStyle.C --> *.png / *.pdf plots ### for myself rm -rf SigBkgComparisonsPlots/ PhotonID_Weight/ *.png *.pdf *.root