Last active
December 1, 2015 14:53
-
-
Save matz-e/228ae29330aacb32d273 to your computer and use it in GitHub Desktop.
Test configuration for HCAL HF 1x1 update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import FWCore.ParameterSet.Config as cms | |
| process = cms.Process("HFCALIB") | |
| ## Import of standard configurations | |
| process.load('FWCore/MessageService/MessageLogger_cfi') | |
| process.MessageLogger.cerr.FwkReport.reportEvery = 100 | |
| process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff") | |
| process.GlobalTag.globaltag = 'PRE_SHI72_V7' | |
| process.GlobalTag.globaltag = '76X_mcRun2_HeavyIon_v11' | |
| process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) | |
| process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) | |
| process.source = cms.Source("PoolSource", | |
| fileNames = cms.untracked.vstring('/store/relval/CMSSW_8_0_0_pre1/RelValHydjetQ_MinBias_5020GeV/GEN-SIM-DIGI-RAW-HLTDEBUG/76X_mcRun2_HeavyIon_v11_resub-v1/00000/0C2BBF49-3387-E511-ADD5-3417EBE6459A.root') | |
| ) | |
| process.out = cms.OutputModule( "PoolOutputModule", | |
| fileName = cms.untracked.string("output.root"), | |
| outputCommands = cms.untracked.vstring( 'keep *' ) | |
| ) | |
| process.load('L1Trigger.RegionalCaloTrigger.rctDigis_cfi') | |
| process.rctDigis.hcalDigis = cms.VInputTag(cms.InputTag("simHcalTriggerPrimitiveDigis")) | |
| process.load("Geometry.HcalCommonData.testPhase0GeometryXML_cfi") | |
| process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi") | |
| process.load("Configuration.Geometry.GeometryReco_cff") | |
| process.load('SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff') | |
| #process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag( cms.InputTag('simHcalUnsuppressedDigis'), cms.InputTag('simHcalUnsuppressedDigis') ) | |
| process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag( cms.InputTag('simHcalDigis'), cms.InputTag('simHcalDigis') ) | |
| process.simHcalTriggerPrimitiveDigis.FrontEndFormatError = cms.bool(False) | |
| process.HcalTrigTowerGeometryESProducer.useFullGranularityHF = cms.bool( True ) | |
| #process.hcalCond = cms.EDAnalyzer("HcalDumpConditions", | |
| # dump = cms.untracked.vstring( | |
| # 'LutMetadata' | |
| # ), | |
| # outFilePrefix = cms.untracked.string('DumpCond') | |
| #) | |
| ## OPT1 | |
| # process.es_ascii = cms.ESSource("HcalTextCalibrations", | |
| # input = cms.VPSet( | |
| # cms.PSet( | |
| # object = cms.string('LutMetadata'), | |
| # # full path: /afs/cern.ch/user/a/akhukhun/public/HF1x1TPs/LutMetadata_1x1.txt | |
| # file = cms.FileInPath('LutMetadata_1x1.txt') | |
| # ) | |
| # ) | |
| # ) | |
| # process.es_prefer_es_ascii = cms.ESPrefer("HcalTextCalibrations", "es_ascii") | |
| # process.es_pool = cms.ESSource("PoolDBESSource", | |
| # process.CondDBSetup, | |
| # timetype = cms.string('runnumber'), | |
| # toGet = cms.VPSet( | |
| # cms.PSet( | |
| # record = cms.string("HcalLutMetadataRcd"), | |
| # tag = cms.string("HcalLutMetadata_v3.00_mc") | |
| # ) | |
| # ), | |
| # connect = cms.string('frontier://FrontierProd/CMS_COND_31X_HCAL'), | |
| # authenticationMethod = cms.untracked.uint32(0), | |
| # ) | |
| # process.es_prefer_es_pool = cms.ESPrefer("PoolDBESSource", "es_pool") | |
| process.dump = cms.EDAnalyzer("HcalDigiDump") | |
| process.TFileService = cms.Service("TFileService", | |
| fileName = cms.string('HcalTrigDigiDump.root') | |
| ) | |
| ## OPT2 | |
| # process.load('CalibCalorimetry.HcalPlugins.Hcal_Conditions_forGlobalTag_cff') | |
| # process.es_hardcode.toGet.append("LutMetadata") | |
| process.p = cms.Path(process.simHcalTriggerPrimitiveDigis + process.dump + process.rctDigis) | |
| with open('test2.txt', 'w') as f: | |
| f.write(process.dumpPython()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| source /cvmfs/cms.cern.ch/cmsset_default.sh | |
| cmsrel CMSSW_8_0_X_2015-11-30-2300 | |
| cd CMSSW_8_0_X_2015-11-30-2300/src | |
| cmsenv | |
| git cms-init | |
| git cms-merge-topic 12438 | |
| git cms-merge-topic akhukhun:HF1x1LUTs80X | |
| git cms-merge-topic matz-e:hf-1x1-tp-algo-v3 | |
| # Don't check out DataFormats, fails when running scram | |
| sed -i '/DataFormats/d' .git/info/sparse-checkout | |
| git read-tree -mu HEAD | |
| scram b -j 8 | |
| curl https://gist.githubusercontent.com/matz-e/228ae29330aacb32d273/raw/5646d98123bccffa602482de3652dc7cab9a889f/hf_1x1_test.py > test.py | |
| sed -i '79,80 s/^# //' test.py | |
| cmsRun test.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment