Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:29

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.StandardSequences.Eras import eras
0004 process = cms.Process('DIGI',eras.Phase2C9)
0005 
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0014 process.load('Configuration.Geometry.GeometryExtended2026D49_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0018 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0019 process.load('Configuration.StandardSequences.SimIdeal_cff')
0020 process.load('Configuration.StandardSequences.Digi_cff')
0021 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0022 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0023 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 
0027 ############################################################
0028 # L1 tracking
0029 ############################################################
0030 
0031 # remake stubs ?
0032 process.load('L1Trigger.TrackTrigger.TrackTrigger_cff')
0033 from L1Trigger.TrackTrigger.TTStubAlgorithmRegister_cfi import *
0034 process.load("SimTracker.TrackTriggerAssociation.TrackTriggerAssociator_cff")
0035 process.load("L1Trigger.TrackFindingTracklet.Tracklet_cfi")
0036 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0037 
0038 # process.TTClusterStub = cms.Path(process.TrackTriggerClustersStubs)
0039 # process.TTClusterStubTruth = cms.Path(process.TrackTriggerAssociatorClustersStubs)
0040 
0041 
0042 process.TTTrackAssociatorFromPixelDigis.TTTracks = cms.VInputTag(
0043     cms.InputTag('TTTracksFromTrackletEmulation', 'Level1TTTracks'))
0044 
0045 # emulation
0046 process.TTTracksEmulationWithTruth = cms.Path(
0047     process.offlineBeamSpot *
0048     process.TTTracksFromTrackletEmulation *
0049     process.TrackTriggerAssociatorTracks)
0050 # L1TRK_PROC.asciiFileName = cms.untracked.string("evlist.txt")
0051 
0052 
0053 
0054 
0055 
0056 process.maxEvents = cms.untracked.PSet(
0057     input = cms.untracked.int32(200)
0058 )
0059 
0060 # Input source
0061 process.source = cms.Source("PoolSource",
0062        fileNames = cms.untracked.vstring('file:/data/cerminar/Phase2HLTTDRWinter20DIGI/SingleElectron_PT2to200/GEN-SIM-DIGI-RAW/PU200_110X_mcRun4_realistic_v3_ext2-v2/F32C5A21-F0E9-9149-B04A-883CC704E820.root'),
0063        # fileNames = cms.untracked.vstring('/store/mc/PhaseIIMTDTDRAutumn18DR/SinglePion_FlatPt-2to100/FEVT/PU200_103X_upgrade2023_realistic_v2-v1/70000/FFA969EE-22E0-E447-86AA-46A6CBF6407D.root'),
0064        inputCommands=cms.untracked.vstring(
0065            'keep *',
0066            'drop l1tEMTFHit2016Extras_simEmtfDigis_CSC_HLT',
0067            'drop l1tEMTFHit2016Extras_simEmtfDigis_RPC_HLT',
0068            'drop l1tEMTFHit2016s_simEmtfDigis__HLT',
0069            'drop l1tEMTFTrack2016Extras_simEmtfDigis__HLT',
0070            'drop l1tEMTFTrack2016s_simEmtfDigis__HLT',
0071            'drop FTLClusteredmNewDetSetVector_mtdClusters_FTLBarrel_RECO',
0072            'drop FTLClusteredmNewDetSetVector_mtdClusters_FTLEndcap_RECO',
0073            'drop MTDTrackingRecHitedmNewDetSetVector_mtdTrackingRecHits__RECO',
0074            'drop BTLDetIdBTLSampleFTLDataFrameTsSorted_mix_FTLBarrel_HLT',
0075            'drop ETLDetIdETLSampleFTLDataFrameTsSorted_mix_FTLEndcap_HLT',
0076            )
0077        )
0078 
0079 process.options = cms.untracked.PSet(
0080 
0081 )
0082 
0083 # Production Info
0084 process.configurationMetadata = cms.untracked.PSet(
0085     version = cms.untracked.string('$Revision: 1.20 $'),
0086     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0087     name = cms.untracked.string('Applications')
0088 )
0089 
0090 # Output definition
0091 process.TFileService = cms.Service(
0092     "TFileService",
0093     fileName = cms.string("ntuple.root")
0094     )
0095 
0096 # Other statements
0097 from Configuration.AlCa.GlobalTag import GlobalTag
0098 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0099 
0100 # load HGCAL TPG simulation
0101 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0102 
0103 # To add truth-matched calo cells and downstream objects
0104 # process.load('L1Trigger.L1THGCalUtilities.caloTruthCells_cff')
0105 # process.hgcalTriggerPrimitives += process.caloTruthCells
0106 # process.load('L1Trigger.L1THGCalUtilities.caloTruthCellsNtuples_cff')
0107 
0108 process.hgcl1tpg_step = cms.Path(process.hgcalTriggerPrimitives)
0109 
0110 # load Standalone EG producers
0111 process.load('L1Trigger.L1CaloTrigger.l1EgammaStaProducers_cff')
0112 process.l1EgammaStaProducers_step = cms.Path(process.l1EgammaStaProducers)
0113 
0114 # load track matching modules
0115 process.load('L1Trigger.L1TTrackMatch.L1TkEgammaObjects_cff')
0116 process.l1EgammaTrackMatchProducers_step = cms.Path(process.l1TkElectronTrackEllipticProducers)
0117 
0118 # load ntuplizer
0119 process.load('L1Trigger.L1CaloTrigger.L1TCaloTriggerNtuples_cff')
0120 process.ntuple_step = cms.Path(process.l1CaloTriggerNtuples)
0121 
0122 # customization from Giovanni
0123 # process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters.threshold_histo_multicluster = 0.5
0124 # process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters.binSumsHisto = cms.vuint32(
0125 #          3,  3,  3,  3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
0126 #     )
0127 
0128 # Schedule definition
0129 process.schedule = cms.Schedule(
0130     process.TTTracksEmulationWithTruth,
0131     process.hgcl1tpg_step,
0132     process.l1EgammaTrackMatchProducers_step,
0133     process.l1EgammaStaProducers_step,
0134     process.ntuple_step)
0135 
0136 # Add early deletion of temporary data products to reduce peak memory need
0137 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0138 process = customiseEarlyDelete(process)
0139 # End adding early deletion