5 import FWCore.ParameterSet.Config
as cms
6 import FWCore.Utilities.FileUtils
as FileUtils
12 L1TRK_INST =
"L1TrackJets"
13 process = cms.Process(L1TRK_INST)
25 process.load(
'Configuration.StandardSequences.Services_cff')
26 process.load(
'Configuration.EventContent.EventContent_cff')
27 process.load(
'Configuration.StandardSequences.MagneticField_cff')
28 process.load(
'Configuration.Geometry.GeometryExtended2026D49Reco_cff')
29 process.load(
'Configuration.Geometry.GeometryExtended2026D49_cff')
30 process.load(
'Configuration.StandardSequences.EndOfProcess_cff')
31 process.load(
'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
33 from Configuration.AlCa.GlobalTag
import GlobalTag
34 process.GlobalTag =
GlobalTag(process.GlobalTag,
'auto:phase2_realistic',
'')
40 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(50))
42 readFiles = cms.untracked.vstring(
43 "/store/relval/CMSSW_11_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU25ns_110X_mcRun4_realistic_v2_2026D49PU200-v1/20000/F7BF4AED-51F1-9D47-B86D-6C3DDA134AB9.root"
45 secFiles = cms.untracked.vstring()
47 process.source = cms.Source (
"PoolSource",
48 fileNames = readFiles,
49 secondaryFileNames = secFiles,
50 duplicateCheckMode = cms.untracked.string(
'noDuplicateCheck'),
54 process.TFileService = cms.Service(
"TFileService", fileName = cms.string(
'CheckingJets_CMSSW11_CMS.root'), closeFileFast = cms.untracked.bool(
True))
72 process.load(
"L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
73 process.load(
"L1Trigger.L1TTrackMatch.L1TrackJetProducer_cfi")
74 process.load(
"L1Trigger.L1TTrackMatch.L1TrackFastJetProducer_cfi")
75 process.load(
"L1Trigger.L1TTrackMatch.L1TrackerEtMissProducer_cfi")
76 process.load(
"L1Trigger.L1TTrackMatch.L1TkHTMissProducer_cfi")
80 if (L1TRKALGO ==
'HYBRID'):
81 process.TTTracksEmulation = cms.Path(process.L1HybridTracks)
82 process.TTTracksEmulationWithTruth = cms.Path(process.L1HybridTracksWithAssociators)
83 process.pL1TrackJets = cms.Path(process.L1TrackJets)
84 process.pL1TrackFastJets=cms.Path(process.L1TrackFastJets)
85 process.pTkMET = cms.Path(process.L1TrackerEtMiss)
86 process.pTkMHT = cms.Path(process.L1TrackerHTMiss)
90 elif (L1TRKALGO ==
'HYBRID_DISPLACED'):
91 process.TTTracksEmulation = cms.Path(process.L1ExtendedHybridTracks)
92 process.TTTracksEmulationWithTruth = cms.Path(process.L1ExtendedHybridTracksWithAssociators)
93 process.pL1TrackJets = cms.Path(process.L1TrackJetsExtended)
94 process.pL1TrackFastJets = cms.Path(process.L1TrackFastJetsExtended)
95 process.pTkMET = cms.Path(process.L1TrackerEtMissExtended)
96 process.pTkMHT = cms.Path(process.L1TrackerHTMissExtended)
97 DISPLACED =
'Displaced'
100 elif (L1TRKALGO ==
'HYBRID_PROMPTANDDISP'):
101 process.TTTracksEmulation = cms.Path(process.L1PromptExtendedHybridTracks)
102 process.TTTracksEmulationWithTruth = cms.Path(process.L1PromptExtendedHybridTracksWithAssociators)
103 process.pL1TrackJets = cms.Path(process.L1TrackJets*process.L1TrackJetsExtended)
104 process.pL1TrackFastJets = cms.Path(process.L1TrackFastJets*process.L1TrackFastJetsExtended)
105 process.pTkMET = cms.Path(process.L1TrackerEtMiss*process.L1TrackerEtMissExtended)
106 process.pTkMHT = cms.Path(process.L1TrackerHTMiss*process.L1TrackerHTMissExtended)
113 process.load(
"L1Trigger.L1TTrackMatch.L1TkPrimaryVertexProducer_cfi")
114 process.pPV = cms.Path(process.L1TkPrimaryVertex)
127 process.L1TrackNtuple = cms.EDAnalyzer(
'L1TrackObjectNtupleMaker',
128 MyProcess = cms.int32(1),
129 DebugMode = cms.bool(
False),
130 SaveAllTracks = cms.bool(
True),
131 SaveStubs = cms.bool(
False),
132 Displaced = cms.string(DISPLACED),
133 L1Tk_minNStub = cms.int32(4),
134 TP_minNStub = cms.int32(4),
135 TP_minNStubLayer = cms.int32(4),
136 TP_minPt = cms.double(2.0),
137 TP_maxEta = cms.double(2.5),
138 TP_maxZ0 = cms.double(30.0),
139 L1TrackInputTag = cms.InputTag(
"TTTracksFromTrackletEmulation",
"Level1TTTracks"),
140 L1TrackExtendedInputTag = cms.InputTag(
"TTTracksFromExtendedTrackletEmulation",
"Level1TTTracks"),
141 MCTruthTrackInputTag = cms.InputTag(
"TTTrackAssociatorFromPixelDigis",
"Level1TTTracks"),
142 MCTruthTrackExtendedInputTag = cms.InputTag(
"TTTrackAssociatorFromPixelDigisExtended",
"Level1TTTracks"),
143 L1StubInputTag = cms.InputTag(
"TTStubsFromPhase2TrackerDigis",
"StubAccepted"),
144 MCTruthClusterInputTag = cms.InputTag(
"TTClusterAssociatorFromPixelDigis",
"ClusterAccepted"),
145 MCTruthStubInputTag = cms.InputTag(
"TTStubAssociatorFromPixelDigis",
"StubAccepted"),
146 TrackingParticleInputTag = cms.InputTag(
"mix",
"MergedTrackTruth"),
147 TrackingVertexInputTag = cms.InputTag(
"mix",
"MergedTrackTruth"),
149 TrackingInJets = cms.bool(
False),
150 GenJetInputTag = cms.InputTag(
"ak4GenJets",
""),
152 SaveTrackJets = cms.bool(
True),
153 SaveTrackMET = cms.bool(
True),
154 TrackFastJetsInputTag = cms.InputTag(
"L1TrackFastJets",
"L1TrackFastJets"),
155 TrackFastJetsExtendedInputTag = cms.InputTag(
"L1TrackFastJetsExtended",
"L1TrackFastJetsExtended"),
156 TrackJetsInputTag=cms.InputTag(
"L1TrackJets",
"L1TrackJets"),
157 TrackJetsExtendedInputTag=cms.InputTag(
"L1TrackJetsExtended",
"L1TrackJetsExtended"),
158 TrackMETInputTag = cms.InputTag(
"L1TrackerEtMiss",
"L1TrackerEtMiss",
"L1TrackJets"),
159 TrackMETExtendedInputTag = cms.InputTag(
"L1TrackerEtMissExtended",
"L1TrackerEtMissExtended"),
160 TrackMHTInputTag = cms.InputTag(
"L1TrackerHTMiss",
"L1TrackerHTMiss",
"L1TrackJets"),
161 TrackMHTExtendedInputTag = cms.InputTag(
"L1TrackerHTMissExtended",
"L1TrackerHTMiss"),
162 GenParticleInputTag = cms.InputTag(
"genParticles",
""),
163 RecoVertexInputTag=cms.InputTag(
"L1TkPrimaryVertex"),
166 process.ntuple = cms.Path(process.L1TrackNtuple)
168 process.out = cms.OutputModule(
"PoolOutputModule",
169 fastCloning = cms.untracked.bool(
False ),
170 fileName = cms.untracked.string(
"test.root" )
172 process.pOut = cms.EndPath(process.out)
185 process.schedule = cms.Schedule(process.TTTracksEmulationWithTruth, process.pPV, process.pL1TrackJets, process.pL1TrackFastJets, process.pTkMET, process.pTkMHT, process.ntuple)