Coder Social home page Coder Social logo

alexdemoor / recobtag-performancemeasurements Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swuchterl/recobtag-performancemeasurements

0.0 0.0 1.0 83.25 MB

Home Page: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BTagAnalyzer

Shell 0.01% C++ 0.53% Python 99.46%

recobtag-performancemeasurements's Introduction

RecoBTag-PerformanceMeasurements

Table of Contents

Basics & software setup
Instructions to run nTuplizers
General information
How to get the latest HLT configuration
Where to find the Run 3 reconstruction customization functions

Basics & software setup

# setting up the latest release
export SCRAM_ARCH=slc7_amd64_gcc900
cmsrel CMSSW_12_2_0_pre2
cd CMSSW_12_2_0_pre2/src
cmsenv

export CMSSW_GIT_REFERENCE=/cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init

git cms-addpkg HLTrigger/Configuration

#Run3TRK, see https://its.cern.ch/jira/browse/CMSHLT-2187
git cms-remote add mmasciov
git fetch mmasciov
git cherry-pick 91909330a10724646b4aed0596d62fc30a56a024
git cherry-pick b9f05b0bd850fd0e24d9024e8582c7b4cb418389

# clone our version of JMET tools
git clone https://github.com/SWuchterl/JMETriggerAnalysis.git -o SWuchterl -b run3

# make folder for external data (PFHadron calibrations and JEC)
mkdir -p ${CMSSW_BASE}/src/JMETriggerAnalysis/NTuplizers/data

# PFHC: preliminary HLT-PFHC for Run-3
cp /afs/cern.ch/work/m/missirol/public/run3/PFHC/PFHC_Run3Winter20_HLT_v01.db ${CMSSW_BASE}/src/JMETriggerAnalysis/NTuplizers/data/PFHC_Run3Winter20_HLT_v01.db

# JESC: preliminary HLT-JESCs for Run-3 (PF/PUPPI/CALO)
cp /afs/cern.ch/work/m/missirol/public/run3/JESC/Run3Winter20_V2_MC/Run3Winter20_V2_MC.db ${CMSSW_BASE}/src/JMETriggerAnalysis/NTuplizers/data/JESC_Run3Winter20_V2_MC.db

# clone this repository
git clone -b Run3_ForJIRA --recursive https://github.com/SWuchterl/RecoBTag-PerformanceMeasurements.git RecoBTag/PerformanceMeasurements

scram b -j12

Instructions to run nTuplizers

Offline (BTagAnalyzer)

The Offline ntuplizer can be run and configured through RecoBTag/PerformanceMeasurements/test/runBTagAnalyzer_cfg.py, to run it with the latest defaults

cmsRun runBTagAnalyzer_cfg.py defaults=Run3 runOnData=(True or False, depending on your needs) maxEvents=10

Online (HLTBTagAnalyzer)

The Offline ntuplizer can be run and configured through RecoBTag/PerformanceMeasurements/test/runBTagAnalyzer_cfg.py, to run it with the latest defaults

cmsRun runHLTBTagAnalyzer_cfg.py defaults=Run3 runOnData=(True or False, depending on your needs) maxEvents=10

General information

The content of the output nTuple is by default empty and has to be configured according to your needs. The store*Variables options have been removed. The new variable configuration can be customized in the file RecoBTag/PerformanceMeasurements/python/varGroups_cfi.py. New variables need also to be added (apart from adding them in the code) in RecoBTag/PerformanceMeasurements/python/variables_cfi.py

How to get the latest HLT configuration (GRun / on lxplus only)

Recent versions are also stored already in here For MC:

hltGetConfiguration /dev/CMSSW_12_2_0/GRun \
--full \
--offline \
--unprescale \
--mc \
--process HLT2 \
--globaltag auto:phase1_2021_realistic \
--max-events 10 \
> tmp.py
edmConfigDump tmp.py > HLT_dev_CMSSW_12_2_0_GRun_configDump_MC.py

For data:

hltGetConfiguration /dev/CMSSW_12_2_0/GRun \
--full \
--offline \
--unprescale \
--data \
--process HLT2 \
--globaltag auto:run3_hlt \
--max-events 10 \
--customise HLTrigger/Configuration/customizeHLTforCMSSW.customiseFor2018Input \
> tmp_data.py
edmConfigDump tmp_data.py > HLT_dev_CMSSW_12_2_0_GRun_configDump_Data.py

For data+timing:

hltGetConfiguration /dev/CMSSW_12_2_0/GRun \
--full \
--offline \
--unprescale \
--data \
--process HLT2 \
--globaltag auto:run3_hlt \
--max-events 10 \
--customise HLTrigger/Configuration/customizeHLTforCMSSW.customiseFor2018Input \
--timing \
> tmp_data_timing.py
edmConfigDump tmp_data_timing.py > HLT_dev_CMSSW_12_2_0_GRun_configDump_Data_timing.py

Where to find the Run 3 reconstruction customization functions

  • Run3TRK: For the tracking POG single iteration tracking seeded by Patatrack pixeltracks (Triplets+Quadruplets): here An example on how to apply it on top of the GRun menu is here and here

  • DeepJet: For the application of DeepJet to all pF btagging paths: here An example on how to apply it on top of the GRun menu is here

  • noCalo+ROI: For the ROI TRK+PF approach and removal of calo btagging: here An example on how to apply it on top of the GRun menu is here

  • noCalo+global: For the central/global TRK+PF and removal of calo btagging: here An example on how to apply it on top of the GRun menu is here

  • newROICalo+ROI: For the ROI TRK+PF approach and addition of new ROI calo btagging: here An example on how to apply it on top of the GRun menu is here

  • newROICalo+global: For the central/global TRK+PF and addition of new ROI calo btagging: here An example on how to apply it on top of the GRun menu is here

  • newGlobalCalo+global: For the central/global TRK+PF and addition of new central/global TRK calo btagging: here An example on how to apply it on top of the GRun menu is here

recobtag-performancemeasurements's People

Contributors

ferencek avatar swuchterl avatar rauser avatar dmajumder avatar pfs avatar kskovpen avatar demuller avatar niclaseich avatar capalmer85 avatar carolinecollard avatar kovitang avatar alphatsai avatar johnalison avatar wilsker avatar scodella avatar michaelbuttignol avatar smoortga avatar brieucf avatar emilbols avatar skaplanhex avatar xavieratcern avatar fojensen avatar kderoove avatar mroguljic avatar asady1 avatar kfloeh avatar qpythonn avatar

Forkers

munozariasjm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.