diff --git a/Validation/HGCalValidation/plugins/HGCalBHValidation.cc b/Validation/HGCalValidation/plugins/HGCalBHValidation.cc index dcdad719d1216..d6410f07b8369 100644 --- a/Validation/HGCalValidation/plugins/HGCalBHValidation.cc +++ b/Validation/HGCalValidation/plugins/HGCalBHValidation.cc @@ -116,16 +116,16 @@ void HGCalBHValidation::beginRun(edm::Run const&, edm::EventSetup const& es) { hsimE1_ = fs_->make("SimHitEn1", "Sim Hit Energy", 1000, 0.0, 1.0); hsimE2_ = fs_->make("SimHitEn2", "Sim Hit Energy", 1000, 0.0, 1.0); hsimTm_ = fs_->make("SimHitTime", "Sim Hit Time", 1000, 0.0, 500.0); - hsimLn_ = fs_->make("SimHitLong", "Sim Hit Long. Profile", 40, 0.0, 20.0); + hsimLn_ = fs_->make("SimHitLong", "Sim Hit Long. Profile", 50, 0.0, 25.0); hsimOc_ = fs_->make("SimHitOccup", "Sim Hit Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 360, 0, 360); hsi2Oc_ = fs_->make("SimHitOccu2", "Sim Hit Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 360, 0, 360); - hsi3Oc_ = fs_->make("SimHitOccu3", "Sim Hit Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 40, 0, 20); + hsi3Oc_ = fs_->make("SimHitOccu3", "Sim Hit Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 50, 0, 25); //Histograms for Digis hdigEn_ = fs_->make("DigiEnergy", "Digi ADC Sample", 1000, 0.0, 1000.0); - hdigLn_ = fs_->make("DigiLong", "Digi Long. Profile", 40, 0.0, 20.0); + hdigLn_ = fs_->make("DigiLong", "Digi Long. Profile", 50, 0.0, 25.0); hdigOc_ = fs_->make("DigiOccup", "Digi Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 360, 0, 360); hdi2Oc_ = fs_->make("DigiOccu2", "Digi Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 360, 0, 360); - hdi3Oc_ = fs_->make("DigiOccu3", "Digi Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 40, 0, 20); + hdi3Oc_ = fs_->make("DigiOccu3", "Digi Occupnacy", 2 * etaMax_ + 1, -etaMax_, etaMax_ + 1, 50, 0, 25); } void HGCalBHValidation::analyze(const edm::Event& e, const edm::EventSetup&) { @@ -144,8 +144,8 @@ void HGCalBHValidation::analyze(const edm::Event& e, const edm::EventSetup&) { double energy = it->energy(); double time = it->time(); unsigned int id = it->id(); - int subdet, z, depth, eta, phi, lay; - bool hbhe, bh; + int subdet(0), z(0), depth(0), eta(0), phi(0), lay(0); + bool hbhe(false), bh(false); if (geomType_ == 0) { HcalTestNumbering::unpackHcalIndex(id, subdet, z, depth, eta, phi, lay); if (z == 0) @@ -160,14 +160,15 @@ void HGCalBHValidation::analyze(const edm::Event& e, const edm::EventSetup&) { lay = HGCScintillatorDetId(id).layer(); } } + double eta1 = (eta >= 0) ? (eta + 0.1) : (eta - 0.1); if (hbhe) - hsi2Oc_->Fill((eta + 0.1), (phi - 0.1), energy); + hsi2Oc_->Fill(eta1, (phi - 0.1), energy); if (bh) { hsimE1_->Fill(energy); hsimTm_->Fill(time, energy); - hsimOc_->Fill((eta + 0.1), (phi - 0.1), energy); + hsimOc_->Fill(eta1, (phi - 0.1), energy); hsimLn_->Fill(lay, energy); - hsi3Oc_->Fill((eta + 0.1), lay, energy); + hsi3Oc_->Fill(eta1, lay, energy); double ensum(0); if (map_try.count(id) != 0) ensum = map_try[id]; @@ -248,12 +249,13 @@ void HGCalBHValidation::analyzeDigi( if (energy > threshold_) { int eta = cell.ieta(); int phi = cell.iphi(); - hdi2Oc_->Fill((eta + 0.1), (phi - 0.1)); + double eta1 = (eta >= 0) ? (eta + 0.1) : (eta - 0.1); + hdi2Oc_->Fill(eta1, (phi - 0.1)); if (bh) { hdigEn_->Fill(energy); - hdigOc_->Fill((eta + 0.1), (phi - 0.1)); + hdigOc_->Fill(eta1, (phi - 0.1)); hdigLn_->Fill(depth); - hdi3Oc_->Fill((eta + 0.1), depth); + hdi3Oc_->Fill(eta1, depth); ++kount; edm::LogVerbatim("HGCalValidation") << "HGCalBHDigit[" << kount << "] ID " << cell << " E " << energy << ":" << (energy > threshold_); diff --git a/Validation/HGCalValidation/test/HGCalWaferStudy.cc b/Validation/HGCalValidation/test/HGCalWaferStudy.cc index 4491420a020ea..f45459e45698f 100644 --- a/Validation/HGCalValidation/test/HGCalWaferStudy.cc +++ b/Validation/HGCalValidation/test/HGCalWaferStudy.cc @@ -290,6 +290,7 @@ void HGCalWaferStudy::beginRun(const edm::Run&, const edm::EventSetup& iSetup) { h_XYsi2_[ih].emplace_back(fs->make( name.str().c_str(), title.str().c_str(), nBinHit_, xyMinHit_, xyMaxHit_, nBinHit_, xyMinHit_, xyMaxHit_)); } + edm::LogVerbatim("HGCalValidation") << "Complete booking of Sim Plots for " << nameDetectors_[ih]; for (int i = layerMnDig_[ih]; i <= layerMxDig_[ih]; ++i) { name.str(""); @@ -309,6 +310,7 @@ void HGCalWaferStudy::beginRun(const edm::Run&, const edm::EventSetup& iSetup) { h_XYdi2_[ih].emplace_back(fs->make( name.str().c_str(), title.str().c_str(), nBinDig_, xyMinDig_, xyMaxDig_, nBinDig_, xyMinDig_, xyMaxDig_)); } + edm::LogVerbatim("HGCalValidation") << "Complete booking of Digi Plots for " << nameDetectors_[ih]; } } diff --git a/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py b/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py index d016369205ea1..c7ffdf76f95f8 100644 --- a/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCGeomCheck_cfg.py @@ -5,15 +5,30 @@ #process.load('Configuration.Geometry.GeometryExtended2026D35_cff') #process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('HGCGeomAnalysis',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') +#from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 +#process = cms.Process('HGCGeomAnalysis',Phase2C8) +#process.load('Configuration.Geometry.GeometryExtended2026D41_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') #from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 #process = cms.Process('HGCGeomAnalysis',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff') + +#from Configuration.Eras.Era_Phase2C12_cff import Phase2C12 +#process = cms.Process('HGCGeomAnalysis',Phase2C12) +#process.load('Configuration.Geometry.GeometryExtended2026D58_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D58Reco_cff') + +#from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +#process = cms.Process('HGCGeomAnalysis',Phase2C11) +#process.load('Configuration.Geometry.GeometryExtended2026D59_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D59Reco_cff') + +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') @@ -32,14 +47,14 @@ process.MessageLogger.cerr.FwkReport.reportEvery = 100 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( - 'file:testHGCalSimWatcherV10.root', + 'file:testHGCalSimWatcherV14.root', ) ) process.load('Validation.HGCalValidation.hgcGeomCheck_cff') process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcGeomCheckV10.root'), + fileName = cms.string('hgcGeomCheckD62.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py b/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py index ab1b6f1d065d6..ed70cb7edb144 100644 --- a/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py @@ -5,15 +5,30 @@ #process.load('Configuration.Geometry.GeometryExtended2026D35_cff') #process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('HGCGeomAnalysis',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') +#from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 +#process = cms.Process('HGCGeomAnalysis',Phase2C8) +#process.load('Configuration.Geometry.GeometryExtended2026D41_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') #from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 #process = cms.Process('HGCGeomAnalysis',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff') + +#from Configuration.Eras.Era_Phase2C12_cff import Phase2C12 +#process = cms.Process('HGCGeomAnalysis',Phase2C12) +#process.load('Configuration.Geometry.GeometryExtended2026D58_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D58Reco_cff') + +#from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +#process = cms.Process('HGCGeomAnalysis',Phase2C11) +#process.load('Configuration.Geometry.GeometryExtended2026D59_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D59Reco_cff') + +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') @@ -24,7 +39,7 @@ from Configuration.AlCa.GlobalTag import GlobalTag ##Global Tag used for production in -process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') #process.MessageLogger.cerr.FwkReport.reportEvery = 100 #if 'MessageLogger' in process.__dict__: @@ -41,7 +56,7 @@ process.load('Validation.HGCalValidation.hgcHitValidation_cfi') process.TFileService = cms.Service("TFileService", - fileName = cms.string('relValTTbar.root'), + fileName = cms.string('relValTTbarD62.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py index 0203a0044f363..f1608a3b08923 100644 --- a/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalDigiStudy_cfg.py @@ -1,19 +1,9 @@ import FWCore.ParameterSet.Config as cms -#from Configuration.Eras.Era_Phase2C4_cff import Phase2C4 -#process = cms.Process('PROD',Phase2C4) -#process.load('Configuration.Geometry.GeometryExtended2026D35_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') - -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('PROD',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') - -#from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 -#process = cms.Process('PROD',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("Configuration.StandardSequences.MagneticField_cff") @@ -29,8 +19,7 @@ process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( - 'file:step2_29034.root', -# 'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_1_patch1/RelValSingleElectronPt35Extended/GEN-SIM-RECO/91X_upgrade2023_realistic_v1_D17-v1/10000/10D95AC2-B14A-E711-BC4A-0CC47A7C3638.root', + 'file:step2.root', ) ) @@ -39,7 +28,7 @@ ) process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcDigiD41tt.root'), + fileName = cms.string('hgcDigiD62tt.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py b/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py index fccc919ead7a6..ed5749ad85ea3 100644 --- a/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalHitCalibration_cfg.py @@ -1,20 +1,10 @@ import FWCore.ParameterSet.Config as cms import FWCore.Utilities.FileUtils as FileUtils -#from Configuration.Eras.Era_Phase2C4_cff import Phase2C4 -#process = cms.Process('HGCGeomAnalysis',Phase2C4) -#process.load('Configuration.Geometry.GeometryExtended2026D35_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') - -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('HGCGeomAnalysis',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') - -#from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 -#process = cms.Process('HGCGeomAnalysis',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') @@ -31,7 +21,8 @@ process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( - 'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_0_pre3/RelValTTbar_14TeV/GEN-SIM/91X_upgrade2023_realistic_v1_D13-v2/10000/0E0708E1-582E-E711-8D30-0025905B8604.root', + 'file:step3.root', + #'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_0_pre3/RelValTTbar_14TeV/GEN-SIM/91X_upgrade2023_realistic_v1_D13-v2/10000/0E0708E1-582E-E711-8D30-0025905B8604.root', #'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-RECO/PU25ns_91X_upgrade2023_realistic_v1_D13PU200-v2/10000/04A22787-5E31-E711-A724-0025905A6090.root', #'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-RECO/PU25ns_91X_upgrade2023_realistic_v1_D13PU200-v2/10000/06E13ACA-5D31-E711-B32D-0025905A48F2.root', #'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-RECO/PU25ns_91X_upgrade2023_realistic_v1_D13PU200-v2/10000/0A4780A9-6031-E711-9762-0025905A60F8.root', @@ -39,13 +30,13 @@ ) ) process.maxEvents = cms.untracked.PSet( - input = cms.untracked.int32(100) + input = cms.untracked.int32(-1) ) process.load('Validation.HGCalValidation.hgcalHitCalibration_cfi') process.TFileService = cms.Service("TFileService", - fileName = cms.string('RelVal.root'), + fileName = cms.string('relValD62.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py index 8408d20473720..657d1a0394187 100644 --- a/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalRecHitStudy_cfg.py @@ -1,20 +1,10 @@ import FWCore.ParameterSet.Config as cms import FWCore.Utilities.FileUtils as FileUtils -#from Configuration.Eras.Era_Phase2C4_cff import Phase2C4 -#process = cms.Process('PROD',Phase2C4) -#process.load('Configuration.Geometry.GeometryExtended2026D35_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') - -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('PROD',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') - -#from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 -#process = cms.Process('PROD',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load('Configuration.StandardSequences.MagneticField_cff') @@ -31,21 +21,17 @@ # process.MessageLogger.categories.append('HGCalValidation') process.source = cms.Source("PoolSource", - fileNames = cms.untracked.vstring( - 'file:step3.root', -# 'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_1_patch1/RelValSingleElectronPt35Extended/GEN-SIM-RECO/91X_upgrade2023_realistic_v1_D17-v1/10000/10D95AC2-B14A-E711-BC4A-0CC47A7C3638.root', - ) - ) + fileNames = cms.untracked.vstring('file:step3.root') +) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.load('Validation.HGCalValidation.hgcalRecHitStudy_cff') -process.hgcalRecHitStudyBH.verbosity = 0 process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcRecHitD41tt.root'), + fileName = cms.string('hgcRecHitD62tt.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py index 8cb7602e0f9a0..7e95c09da09d1 100644 --- a/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalSimHitStudy_cfg.py @@ -1,19 +1,9 @@ import FWCore.ParameterSet.Config as cms -#from Configuration.Eras.Era_Phase2C4_cff import Phase2C4 -#process = cms.Process('PROD',Phase2C4) -#process.load('Configuration.Geometry.GeometryExtended2026D35_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') - -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('PROD',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') - -#from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 -#process = cms.Process('PROD',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("Configuration.StandardSequences.MagneticField_cff") @@ -25,18 +15,15 @@ process.GlobalTag.globaltag = autoCond['phase2_realistic'] process.source = cms.Source("PoolSource", - fileNames = cms.untracked.vstring( - 'file:step1_29034.root', -# 'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_1_1_patch1/RelValSingleElectronPt35Extended/GEN-SIM-RECO/91X_upgrade2023_realistic_v1_D17-v1/10000/10D95AC2-B14A-E711-BC4A-0CC47A7C3638.root', - ) - ) + fileNames = cms.untracked.vstring('file:step1.root') +) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcSimHitD41tt.root'), + fileName = cms.string('hgcSimHitD62tt.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py b/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py index 80c499dc733a4..dc74bbfc3f2b8 100644 --- a/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/runHGCalWaferStudy_cfg.py @@ -5,15 +5,30 @@ #process.load('Configuration.Geometry.GeometryExtended2026D35_cff') #process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('HGCGeomAnalysis',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') +#from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 +#process = cms.Process('HGCGeomAnalysis',Phase2C8) +#process.load('Configuration.Geometry.GeometryExtended2026D41_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') #from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 #process = cms.Process('HGCGeomAnalysis',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff') + +#from Configuration.Eras.Era_Phase2C12_cff import Phase2C12 +#process = cms.Process('HGCGeomAnalysis',Phase2C12) +#process.load('Configuration.Geometry.GeometryExtended2026D58_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D58Reco_cff') + +#from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +#process = cms.Process('HGCGeomAnalysis',Phase2C11) +#process.load('Configuration.Geometry.GeometryExtended2026D59_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D59Reco_cff') + +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("Configuration.StandardSequences.MagneticField_cff") @@ -38,7 +53,7 @@ ) process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcWafer.root'), + fileName = cms.string('hgcWaferD62.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/testHGCalBHValid_cfg.py b/Validation/HGCalValidation/test/python/testHGCalBHValid_cfg.py index cd3a51a47cd5b..f9cef70d08b26 100644 --- a/Validation/HGCalValidation/test/python/testHGCalBHValid_cfg.py +++ b/Validation/HGCalValidation/test/python/testHGCalBHValid_cfg.py @@ -1,20 +1,9 @@ import FWCore.ParameterSet.Config as cms -import six -#from Configuration.Eras.Era_Phase2C4_cff import Phase2C4 -#process = cms.Process('HGCGeomAnalysis',Phase2C4) -#process.load('Configuration.Geometry.GeometryExtended2026D35_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') - -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('HGCGeomAnalysis',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') - -#from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 -#process = cms.Process('HGCGeomAnalysis',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') @@ -24,29 +13,21 @@ process.load('SimGeneral.MixingModule.mixNoPU_cfi') process.load('Configuration.StandardSequences.MagneticField_cff') process.load('Configuration.StandardSequences.Generator_cff') -process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi') process.load('GeneratorInterface.Core.genFilterSummary_cff') process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.load('Configuration.StandardSequences.Digi_cff') process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.L1TrackTrigger_cff') process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('HLTrigger.Configuration.HLT_Fake2_cff') +process.load('Configuration.StandardSequences.RawToDigi_cff') +process.load('Configuration.StandardSequences.L1Reco_cff') +process.load('Configuration.StandardSequences.Reconstruction_cff') +process.load('Configuration.StandardSequences.RecoSim_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') -process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') - -### setup HGCal local reco -# get uncalibrechits with weights method -process.load("RecoLocalCalo.HGCalRecProducers.HGCalUncalibRecHit_cfi") -process.HGCalUncalibRecHit.HGCEEdigiCollection = 'hgcalDigis:EE' -process.HGCalUncalibRecHit.HGCHEFdigiCollection = 'hgcalDigis:HEfront' - -# get rechits e.g. from the weights -process.load("RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi") -process.HGCalRecHit.HGCEEuncalibRecHitCollection = 'HGCalUncalibRecHit:HGCEEUncalibRecHits' -process.HGCalRecHit.HGCHEFuncalibRecHitCollection = 'HGCalUncalibRecHit:HGCHEFUncalibRecHits' - - -process.HGCalRecoLocal = cms.Sequence(process.HGCalUncalibRecHit + - process.HGCalRecHit ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2000) @@ -67,45 +48,15 @@ name = cms.untracked.string('Applications') ) - -# Output definitiond -process.output = cms.OutputModule("PoolOutputModule", - splitLevel = cms.untracked.int32(0), - eventAutoFlushCompressedSize = cms.untracked.int32(5242880), - outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands, -# outputCommands = cms.untracked.vstring('keep *'), - fileName = cms.untracked.string('file:testHGCalBHValid.root'), - dataset = cms.untracked.PSet( - filterName = cms.untracked.string(''), - dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-RECO') - ), - SelectEvents = cms.untracked.PSet( - SelectEvents = cms.vstring('generation_step') - ) -) - -process.MessageLogger = cms.Service("MessageLogger", - cout = cms.untracked.PSet( - default = cms.untracked.PSet( - limit = cms.untracked.int32(0) - ), - ValidHGCal = cms.untracked.PSet( - limit = cms.untracked.int32(0) - ), - HcalSim = cms.untracked.PSet( - limit = cms.untracked.int32(0) - ), - ), - categories = cms.untracked.vstring('HcalSim', - 'ValidHGCal'), - destinations = cms.untracked.vstring('cout','cerr') -) +if hasattr(process,'MessageLogger'): + process.MessageLogger.categories.append('ValidHGCal') + process.MessageLogger.categories.append('HcalSim') # Additional output definition process.load('Validation.HGCalValidation.hgcalBHValidation_cfi') process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcBHValid.root'), + fileName = cms.string('hgcBHValidD62.root'), closeFileFast = cms.untracked.bool(True) ) @@ -113,7 +64,7 @@ # Other statements process.genstepfilter.triggerConditions=cms.vstring("generation_step") from Configuration.AlCa.GlobalTag import GlobalTag -process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') process.generator = cms.EDProducer("FlatRandomPtGunProducer", PGunParameters = cms.PSet( @@ -134,6 +85,7 @@ #Modified to produce hgceedigis process.mix.digitizers = cms.PSet(process.theDigitizersValid) +process.ProductionFilterSequence = cms.Sequence(process.generator) #Following Removes Mag Field process.g4SimHits.UseMagneticField = False @@ -146,20 +98,28 @@ process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) process.digitisation_step = cms.Path(process.pdigi_valid) process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.L1TrackTrigger_step = cms.Path(process.L1TrackTrigger) process.digi2raw_step = cms.Path(process.DigiToRaw) -process.recotest_step = cms.Path(process.HGCalRecoLocal) +process.raw2digi_step = cms.Path(process.RawToDigi) +process.L1Reco_step = cms.Path(process.L1Reco) +process.reconstruction_step = cms.Path(process.localreco) +process.recosim_step = cms.Path(process.recosim) process.analysis_step = cms.Path(process.hgcalBHAnalysis) -process.out_step = cms.EndPath(process.output) # Schedule definition -process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.recotest_step,process.analysis_step) -#process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.digi2raw_step,process.recotest_step,process.analysis_step) -#process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.digi2raw_step,process.recotest_step,process.analysis_step) +process.schedule = cms.Schedule(process.generation_step, + process.simulation_step, + process.digitisation_step, + process.L1simulation_step, + process.L1TrackTrigger_step, + process.digi2raw_step, + process.raw2digi_step, + process.L1Reco_step, + process.reconstruction_step, + process.recosim_step, + process.analysis_step, + ) + # filter all path with the production filter sequence for path in process.paths: - getattr(process,path)._seq = process.generator * getattr(process,path)._seq - -for label, prod in six.iteritems(process.producers_()): - if prod.type_() == "OscarMTProducer": - # ugly hack - prod.__dict__['_TypedParameterizable__type'] = "OscarProducer" + if getattr(process,path)._seq is not None: getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq diff --git a/Validation/HGCalValidation/test/python/testHGCalSimHitStudy_cfg.py b/Validation/HGCalValidation/test/python/testHGCalSimHitStudy_cfg.py index c331062294314..53b07f14cff4e 100644 --- a/Validation/HGCalValidation/test/python/testHGCalSimHitStudy_cfg.py +++ b/Validation/HGCalValidation/test/python/testHGCalSimHitStudy_cfg.py @@ -5,15 +5,30 @@ #process.load('Configuration.Geometry.GeometryExtended2026D35_cff') #process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') -from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 -process = cms.Process('HGCGeomAnalysis',Phase2C8) -process.load('Configuration.Geometry.GeometryExtended2026D41_cff') -process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') +#from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 +#process = cms.Process('HGCGeomAnalysis',Phase2C8) +#process.load('Configuration.Geometry.GeometryExtended2026D41_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff') #from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 #process = cms.Process('HGCGeomAnalysis',Phase2C9) -#process.load('Configuration.Geometry.GeometryExtended2026D46_cff') -#process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff') + +#from Configuration.Eras.Era_Phase2C12_cff import Phase2C12 +#process = cms.Process('HGCGeomAnalysis',Phase2C12) +#process.load('Configuration.Geometry.GeometryExtended2026D58_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D58Reco_cff') + +#from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +#process = cms.Process('HGCGeomAnalysis',Phase2C11) +#process.load('Configuration.Geometry.GeometryExtended2026D59_cff') +#process.load('Configuration.Geometry.GeometryExtended2026D59Reco_cff') + +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('HGCGeomAnalysis',Phase2C11) +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") @@ -68,7 +83,7 @@ ) process.TFileService = cms.Service("TFileService", - fileName = cms.string('hgcSimHit.root'), + fileName = cms.string('hgcSimHit62.root'), closeFileFast = cms.untracked.bool(True) ) diff --git a/Validation/HGCalValidation/test/python/testHGCalSimWatcherV11_cfg.py b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV11_cfg.py index 89ab92b0013af..340fe94a053d4 100644 --- a/Validation/HGCalValidation/test/python/testHGCalSimWatcherV11_cfg.py +++ b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV11_cfg.py @@ -9,8 +9,8 @@ process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('SimGeneral.MixingModule.mixNoPU_cfi') -process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff') -process.load('Configuration.Geometry.GeometryExtended2026D46_cff') +process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff') +process.load('Configuration.Geometry.GeometryExtended2026D49_cff') process.load('Configuration.StandardSequences.MagneticField_cff') process.load('Configuration.StandardSequences.Generator_cff') process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi') @@ -61,7 +61,7 @@ # 'keep *_mix_*_*', 'keep *_*HGC*_*_*', ), - fileName = cms.untracked.string('file:testHGCalSimWatcherV8.root'), + fileName = cms.untracked.string('file:testHGCalSimWatcherV11.root'), dataset = cms.untracked.PSet( filterName = cms.untracked.string(''), dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-RECO') diff --git a/Validation/HGCalValidation/test/python/testHGCalSimWatcherV12_cfg.py b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV12_cfg.py new file mode 100644 index 0000000000000..913a0780894be --- /dev/null +++ b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV12_cfg.py @@ -0,0 +1,143 @@ +import FWCore.ParameterSet.Config as cms + +from Configuration.Eras.Era_Phase2C12_cff import Phase2C12 +process = cms.Process('testHGCalRecoLocal',Phase2C12) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.Geometry.GeometryExtended2026D58Reco_cff') +process.load('Configuration.Geometry.GeometryExtended2026D58_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('HLTrigger.Configuration.HLT_Fake_cff') +process.load('Configuration.StandardSequences.RawToDigi_cff') +process.load('Configuration.StandardSequences.L1Reco_cff') +process.load('Configuration.StandardSequences.Reconstruction_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(1000) +) + +process.MessageLogger.cerr.FwkReport.reportEvery = 5 +if hasattr(process,'MessageLogger'): + process.MessageLogger.categories.append('ValidHGCal') + process.MessageLogger.categories.append('HGCalGeom') + +# Input source +process.source = cms.Source("EmptySource") + +process.options = cms.untracked.PSet( + wantSummary = cms.untracked.bool(True) +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + version = cms.untracked.string(''), + annotation = cms.untracked.string(''), + name = cms.untracked.string('Applications') +) + + +# Output definition +process.output = cms.OutputModule("PoolOutputModule", + splitLevel = cms.untracked.int32(0), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + outputCommands = cms.untracked.vstring( + 'keep *_*hbhe*_*_*', + 'keep *_g4SimHits_*_*', +# 'keep *_mix_*_*', + 'keep *_*HGC*_*_*', + ), + fileName = cms.untracked.string('file:testHGCalSimWatcherV12.root'), + dataset = cms.untracked.PSet( + filterName = cms.untracked.string(''), + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-RECO') + ), + SelectEvents = cms.untracked.PSet( + SelectEvents = cms.vstring('generation_step') + ) +) + +# Additional output definition +process.g4SimHits.Watchers = cms.VPSet(cms.PSet( + SimG4HGCalValidation = cms.PSet( + Names = cms.vstring( + 'HGCalEECell', + 'HGCalHECell', + 'HEScintillator', + ), + Types = cms.vint32(1,1,2), + DetTypes = cms.vint32(0,1,2), + LabelLayerInfo = cms.string("HGCalInfoLayer"), + Verbosity = cms.untracked.int32(0), + ), + type = cms.string('SimG4HGCalValidation') +)) + +# Other statements +process.genstepfilter.triggerConditions=cms.vstring("generation_step") +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') + +process.generator = cms.EDProducer("FlatRandomPtGunProducer", + PGunParameters = cms.PSet( + MaxPt = cms.double(20.0), + MinPt = cms.double(20.0), + #PartID = cms.vint32(11), #--->electron + PartID = cms.vint32(13), #--->muon + #PartID = cms.vint32(211), #--->pion + MaxEta = cms.double(3.0), + MaxPhi = cms.double(3.14159265359), + MinEta = cms.double(1.2), + MinPhi = cms.double(-3.14159265359) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single muon pt 35'), + AddAntiParticle = cms.bool(False), + firstRun = cms.untracked.uint32(1) +) + + +#Modified to produce hgceedigis +process.mix.digitizers = cms.PSet(process.theDigitizersValid) + +# Path and EndPath definitions +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.digitisation_step = cms.Path(process.pdigi_valid) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.raw2digi_step = cms.Path(process.RawToDigi) +process.L1Reco_step = cms.Path(process.L1Reco) +process.reconstruction_step = cms.Path(process.localreco) +process.out_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.generation_step, + process.simulation_step, + process.digitisation_step, + process.L1simulation_step, + process.digi2raw_step, + process.raw2digi_step, + process.L1Reco_step, + process.reconstruction_step, + process.out_step + ) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.generator * getattr(process,path)._seq diff --git a/Validation/HGCalValidation/test/python/testHGCalSimWatcherV13_cfg.py b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV13_cfg.py new file mode 100644 index 0000000000000..7bdc859c5a3e0 --- /dev/null +++ b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV13_cfg.py @@ -0,0 +1,153 @@ +import FWCore.ParameterSet.Config as cms + +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('testHGCalRecoLocal',Phase2C11) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.Geometry.GeometryExtended2026D59Reco_cff') +process.load('Configuration.Geometry.GeometryExtended2026D59_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.L1TrackTrigger_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('HLTrigger.Configuration.HLT_Fake2_cff') +process.load('Configuration.StandardSequences.RawToDigi_cff') +process.load('Configuration.StandardSequences.L1Reco_cff') +process.load('Configuration.StandardSequences.Reconstruction_cff') +process.load('Configuration.StandardSequences.RecoSim_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(1000) +) + +process.MessageLogger.cerr.FwkReport.reportEvery = 5 +if hasattr(process,'MessageLogger'): + process.MessageLogger.categories.append('ValidHGCal') + process.MessageLogger.categories.append('HGCalGeom') + +# Input source +process.source = cms.Source("EmptySource") + +process.options = cms.untracked.PSet( + wantSummary = cms.untracked.bool(True) +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + version = cms.untracked.string(''), + annotation = cms.untracked.string(''), + name = cms.untracked.string('Applications') +) + + +# Output definition +process.output = cms.OutputModule("PoolOutputModule", + splitLevel = cms.untracked.int32(0), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + outputCommands = cms.untracked.vstring( + 'keep *_*hbhe*_*_*', + 'keep *_g4SimHits_*_*', +# 'keep *_mix_*_*', + 'keep *_*HGC*_*_*', + ), + fileName = cms.untracked.string('file:testHGCalSimWatcherV13.root'), + dataset = cms.untracked.PSet( + filterName = cms.untracked.string(''), + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-RECO') + ), + SelectEvents = cms.untracked.PSet( + SelectEvents = cms.vstring('generation_step') + ) +) + +# Additional output definition +process.g4SimHits.Watchers = cms.VPSet(cms.PSet( + SimG4HGCalValidation = cms.PSet( + Names = cms.vstring( + 'HGCalEESensitive', + 'HGCalHESensitive', + 'HGCalHESiliconSensitive', + 'HGCalHEScintillatorSensitive', + ), + Types = cms.vint32(0,0,0,0), + DetTypes = cms.vint32(0,1,1,2), + LabelLayerInfo = cms.string("HGCalInfoLayer"), + Verbosity = cms.untracked.int32(0), + ), + type = cms.string('SimG4HGCalValidation') +)) + +# Other statements +process.genstepfilter.triggerConditions=cms.vstring("generation_step") +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') + +process.generator = cms.EDProducer("FlatRandomPtGunProducer", + PGunParameters = cms.PSet( + MaxPt = cms.double(20.0), + MinPt = cms.double(20.0), + #PartID = cms.vint32(11), #--->electron + PartID = cms.vint32(13), #--->muon + #PartID = cms.vint32(211), #--->pion + MaxEta = cms.double(3.0), + MaxPhi = cms.double(3.14159265359), + MinEta = cms.double(1.2), + MinPhi = cms.double(-3.14159265359) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single muon pt 35'), + AddAntiParticle = cms.bool(False), + firstRun = cms.untracked.uint32(1) +) + + +#Modified to produce hgceedigis +process.mix.digitizers = cms.PSet(process.theDigitizersValid) + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +# Path and EndPath definitions +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.digitisation_step = cms.Path(process.pdigi_valid) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.L1TrackTrigger_step = cms.Path(process.L1TrackTrigger) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.raw2digi_step = cms.Path(process.RawToDigi) +process.L1Reco_step = cms.Path(process.L1Reco) +process.reconstruction_step = cms.Path(process.localreco) +process.recosim_step = cms.Path(process.recosim) +process.out_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.generation_step, + process.simulation_step, + process.digitisation_step, + process.L1simulation_step, + process.L1TrackTrigger_step, + process.digi2raw_step, +# process.HLTSchedule, + process.raw2digi_step, + process.L1Reco_step, + process.reconstruction_step, + process.recosim_step, + process.out_step + ) + +# filter all path with the production filter sequence +for path in process.paths: + if getattr(process,path)._seq is not None: getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq diff --git a/Validation/HGCalValidation/test/python/testHGCalSimWatcherV14_cfg.py b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV14_cfg.py new file mode 100644 index 0000000000000..0c2a7db304b26 --- /dev/null +++ b/Validation/HGCalValidation/test/python/testHGCalSimWatcherV14_cfg.py @@ -0,0 +1,152 @@ +import FWCore.ParameterSet.Config as cms + +from Configuration.Eras.Era_Phase2C11_cff import Phase2C11 +process = cms.Process('testHGCalRecoLocal',Phase2C11) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff') +process.load('Configuration.Geometry.GeometryExtended2026D62_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.L1TrackTrigger_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('HLTrigger.Configuration.HLT_Fake2_cff') +process.load('Configuration.StandardSequences.RawToDigi_cff') +process.load('Configuration.StandardSequences.L1Reco_cff') +process.load('Configuration.StandardSequences.Reconstruction_cff') +process.load('Configuration.StandardSequences.RecoSim_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(1000) +) + +process.MessageLogger.cerr.FwkReport.reportEvery = 5 +if hasattr(process,'MessageLogger'): + process.MessageLogger.categories.append('ValidHGCal') + process.MessageLogger.categories.append('HGCalGeom') + +# Input source +process.source = cms.Source("EmptySource") + +process.options = cms.untracked.PSet( + wantSummary = cms.untracked.bool(True) +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + version = cms.untracked.string(''), + annotation = cms.untracked.string(''), + name = cms.untracked.string('Applications') +) + + +# Output definition +process.output = cms.OutputModule("PoolOutputModule", + splitLevel = cms.untracked.int32(0), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + outputCommands = cms.untracked.vstring( + 'keep *_*hbhe*_*_*', + 'keep *_g4SimHits_*_*', +# 'keep *_mix_*_*', + 'keep *_*HGC*_*_*', + ), + fileName = cms.untracked.string('file:testHGCalSimWatcherV14.root'), + dataset = cms.untracked.PSet( + filterName = cms.untracked.string(''), + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-RECO') + ), + SelectEvents = cms.untracked.PSet( + SelectEvents = cms.vstring('generation_step') + ) +) + +# Additional output definition +process.g4SimHits.Watchers = cms.VPSet(cms.PSet( + SimG4HGCalValidation = cms.PSet( + Names = cms.vstring( + 'HGCalEESensitive', + 'HGCalHESensitive', + 'HGCalHESiliconSensitive', + 'HGCalHEScintillatorSensitive', + ), + Types = cms.vint32(0,0,0,0), + DetTypes = cms.vint32(0,1,1,2), + LabelLayerInfo = cms.string("HGCalInfoLayer"), + Verbosity = cms.untracked.int32(0), + ), + type = cms.string('SimG4HGCalValidation') +)) + +# Other statements +process.genstepfilter.triggerConditions=cms.vstring("generation_step") +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') + +process.generator = cms.EDProducer("FlatRandomPtGunProducer", + PGunParameters = cms.PSet( + MaxPt = cms.double(20.0), + MinPt = cms.double(20.0), + #PartID = cms.vint32(11), #--->electron + PartID = cms.vint32(13), #--->muon + #PartID = cms.vint32(211), #--->pion + MaxEta = cms.double(3.0), + MaxPhi = cms.double(3.14159265359), + MinEta = cms.double(1.2), + MinPhi = cms.double(-3.14159265359) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single muon pt 35'), + AddAntiParticle = cms.bool(False), + firstRun = cms.untracked.uint32(1) +) + + +#Modified to produce hgceedigis +process.mix.digitizers = cms.PSet(process.theDigitizersValid) + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +# Path and EndPath definitions +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.digitisation_step = cms.Path(process.pdigi_valid) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.L1TrackTrigger_step = cms.Path(process.L1TrackTrigger) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.raw2digi_step = cms.Path(process.RawToDigi) +process.L1Reco_step = cms.Path(process.L1Reco) +process.reconstruction_step = cms.Path(process.localreco) +process.recosim_step = cms.Path(process.recosim) +process.out_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.generation_step, + process.simulation_step, + process.digitisation_step, + process.L1simulation_step, + process.L1TrackTrigger_step, + process.digi2raw_step, + process.raw2digi_step, + process.L1Reco_step, + process.reconstruction_step, + process.recosim_step, + process.out_step + ) + +# filter all path with the production filter sequence +for path in process.paths: + if getattr(process,path)._seq is not None: getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq