-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11879 from bsunanda/Run2-hcx43
bsunanda:Run2 hcx43 Modify the scripts (Salavat) for pion scans
- Loading branch information
Showing
3 changed files
with
290 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
129 changes: 129 additions & 0 deletions
129
Validation/CaloTowers/test/CaloScan/template.py_since760pre6
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TEST") | ||
|
||
### RANDOM setting (change last digit(s) to make runs different !) | ||
process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff") | ||
|
||
process.load("Configuration.StandardSequences.Simulation_cff") | ||
process.load("Configuration.StandardSequences.Reconstruction_cff") | ||
process.load("SimGeneral.MixingModule.mixNoPU_cfi") | ||
process.load('Configuration/StandardSequences/DigiToRaw_cff') | ||
process.load('Configuration/StandardSequences/RawToDigi_cff') | ||
|
||
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") | ||
from Configuration.AlCa.autoCond import autoCond | ||
process.GlobalTag.globaltag = autoCond['run2_mc'] | ||
|
||
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") | ||
process.load("Configuration.StandardSequences.GeometryDB_cff") | ||
process.load("Configuration.StandardSequences.MagneticField_cff") | ||
process.g4SimHits.UseMagneticField = False | ||
|
||
process.load("DQMServices.Core.DQMStore_cfi") | ||
process.load("DQMServices.Components.MEtoEDMConverter_cfi") | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(2000) | ||
) | ||
# Input source | ||
process.source = cms.Source("PoolSource", | ||
firstEvent = cms.untracked.uint32(XXXXX), | ||
fileNames = cms.untracked.vstring('file:mc.root') | ||
) | ||
|
||
process.FEVT = cms.OutputModule("PoolOutputModule", | ||
outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'), | ||
splitLevel = cms.untracked.int32(0), | ||
fileName = cms.untracked.string("output.root") | ||
) | ||
|
||
process.VtxSmeared.SigmaX = 0.00001 | ||
process.VtxSmeared.SigmaY = 0.00001 | ||
process.VtxSmeared.SigmaZ = 0.00001 | ||
|
||
process.HcalSimHitsAnalyser = cms.EDAnalyzer("HcalSimHitsValidation", | ||
outputFile = cms.untracked.string('HcalSimHitsValidation.root') | ||
) | ||
|
||
process.hcalDigiAnalyzer = cms.EDAnalyzer("HcalDigisValidation", | ||
outputFile = cms.untracked.string('HcalDigisValidationRelVal.root'), | ||
digiLabel = cms.InputTag("hcalDigis"), | ||
zside = cms.untracked.string('*'), | ||
mode = cms.untracked.string('multi'), | ||
|
||
hcalselector = cms.untracked.string('all'), | ||
mc = cms.untracked.string('yes') # 'yes' for MC | ||
) | ||
|
||
process.hcalRecoAnalyzer = cms.EDAnalyzer("HcalRecHitsValidation", | ||
outputFile = cms.untracked.string('HcalRecHitValidationRelVal.root'), | ||
HBHERecHitCollectionLabel = cms.untracked.InputTag("hbhereco"), | ||
HFRecHitCollectionLabel = cms.untracked.InputTag("hfreco"), | ||
HORecHitCollectionLabel = cms.untracked.InputTag("horeco"), | ||
eventype = cms.untracked.string('single'), | ||
ecalselector = cms.untracked.string('yes'), | ||
hcalselector = cms.untracked.string('all'), | ||
mc = cms.untracked.string('yes') # default ! | ||
) | ||
|
||
process.hcalTowerAnalyzer = cms.EDAnalyzer("CaloTowersValidation", | ||
outputFile = cms.untracked.string('CaloTowersValidationRelVal.root'), | ||
CaloTowerCollectionLabel = cms.untracked.InputTag('towerMaker'), | ||
hcalselector = cms.untracked.string('all'), | ||
mc = cms.untracked.string('yes') # default! | ||
) | ||
|
||
#--- replace hbhereco with hbheprereco | ||
delattr(process,"hbhereco") | ||
process.hbhereco = process.hbheprereco.clone() | ||
process.hcalLocalRecoSequence = cms.Sequence(process.hbhereco+process.hfreco+process.horeco) | ||
|
||
|
||
#--- post-LS1 customization | ||
process.mix.digitizers.hcal.minFCToDelay=cms.double(5.) # new TS model | ||
process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16) | ||
process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1) | ||
process.mix.digitizers.hcal.ho.pixels = cms.int32(2500) | ||
process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False) | ||
process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.67) | ||
process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.67) | ||
process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root' | ||
|
||
|
||
|
||
#---------- PATH | ||
# -- NB: for vertex smearing the Label should be: "unsmeared" | ||
# for GEN produced since 760pre6, for older GEN - just "": | ||
process.VtxSmeared.src = cms.InputTag("generator", "") | ||
process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer") | ||
process.g4SimHits.Generator.HepMCProductLabel = 'VtxSmeared' | ||
|
||
process.p = cms.Path( | ||
process.VtxSmeared * | ||
process.generatorSmeared * | ||
process.g4SimHits * | ||
process.mix * | ||
process.ecalDigiSequence * | ||
process.hcalDigiSequence * | ||
process.addPileupInfo * | ||
process.bunchSpacingProducer * | ||
process.ecalPacker * | ||
process.esDigiToRaw * | ||
process.hcalRawData * | ||
process.rawDataCollector * | ||
process.ecalDigis * | ||
process.ecalPreshowerDigis * | ||
process.hcalDigis * | ||
process.calolocalreco * | ||
process.caloTowersRec * | ||
process.hcalnoise * | ||
process.HcalSimHitsAnalyser * | ||
process.hcalDigiAnalyzer * | ||
process.hcalTowerAnalyzer * | ||
process.hcalRecoAnalyzer * | ||
process.MEtoEDMConverter | ||
) | ||
|
||
process.outpath = cms.EndPath(process.FEVT) | ||
|
126 changes: 126 additions & 0 deletions
126
Validation/CaloTowers/test/CaloScan/template.py_since760pre6_forGEN_760pre6
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TEST") | ||
|
||
### RANDOM setting (change last digit(s) to make runs different !) | ||
process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff") | ||
|
||
process.load("Configuration.StandardSequences.Simulation_cff") | ||
process.load("Configuration.StandardSequences.Reconstruction_cff") | ||
process.load("SimGeneral.MixingModule.mixNoPU_cfi") | ||
process.load('Configuration/StandardSequences/DigiToRaw_cff') | ||
process.load('Configuration/StandardSequences/RawToDigi_cff') | ||
|
||
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") | ||
from Configuration.AlCa.autoCond import autoCond | ||
process.GlobalTag.globaltag = autoCond['run2_mc'] | ||
|
||
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") | ||
process.load("Configuration.StandardSequences.GeometryDB_cff") | ||
process.load("Configuration.StandardSequences.MagneticField_cff") | ||
process.g4SimHits.UseMagneticField = False | ||
|
||
process.load("DQMServices.Core.DQMStore_cfi") | ||
process.load("DQMServices.Components.MEtoEDMConverter_cfi") | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(2000) | ||
) | ||
# Input source | ||
process.source = cms.Source("PoolSource", | ||
firstEvent = cms.untracked.uint32(XXXXX), | ||
fileNames = cms.untracked.vstring('file:mc.root') | ||
) | ||
|
||
process.FEVT = cms.OutputModule("PoolOutputModule", | ||
outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'), | ||
splitLevel = cms.untracked.int32(0), | ||
fileName = cms.untracked.string("output.root") | ||
) | ||
|
||
process.VtxSmeared.SigmaX = 0.00001 | ||
process.VtxSmeared.SigmaY = 0.00001 | ||
process.VtxSmeared.SigmaZ = 0.00001 | ||
|
||
process.HcalSimHitsAnalyser = cms.EDAnalyzer("HcalSimHitsValidation", | ||
outputFile = cms.untracked.string('HcalSimHitsValidation.root') | ||
) | ||
|
||
process.hcalDigiAnalyzer = cms.EDAnalyzer("HcalDigisValidation", | ||
outputFile = cms.untracked.string('HcalDigisValidationRelVal.root'), | ||
digiLabel = cms.InputTag("hcalDigis"), | ||
zside = cms.untracked.string('*'), | ||
mode = cms.untracked.string('multi'), | ||
|
||
hcalselector = cms.untracked.string('all'), | ||
mc = cms.untracked.string('yes') # 'yes' for MC | ||
) | ||
|
||
process.hcalRecoAnalyzer = cms.EDAnalyzer("HcalRecHitsValidation", | ||
outputFile = cms.untracked.string('HcalRecHitValidationRelVal.root'), | ||
HBHERecHitCollectionLabel = cms.untracked.InputTag("hbhereco"), | ||
HFRecHitCollectionLabel = cms.untracked.InputTag("hfreco"), | ||
HORecHitCollectionLabel = cms.untracked.InputTag("horeco"), | ||
eventype = cms.untracked.string('single'), | ||
ecalselector = cms.untracked.string('yes'), | ||
hcalselector = cms.untracked.string('all'), | ||
mc = cms.untracked.string('yes') # default ! | ||
) | ||
|
||
process.hcalTowerAnalyzer = cms.EDAnalyzer("CaloTowersValidation", | ||
outputFile = cms.untracked.string('CaloTowersValidationRelVal.root'), | ||
CaloTowerCollectionLabel = cms.untracked.InputTag('towerMaker'), | ||
hcalselector = cms.untracked.string('all'), | ||
mc = cms.untracked.string('yes') # default! | ||
) | ||
|
||
#--- replace hbhereco with hbheprereco | ||
delattr(process,"hbhereco") | ||
process.hbhereco = process.hbheprereco.clone() | ||
process.hcalLocalRecoSequence = cms.Sequence(process.hbhereco+process.hfreco+process.horeco) | ||
|
||
|
||
#--- post-LS1 customization | ||
process.mix.digitizers.hcal.minFCToDelay=cms.double(5.) # new TS model | ||
process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16) | ||
process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1) | ||
process.mix.digitizers.hcal.ho.pixels = cms.int32(2500) | ||
process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False) | ||
process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.67) | ||
process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.67) | ||
process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root' | ||
|
||
|
||
|
||
#---------- PATH | ||
process.g4SimHits.Generator.HepMCProductLabel = 'VtxSmeared' | ||
process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer") | ||
|
||
process.p = cms.Path( | ||
process.VtxSmeared * | ||
process.generatorSmeared * | ||
process.g4SimHits * | ||
process.mix * | ||
process.ecalDigiSequence * | ||
process.hcalDigiSequence * | ||
process.addPileupInfo * | ||
process.bunchSpacingProducer * | ||
process.ecalPacker * | ||
process.esDigiToRaw * | ||
process.hcalRawData * | ||
process.rawDataCollector * | ||
process.ecalDigis * | ||
process.ecalPreshowerDigis * | ||
process.hcalDigis * | ||
process.calolocalreco * | ||
process.caloTowersRec * | ||
process.hcalnoise * | ||
process.HcalSimHitsAnalyser * | ||
process.hcalDigiAnalyzer * | ||
process.hcalTowerAnalyzer * | ||
process.hcalRecoAnalyzer * | ||
process.MEtoEDMConverter | ||
) | ||
|
||
process.outpath = cms.EndPath(process.FEVT) | ||
|