File indexing completed on 2024-11-06 06:06:47
0001
0002
0003
0004
0005 import FWCore.ParameterSet.Config as cms
0006 import FWCore.Utilities.FileUtils as FileUtils
0007 import os
0008
0009
0010
0011
0012 L1TRK_INST ="MyL1TrackJets"
0013 process = cms.Process(L1TRK_INST)
0014
0015
0016
0017 L1TRKALGO = 'HYBRID_PROMPTANDDISP'
0018
0019 DISPLACED = ''
0020
0021
0022 runVtxNN = True
0023
0024
0025
0026
0027 process.load('Configuration.StandardSequences.Services_cff')
0028 process.load('Configuration.EventContent.EventContent_cff')
0029 process.load('Configuration.StandardSequences.MagneticField_cff')
0030 process.load('Configuration.Geometry.GeometryExtendedRun4D110Reco_cff')
0031 process.load('Configuration.Geometry.GeometryExtendedRun4D110_cff')
0032 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0033 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0034
0035 from Configuration.AlCa.GlobalTag import GlobalTag
0036 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0037
0038 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0039 process.MessageLogger.cerr.INFO.limit = cms.untracked.int32(0)
0040
0041
0042
0043
0044
0045 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(20))
0046
0047 readFiles = cms.untracked.vstring(
0048 '/store/mc/Phase2Spring23DIGIRECOMiniAOD/TT_TuneCP5_14TeV-powheg-pythia8/GEN-SIM-DIGI-RAW-MINIAOD/PU200_L1TFix_Trk1GeV_131X_mcRun4_realistic_v9-v1/50000/1cc5c14c-5bae-4e68-a369-04e230788660.root'
0049 )
0050 secFiles = cms.untracked.vstring()
0051
0052 process.source = cms.Source ("PoolSource",
0053 fileNames = readFiles,
0054 secondaryFileNames = secFiles,
0055 duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),
0056 )
0057
0058 process.source.inputCommands = cms.untracked.vstring("keep *","drop l1tTkPrimaryVertexs_L1TkPrimaryVertex__*")
0059 process.Timing = cms.Service("Timing",
0060 summaryOnly = cms.untracked.bool(True),
0061 useJobReport = cms.untracked.bool(False)
0062 )
0063
0064 process.TFileService = cms.Service("TFileService", fileName = cms.string('GTTObjects_ttbar200PU_Spring23.root'), closeFileFast = cms.untracked.bool(True))
0065
0066
0067
0068
0069
0070
0071 process.load('L1Trigger.TrackTrigger.TrackTrigger_cff')
0072 from L1Trigger.TrackTrigger.TTStubAlgorithmRegister_cfi import *
0073 process.load("SimTracker.TrackTriggerAssociation.TrackTriggerAssociator_cff")
0074
0075 from SimTracker.TrackTriggerAssociation.TTClusterAssociation_cfi import *
0076 TTClusterAssociatorFromPixelDigis.digiSimLinks = cms.InputTag("simSiPixelDigis","Tracker")
0077
0078 process.TTClusterStub = cms.Path(process.TrackTriggerClustersStubs)
0079 process.TTClusterStubTruth = cms.Path(process.TrackTriggerAssociatorClustersStubs)
0080
0081
0082
0083 process.load('L1Trigger.TrackerDTC.ProducerED_cff')
0084 process.dtc = cms.Path(process.TrackerDTCProducer)
0085
0086 process.load("L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
0087 process.load("L1Trigger.L1TTrackMatch.l1tTrackSelectionProducer_cfi")
0088 process.load("L1Trigger.L1TTrackMatch.l1tTrackVertexAssociationProducer_cfi")
0089 process.load("L1Trigger.L1TTrackMatch.l1tTrackJets_cfi")
0090 process.load("L1Trigger.L1TTrackMatch.l1tGTTInputProducer_cfi")
0091 process.load("L1Trigger.L1TTrackMatch.l1tTrackJetsEmulation_cfi")
0092 process.load("L1Trigger.L1TTrackMatch.l1tTrackFastJets_cfi")
0093 process.load("L1Trigger.L1TTrackMatch.l1tTrackerEtMiss_cfi")
0094 process.load("L1Trigger.L1TTrackMatch.l1tTrackerEmuEtMiss_cfi")
0095 process.load("L1Trigger.L1TTrackMatch.l1tTrackerHTMiss_cfi")
0096 process.load("L1Trigger.L1TTrackMatch.l1tTrackerEmuHTMiss_cfi")
0097 process.load("L1Trigger.L1TTrackMatch.l1tTrackTripletEmulation_cfi")
0098 process.load('L1Trigger.VertexFinder.l1tVertexProducer_cfi')
0099
0100
0101
0102
0103
0104
0105 process.pPV = cms.Path(process.l1tVertexFinder)
0106
0107
0108 if runVtxNN:
0109 process.l1tVertexFinderEmulator = process.l1tVertexProducer.clone()
0110 process.l1tVertexFinderEmulator.VertexReconstruction.Algorithm = "NNEmulation"
0111
0112 process.l1tTrackSelectionProducer.cutSet = cms.PSet(ptMin = cms.double(2.0),
0113 absEtaMax = cms.double(2.4),
0114 absZ0Max = cms.double(15.0),
0115 nStubsMin = cms.int32(4),
0116 nPSStubsMin = cms.int32(0),
0117 promptMVAMin = cms.double(-1.0),
0118 reducedBendChi2Max = cms.double(999.0),
0119 reducedChi2RZMax = cms.double(999.0),
0120 reducedChi2RPhiMax = cms.double(999.0),
0121 reducedChi2MaxNstub4 = cms.double(999.9),
0122 reducedChi2MaxNstub5 = cms.double(999.9),
0123 reducedBendChi2MaxNstub4 = cms.double(999.9),
0124 reducedBendChi2MaxNstub5 = cms.double(999.9),
0125 ),
0126 VertexAssociator = process.l1tTrackVertexNNAssociationProducer
0127 AssociationName = "l1tTrackVertexNNAssociationProducer"
0128 else:
0129 VertexAssociator = process.l1tTrackVertexAssociationProducer
0130 AssociationName = "l1tTrackVertexAssociationProducer"
0131
0132 process.pPVemu = cms.Path(process.l1tVertexFinderEmulator)
0133
0134
0135 if (L1TRKALGO == 'HYBRID'):
0136 process.TTTracksEmu = cms.Path(process.L1THybridTracks)
0137 process.TTTracksEmuWithTruth = cms.Path(process.L1THybridTracksWithAssociators)
0138 process.pL1TrackSelection = cms.Path(process.l1tTrackSelectionProducer *
0139 process.l1tTrackSelectionProducerForJets *
0140 process.l1tTrackSelectionProducerForEtMiss)
0141 process.pL1TrackVertexAssociation = cms.Path(VertexAssociator *
0142 process.l1tTrackVertexAssociationProducerForJets*
0143 process.l1tTrackVertexAssociationProducerForEtMiss)
0144 process.pL1TrackJets = cms.Path(process.l1tTrackJets)
0145 process.pL1TrackFastJets=cms.Path(process.l1tTrackFastJets)
0146 process.pL1GTTInput = cms.Path(process.l1tGTTInputProducer)
0147 process.pL1TrackJetsEmu = cms.Path(process.l1tTrackJetsEmulation)
0148 process.pTkMET = cms.Path(process.l1tTrackerEtMiss)
0149 process.pTkMETEmu = cms.Path(process.l1tTrackerEmuEtMiss)
0150 process.pTkMHT = cms.Path(process.l1tTrackerHTMiss)
0151 process.pTkMHTEmulator = cms.Path(process.l1tTrackerEmuHTMiss)
0152 process.pL1TrackTripletEmulator = cms.Path(process.l1tTrackTripletEmulation)
0153 DISPLACED = 'Prompt'
0154
0155
0156 elif (L1TRKALGO == 'HYBRID_DISPLACED'):
0157 process.TTTracksEmu = cms.Path(process.L1TExtendedHybridTracks)
0158 process.TTTracksEmuWithTruth = cms.Path(process.L1TExtendedHybridTracksWithAssociators)
0159 process.pL1TrackSelection = cms.Path(process.l1tTrackSelectionProducer *
0160 process.l1tTrackSelectionProducerExtended *
0161 process.l1tTrackSelectionProducerExtendedForJets *
0162 process.l1tTrackSelectionProducerExtendedForEtMiss)
0163 process.pL1TrackVertexAssociation = cms.Path(process.l1tTrackVertexAssociationProducerExtended *
0164 process.l1tTrackVertexAssociationProducerExtendedForJets *
0165 process.l1tTrackVertexAssociationProducerExtendedForEtMiss)
0166 process.pL1TrackJets = cms.Path(process.l1tTrackJetsExtended)
0167 process.pL1TrackFastJets = cms.Path(process.l1tTrackFastJetsExtended)
0168 process.pL1GTTInput = cms.Path(process.l1tGTTInputProducerExtended)
0169 process.pL1TrackJetsEmu = cms.Path(process.l1tTrackJetsExtendedEmulation)
0170 process.pTkMET = cms.Path(process.l1tTrackerEtMissExtended)
0171 process.pTkMHT = cms.Path(process.l1tTrackerHTMissExtended)
0172 process.pTkMHTEmulator = cms.Path(process.l1tTrackerEmuHTMissExtended)
0173 DISPLACED = 'Displaced'
0174
0175
0176 elif (L1TRKALGO == 'HYBRID_PROMPTANDDISP'):
0177 process.TTTracksEmu = cms.Path(process.L1TPromptExtendedHybridTracks)
0178 process.TTTracksEmuWithTruth = cms.Path(process.L1TPromptExtendedHybridTracksWithAssociators)
0179 process.pL1TrackSelection = cms.Path(process.l1tTrackSelectionProducer * process.l1tTrackSelectionProducerExtended *
0180 process.l1tTrackSelectionProducerForJets * process.l1tTrackSelectionProducerExtendedForJets *
0181 process.l1tTrackSelectionProducerForEtMiss * process.l1tTrackSelectionProducerExtendedForEtMiss)
0182 process.pL1TrackVertexAssociation = cms.Path(VertexAssociator * process.l1tTrackVertexAssociationProducerExtended *
0183 process.l1tTrackVertexAssociationProducerForJets * process.l1tTrackVertexAssociationProducerExtendedForJets *
0184 process.l1tTrackVertexAssociationProducerForEtMiss * process.l1tTrackVertexAssociationProducerExtendedForEtMiss)
0185 process.pL1TrackJets = cms.Path(process.l1tTrackJets*process.l1tTrackJetsExtended)
0186 process.pL1TrackFastJets = cms.Path(process.l1tTrackFastJets*process.l1tTrackFastJetsExtended)
0187 process.pL1GTTInput = cms.Path(process.l1tGTTInputProducer*process.l1tGTTInputProducerExtended)
0188 process.pL1TrackJetsEmu = cms.Path(process.l1tTrackJetsEmulation*process.l1tTrackJetsExtendedEmulation)
0189 process.pTkMET = cms.Path(process.l1tTrackerEtMiss*process.l1tTrackerEtMissExtended)
0190 process.pTkMETEmu = cms.Path(process.l1tTrackerEmuEtMiss)
0191 process.pTkMHT = cms.Path(process.l1tTrackerHTMiss*process.l1tTrackerHTMissExtended)
0192 process.pTkMHTEmulator = cms.Path(process.l1tTrackerEmuHTMiss*process.l1tTrackerEmuHTMissExtended)
0193 process.pL1TrackTripletEmulator = cms.Path(process.l1tTrackTripletEmulation)
0194 DISPLACED = 'Both'
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204
0205
0206
0207
0208
0209 process.L1TrackNtuple = cms.EDAnalyzer('L1TrackObjectNtupleMaker',
0210 MyProcess = cms.int32(1),
0211 DebugMode = cms.bool(False),
0212 SaveAllTracks = cms.bool(True),
0213 SaveStubs = cms.bool(False),
0214 Displaced = cms.string(DISPLACED),
0215 L1Tk_minNStub = cms.int32(4),
0216 TP_minNStub = cms.int32(4),
0217 TP_minNStubLayer = cms.int32(4),
0218 TP_minPt = cms.double(2.0),
0219 TP_maxEta = cms.double(2.5),
0220 TP_maxZ0 = cms.double(15.0),
0221 L1TrackInputTag = cms.InputTag("l1tTTTracksFromTrackletEmulation", "Level1TTTracks"),
0222 L1TrackExtendedInputTag = cms.InputTag("l1tTTTracksFromExtendedTrackletEmulation", "Level1TTTracks"),
0223 MCTruthTrackInputTag = cms.InputTag("TTTrackAssociatorFromPixelDigis", "Level1TTTracks"),
0224 MCTruthTrackExtendedInputTag = cms.InputTag("TTTrackAssociatorFromPixelDigisExtended", "Level1TTTracks"),
0225 L1TrackGTTInputTag = cms.InputTag("l1tGTTInputProducer","Level1TTTracksConverted"),
0226 L1TrackExtendedGTTInputTag = cms.InputTag("l1tGTTInputProducerExtended","Level1TTTracksExtendedConverted"),
0227 L1TrackSelectedInputTag = cms.InputTag("l1tTrackSelectionProducer", "Level1TTTracksSelected"),
0228 L1TrackSelectedEmulationInputTag = cms.InputTag("l1tTrackSelectionProducer", "Level1TTTracksSelectedEmulation"),
0229 L1TrackSelectedAssociatedInputTag = cms.InputTag(AssociationName, "Level1TTTracksSelectedAssociated"),
0230 L1TrackSelectedAssociatedEmulationInputTag = cms.InputTag(AssociationName, "Level1TTTracksSelectedAssociatedEmulation"),
0231
0232 L1TrackSelectedForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerForJets", "Level1TTTracksSelected"),
0233 L1TrackSelectedEmulationForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerForJets", "Level1TTTracksSelectedEmulation"),
0234 L1TrackSelectedAssociatedForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForJets", "Level1TTTracksSelectedAssociated"),
0235 L1TrackSelectedAssociatedEmulationForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForJets", "Level1TTTracksSelectedAssociatedEmulation"),
0236
0237 L1TrackSelectedForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerForEtMiss", "Level1TTTracksSelected"),
0238 L1TrackSelectedEmulationForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerForEtMiss", "Level1TTTracksSelectedEmulation"),
0239 L1TrackSelectedAssociatedForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForEtMiss", "Level1TTTracksSelectedAssociated"),
0240 L1TrackSelectedAssociatedEmulationForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForEtMiss", "Level1TTTracksSelectedAssociatedEmulation"),
0241
0242 L1TrackExtendedSelectedInputTag = cms.InputTag("l1tTrackSelectionProducerExtended", "Level1TTTracksExtendedSelected"),
0243 L1TrackExtendedSelectedEmulationInputTag = cms.InputTag("l1tTrackSelectionProducerExtended", "Level1TTTracksExtendedSelectedEmulation"),
0244 L1TrackExtendedSelectedAssociatedInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtended", "Level1TTTracksExtendedSelectedAssociated"),
0245 L1TrackExtendedSelectedAssociatedEmulationInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtended", "Level1TTTracksExtendedSelectedAssociatedEmulation"),
0246
0247 L1TrackExtendedSelectedForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForJets", "Level1TTTracksExtendedSelected"),
0248 L1TrackExtendedSelectedEmulationForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForJets", "Level1TTTracksExtendedSelectedEmulation"),
0249 L1TrackExtendedSelectedAssociatedForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForJets", "Level1TTTracksExtendedSelectedAssociated"),
0250 L1TrackExtendedSelectedAssociatedEmulationForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForJets", "Level1TTTracksExtendedSelectedAssociatedEmulation"),
0251
0252 L1TrackExtendedSelectedForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForEtMiss", "Level1TTTracksExtendedSelected"),
0253 L1TrackExtendedSelectedEmulationForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForEtMiss", "Level1TTTracksExtendedSelectedEmulation"),
0254 L1TrackExtendedSelectedAssociatedForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForEtMiss", "Level1TTTracksExtendedSelectedAssociated"),
0255 L1TrackExtendedSelectedAssociatedEmulationForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForEtMiss", "Level1TTTracksExtendedSelectedAssociatedEmulation"),
0256
0257 L1StubInputTag = cms.InputTag("TTStubsFromPhase2TrackerDigis","StubAccepted"),
0258 MCTruthClusterInputTag = cms.InputTag("TTClusterAssociatorFromPixelDigis", "ClusterAccepted"),
0259 MCTruthStubInputTag = cms.InputTag("TTStubAssociatorFromPixelDigis", "StubAccepted"),
0260 TrackingParticleInputTag = cms.InputTag("mix", "MergedTrackTruth"),
0261 TrackingVertexInputTag = cms.InputTag("mix", "MergedTrackTruth"),
0262 GenJetInputTag = cms.InputTag("ak4GenJets", ""),
0263
0264 SaveTrackJets = cms.bool(True),
0265 SaveTrackSums = cms.bool(True),
0266 TrackFastJetsInputTag = cms.InputTag("l1tTrackFastJets","L1TrackFastJets"),
0267 TrackFastJetsExtendedInputTag = cms.InputTag("l1tTrackFastJetsExtended","L1TrackFastJetsExtended"),
0268 TrackJetsInputTag=cms.InputTag("l1tTrackJets", "L1TrackJets"),
0269 TrackTripletsInputTag = cms.InputTag("l1tTrackTripletEmulation", "L1TrackTriplet"),
0270 TrackJetsExtendedInputTag=cms.InputTag("l1tTrackJetsExtended", "L1TrackJetsExtended"),
0271 TrackJetsEmuInputTag = cms.InputTag("l1tTrackJetsEmulation","L1TrackJets"),
0272 TrackJetsExtendedEmuInputTag = cms.InputTag("l1tTrackJetsExtendedEmulation","L1TrackJetsExtended"),
0273 TrackMETInputTag = cms.InputTag("l1tTrackerEtMiss","L1TrackerEtMiss"),
0274 TrackMETExtendedInputTag = cms.InputTag("l1tTrackerEtMissExtended","L1TrackerExtendedEtMiss"),
0275 TrackMETEmuInputTag = cms.InputTag("l1tTrackerEmuEtMiss","L1TrackerEmuEtMiss"),
0276 TrackMHTInputTag = cms.InputTag("l1tTrackerHTMiss","L1TrackerHTMiss"),
0277 TrackMHTExtendedInputTag = cms.InputTag("l1tTrackerHTMissExtended","L1TrackerHTMissExtended"),
0278 TrackMHTEmuInputTag = cms.InputTag("l1tTrackerEmuHTMiss",process.l1tTrackerEmuHTMiss.L1MHTCollectionName.value()),
0279 TrackMHTEmuExtendedInputTag = cms.InputTag("l1tTrackerEmuHTMissExtended",process.l1tTrackerEmuHTMissExtended.L1MHTCollectionName.value()),
0280 SimVertexInputTag = cms.InputTag("g4SimHits",""),
0281 GenParticleInputTag = cms.InputTag("genParticles",""),
0282 RecoVertexInputTag=cms.InputTag("l1tVertexFinder", "L1Vertices"),
0283 RecoVertexEmuInputTag=cms.InputTag("l1tVertexFinderEmulator", "L1VerticesEmulation"),
0284 )
0285
0286 process.ntuple = cms.Path(process.L1TrackNtuple)
0287
0288 process.out = cms.OutputModule( "PoolOutputModule",
0289
0290 outputCommands = cms.untracked.vstring("keep *","drop *_*_*_HLT"),
0291 fileName = cms.untracked.string("test.root" )
0292 )
0293
0294
0295 process.pOut = cms.EndPath(process.out)
0296
0297
0298
0299
0300
0301
0302
0303
0304 process.schedule = cms.Schedule(process.TTClusterStub, process.TTClusterStubTruth, process.dtc, process.TTTracksEmuWithTruth, process.pL1GTTInput, process.pL1TrackSelection, process.pPV, process.pPVemu,process.pL1TrackVertexAssociation, process.pL1TrackJets, process.pL1TrackJetsEmu,process.pL1TrackFastJets, process.pTkMET, process.pTkMETEmu, process.pTkMHT, process.pTkMHTEmulator,process.pL1TrackTripletEmulator, process.ntuple)