forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom function and test config for standalone clustering
- Loading branch information
Showing
3 changed files
with
120 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
def custom_clustering_standalone(process): | ||
process.hgcalBackEndLayer2Producer.ProcessorParameters.ProcessorName = cms.string('HGCalBackendLayer2Processor3DClusteringSA') | ||
return process | ||
|
||
def custom_tower_standalone(process): | ||
process.hgcalTowerProducer.ProcessorParameters.ProcessorName = cms.string('HGCalTowerProcessorSA') | ||
return process | ||
|
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
94 changes: 94 additions & 0 deletions
94
L1Trigger/L1THGCalUtilities/test/testHGCalL1T_newProcessors_V11_cfg.py
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,94 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Eras.Era_Phase2C9_cff import Phase2C9 | ||
process = cms.Process('DIGI',Phase2C9) | ||
|
||
# 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.GeometryExtended2026D49Reco_cff') | ||
process.load('Configuration.Geometry.GeometryExtended2026D49_cff') | ||
process.load('Configuration.StandardSequences.MagneticField_cff') | ||
process.load('Configuration.StandardSequences.Generator_cff') | ||
process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi') | ||
process.load('GeneratorInterface.Core.genFilterSummary_cff') | ||
process.load('Configuration.StandardSequences.SimIdeal_cff') | ||
process.load('Configuration.StandardSequences.Digi_cff') | ||
process.load('Configuration.StandardSequences.SimL1Emulator_cff') | ||
process.load('Configuration.StandardSequences.DigiToRaw_cff') | ||
process.load('Configuration.StandardSequences.EndOfProcess_cff') | ||
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') | ||
|
||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(50) | ||
) | ||
|
||
# Input source | ||
process.source = cms.Source("PoolSource", | ||
fileNames = cms.untracked.vstring('/store/mc/Phase2HLTTDRWinter20DIGI/SingleElectron_PT2to200/GEN-SIM-DIGI-RAW/PU200_110X_mcRun4_realistic_v3_ext2-v2/40000/00582F93-5A2A-5847-8162-D81EE503500F.root'), | ||
inputCommands=cms.untracked.vstring( | ||
'keep *', | ||
'drop l1tEMTFHit2016Extras_simEmtfDigis_CSC_HLT', | ||
'drop l1tEMTFHit2016Extras_simEmtfDigis_RPC_HLT', | ||
'drop l1tEMTFHit2016s_simEmtfDigis__HLT', | ||
'drop l1tEMTFTrack2016Extras_simEmtfDigis__HLT', | ||
'drop l1tEMTFTrack2016s_simEmtfDigis__HLT', | ||
'drop FTLClusteredmNewDetSetVector_mtdClusters_FTLBarrel_RECO', | ||
'drop FTLClusteredmNewDetSetVector_mtdClusters_FTLEndcap_RECO', | ||
'drop MTDTrackingRecHitedmNewDetSetVector_mtdTrackingRecHits__RECO', | ||
'drop BTLDetIdBTLSampleFTLDataFrameTsSorted_mix_FTLBarrel_HLT', | ||
'drop ETLDetIdETLSampleFTLDataFrameTsSorted_mix_FTLEndcap_HLT', | ||
) | ||
) | ||
|
||
process.options = cms.untracked.PSet( | ||
|
||
) | ||
|
||
# Production Info | ||
process.configurationMetadata = cms.untracked.PSet( | ||
version = cms.untracked.string('$Revision: 1.20 $'), | ||
annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'), | ||
name = cms.untracked.string('Applications') | ||
) | ||
|
||
# Output definition | ||
process.TFileService = cms.Service( | ||
"TFileService", | ||
fileName = cms.string("ntuple.root") | ||
) | ||
|
||
# Other statements | ||
from Configuration.AlCa.GlobalTag import GlobalTag | ||
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '') | ||
|
||
# load HGCAL TPG simulation | ||
process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff') | ||
|
||
# Use new processors and standalone algorithms | ||
from L1Trigger.L1THGCal.customNewProcessors import custom_clustering_standalone, custom_tower_standalone | ||
process = custom_clustering_standalone(process) | ||
process = custom_tower_standalone(process) | ||
|
||
process.hgcl1tpg_step = cms.Path(process.hgcalTriggerPrimitives) | ||
|
||
|
||
# load ntuplizer | ||
process.load('L1Trigger.L1THGCalUtilities.hgcalTriggerNtuples_cff') | ||
from L1Trigger.L1THGCalUtilities.customNtuples import custom_ntuples_standalone_clustering, custom_ntuples_standalone_tower | ||
process = custom_ntuples_standalone_clustering(process) | ||
process = custom_ntuples_standalone_tower(process) | ||
process.ntuple_step = cms.Path(process.hgcalTriggerNtuples) | ||
|
||
# Schedule definition | ||
process.schedule = cms.Schedule(process.hgcl1tpg_step, process.ntuple_step) | ||
|
||
# Add early deletion of temporary data products to reduce peak memory need | ||
from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete | ||
process = customiseEarlyDelete(process) | ||
# End adding early deletion | ||
|