/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
GeneratorInterface/Pythia8Interface/test/JetPlotsExample.py
90 строк
3 KB
Mikhail Kirsanov
align HepMC3 plugin and add test configs
26 сен 2025, 16:42
26 сен 2025, 16:42
5c56e00
Код
Авторство
О чём код?
# PYTHON configuration file for class: JetPlotsExample # Description: Example of simple EDAnalyzer for jets. # Author: K. Kousouris # Date: 25 - August - 2008 # Modified: Kalanand Mishra # Date: 11 - January - 2011 (for CMS Data Analysis School jet exercise) import FWCore.ParameterSet.Config as cms ## ____ _ __ __ ____ ## | _ \ __ _| |_ __ _ ___ _ __ | \/ |/ ___| ## | | | |/ _` | __/ _` | / _ \| '__| | |\/| | | ## | |_| | (_| | || (_| | | (_) | | | | | | |___ ## |____/ \__,_|\__\__,_| \___/|_| |_| |_|\____| isMC = True ## ____ __ _ _ _ ## / ___|___ _ __ / _(_) __ _ _ _ _ __ __ _| |__ | | ___ ___ ## | | / _ \| '_ \| |_| |/ _` | | | | '__/ _` | '_ \| |/ _ \/ __| ## | |__| (_) | | | | _| | (_| | |_| | | | (_| | |_) | | __/\__ \ ## \____\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|_.__/|_|\___||___/ ## |___/ NJetsToKeep = 2 if isMC: inputFile ='file:pythia8hmc3G4Jets.root' ## _ _ _ ## (_)_ __ ___| |_ _ __| | ___ ___ ## | | '_ \ / __| | | | |/ _` |/ _ \/ __| ## | | | | | (__| | |_| | (_| | __/\__ \ ## |_|_| |_|\___|_|\__,_|\__,_|\___||___/ process = cms.Process("Ana") ############# Format MessageLogger ################# process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 10 ## ____ _ ____ ## | _ \ ___ ___ | / ___| ___ _ _ _ __ ___ ___ ## | |_) / _ \ / _ \| \___ \ / _ \| | | | '__/ __/ _ \ ## | __/ (_) | (_) | |___) | (_) | |_| | | | (_| __/ ## |_| \___/ \___/|_|____/ \___/ \__,_|_| \___\___| ############# Set the number of events ############# process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) ############# Define the source file ############### process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(inputFile) ) process.source.inputCommands = cms.untracked.vstring("keep *","drop *_MEtoEDMConverter_*_*") ## ____ _ _ ## | _ \| | ___ | |_ ___ ## | |_) | |/ _ \| __/ __| ## | __/| | (_) | |_\__ \ ## |_| |_|\___/ \__|___/ ############# Gen Jets ########################### if isMC: process.analyseGen = cms.EDAnalyzer("GenJetPlotsExample", JetAlgorithm = cms.string('ak4GenJets'), HistoFileName = cms.string('GenJetPlotsExample.root'), NJets = cms.int32(NJetsToKeep) ) ############# Path ########################### ## ____ _ _ ## | _ \ __ _| |_| |__ ## | |_) / _` | __| '_ \ ## | __/ (_| | |_| | | | ## |_| \__,_|\__|_| |_| if isMC: process.p = cms.Path(process.analyseGen) else: process.p = cms.Path(process.calo*process.pf*process.jpt)