Tau Offline DQM

CMSSW_12_3_0_pre6

The instruction for initialising the CMSSW release,

cmsrel CMSSW_12_3_0_pre6
cd CMSSW_12_3_0_pre6/src
cmsenv

#To Run on regional setup
git cms-remote add kandrosov
git cherry-pick fc6262f647263a91b33d8a38efc0717eb58be9d7
scram b -j 12

The following packages are need for the DQM studies are,

git cms-addpkg L1Trigger /L1TGlobal
mkdir -p L1Trigger /L1TGlobal/data/Luminosity/startup
cd L1Trigger /L1TGlobal/data/Luminosity/startup
wget https://raw.githubusercontent.com/cms-l1-dpg/L1MenuRun3/master/development/L1Menu_Collisions2022_v0_1_2/L1Menu_Collisions2022_v0_1_2.xml
wget https://raw.githubusercontent.com/cms-l1-dpg/L1MenuRun3/master/preliminary/L1Menu_Collisions2022_v0_1_5/L1Menu_Collisions2022_v0_1_5.xml
wget https://raw.githubusercontent.com/cms-l1-dpg/L1MenuRun3/master/preliminary/L1Menu_Collisions2022_v0_1_5/PrescaleTable/UGT_BASE_RS_FINOR_MASK_L1MenuCollisions2022_v5.xml
wget https://raw.githubusercontent.com/cms-l1-dpg/L1MenuRun3/master/preliminary/L1Menu_Collisions2022_v0_1_5/PrescaleTable/UGT_BASE_RS_PRESCALES_L1MenuCollisions2022_v5.xml
wget https://raw.githubusercontent.com/cms-l1-dpg/L1MenuRun3/master/preliminary/L1Menu_Collisions2022_v0_1_6/L1Menu_Collisions2022_v0_1_6.xml

cd -

git cms-addpkg L1Trigger /Configuration

Edit the file L1Trigger /Configuration/python/customiseUtils.py by changing the L1TriggerMenuFile:

- process.TriggerMenu.L1TriggerMenuFile = cms.string('L1Menu_Collisions2016_v2c.xml') 
+ process.TriggerMenu.L1TriggerMenuFile = cms.string('L1Menu_Collisions2022_v0_1_6.xml')

git cms-addpkg HLTrigger/Configuration
git cms-addpkg DQMOffline/Trigger
git cms-addpkg HLTriggerOffline /Common

scram b -j 8

DQM Offline

The following instructions used for obtaining DQM or Validation plots for the Tau.

#2021 MC
hltGetConfiguration /dev/CMSSW_12_3_0/GRun/V52  --cff --offline  \
--globaltag auto:phase1_2021_realistic   --mc    --unprescale --eras Run3  \
--setup /dev/CMSSW_12_3_0/GRun/V52 --type "GRun"  \
--l1-emulator FullMC --l1Xml L1Menu _Collisions2022_v0_1_6.xml > HLT_User_cff.py

cp setup_dev_CMSSW_12_3_0_GRun_V52_cff.py HLTrigger/Configuration/python/
cp HLT_User_cff.py HLTrigger/Configuration/python/

scram b -j 24
NB: if you move setup_dev_CMSSW_12_3_0_GRun_V52_cff.py file in the HLTrigger/Configuration/python/ directory, you need to update your HLT_User_cff.py
fragment.load("setup_dev_CMSSW_12_3_0_GRun_V52_cff")

to

fragment.load("HLTrigger.Configuration.setup_dev_CMSSW_12_3_0_GRun_V52_cff")

Preparation of RAW files with the new hlt menu implemented. First run it over local system with the cmsDriver command,

#2021 mc
#Remove crashes due to scouting: https://github.com/cms-sw/cmssw/issues/37013#issuecomment-1055922546
cmsDriver.py step0 -s HLT:User --conditions  auto:phase1_2021_realistic --era Run3 --mc \
--eventcontent FEVTDEBUGHLT --hltProcess reHLT \
--filein /store/mc/Run3Summer21DRPremix/VBFHToTauTau_M125_TuneCP5_14TeV-powheg-pythia8/GEN-SIM-DIGI-RAW/120X_mcRun3_2021_realistic_v6-v2/30000/00dbda61-e142-4d8a-aa8e-886c3c79fdc4.root  \
--inputCommands="keep *,drop Run3Scouting*_hltScouting*Packer__HLT" \
----python_filename=rerun_hlt_cfg.py \
--processName=reHLT -n 10

If your configuration file is saved as other than HLT_User_cff.py one can replace at rerun_hlt_cfg.py file. Once the code runs successfully one can submit to the Crab. An example crab configuration file can find at here

import CRABClient
from CRABClient.UserUtilities import config

config = config()

config.General.requestName = '12_3_0_pre6_jec'
config.General.workArea = '12_3_0_pre6_jec'
config.General.transferOutputs = True

#config.JobType.numCores = 4
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = 'rerun_hlt_cfg.py'
config.JobType.maxMemoryMB = 3000

config.Data.inputDataset = '/VBFHToTauTau_M125_TuneCP5_14TeV-powheg-pythia8/Run3Summer21DRPremix-120X_mcRun3_2021_realistic_v6-v2/GEN-SIM-DIGI-RAW'
config.Data.useParent = False
config.Data.splitting = 'EventAwareLumiBased'
config.Data.unitsPerJob = 100
#NJOBS = 10  # This is not a configuration parameter, but an auxiliary variable that we use in the next line.
#config.Data.totalUnits = config.Data.unitsPerJob * NJOBS
config.Data.publication = True
config.Data.outLFNDirBase = '/store/user/vmuralee/DQM_12_3_0_pre6JEC/'

config.Site.storageSite = 'T2_IN_TIFR'
-- VinayaKrishnaNair - 2022-03-23
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2022-03-23 - VinayaKrishnaNair
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback