Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-06-03 00:12:12

0001 ############################################################
0002 # define basic process
0003 ############################################################
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 import FWCore.Utilities.FileUtils as FileUtils
0007 import os
0008 
0009 ############################################################
0010 # edit options here
0011 ############################################################
0012 L1TRK_INST ="MyL1TrackJets" ### if not in input DIGRAW then we make them in the above step
0013 process = cms.Process(L1TRK_INST)
0014 
0015 #L1TRKALGO = 'HYBRID'  #baseline, 4par fit
0016 #L1TRKALGO = 'HYBRID_DISPLACED'  #extended, 5par fit
0017 L1TRKALGO = 'HYBRID_PROMPTANDDISP'
0018 
0019 DISPLACED = ''
0020 
0021 
0022 runVtxNN = True
0023 runDispVert = False
0024 ############################################################
0025 # import standard configurations
0026 ############################################################
0027 
0028 process.load('Configuration.StandardSequences.Services_cff')
0029 process.load('Configuration.EventContent.EventContent_cff')
0030 process.load('Configuration.StandardSequences.MagneticField_cff')
0031 process.load('Configuration.Geometry.GeometryExtendedRun4D110Reco_cff')
0032 process.load('Configuration.Geometry.GeometryExtendedRun4D110_cff')
0033 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0034 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0035 
0036 from Configuration.AlCa.GlobalTag import GlobalTag
0037 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0038 
0039 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0040 process.MessageLogger.cerr.INFO.limit = cms.untracked.int32(0) # default: 0
0041 
0042 ############################################################
0043 # input and output
0044 ############################################################
0045 
0046 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(20))
0047 
0048 readFiles = cms.untracked.vstring(
0049     '/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'
0050 )
0051 secFiles = cms.untracked.vstring()
0052 
0053 process.source = cms.Source ("PoolSource",
0054                             fileNames = readFiles,
0055                             secondaryFileNames = secFiles,
0056                             duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),
0057                             )
0058 
0059 process.source.inputCommands = cms.untracked.vstring("keep *","drop l1tTkPrimaryVertexs_L1TkPrimaryVertex__*")
0060 process.Timing = cms.Service("Timing",
0061   summaryOnly = cms.untracked.bool(True),
0062   useJobReport = cms.untracked.bool(False)
0063 )
0064 
0065 process.TFileService = cms.Service("TFileService", fileName = cms.string('GTTObjects_ttbar200PU_Spring23.root'), closeFileFast = cms.untracked.bool(True))
0066 
0067 
0068 ############################################################
0069 # L1 tracking: remake stubs?
0070 ############################################################
0071 
0072 process.load('L1Trigger.TrackTrigger.TrackTrigger_cff')
0073 from L1Trigger.TrackTrigger.TTStubAlgorithmRegister_cfi import *
0074 process.load("SimTracker.TrackTriggerAssociation.TrackTriggerAssociator_cff")
0075 
0076 from SimTracker.TrackTriggerAssociation.TTClusterAssociation_cfi import *
0077 TTClusterAssociatorFromPixelDigis.digiSimLinks = cms.InputTag("simSiPixelDigis","Tracker")
0078 
0079 process.TTClusterStub = cms.Path(process.TrackTriggerClustersStubs)
0080 process.TTClusterStubTruth = cms.Path(process.TrackTriggerAssociatorClustersStubs)
0081 
0082 
0083 # DTC emulation
0084 process.load('L1Trigger.TrackerDTC.DTC_cff')
0085 process.dtc = cms.Path(process.ProducerDTC)
0086 
0087 process.load("L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
0088 process.load("L1Trigger.L1TTrackMatch.l1tTrackSelectionProducer_cfi")
0089 process.load("L1Trigger.L1TTrackMatch.l1tTrackVertexAssociationProducer_cfi")
0090 process.load("L1Trigger.L1TTrackMatch.l1tTrackJets_cfi")
0091 process.load("L1Trigger.L1TTrackMatch.l1tGTTInputProducer_cfi")
0092 process.load("L1Trigger.L1TTrackMatch.l1tTrackJetsEmulation_cfi")
0093 process.load("L1Trigger.L1TTrackMatch.l1tTrackFastJets_cfi")
0094 process.load("L1Trigger.L1TTrackMatch.l1tTrackerEtMiss_cfi")
0095 process.load("L1Trigger.L1TTrackMatch.l1tTrackerEmuEtMiss_cfi")
0096 process.load("L1Trigger.L1TTrackMatch.l1tTrackerHTMiss_cfi")
0097 process.load("L1Trigger.L1TTrackMatch.l1tTrackerEmuHTMiss_cfi")
0098 process.load("L1Trigger.L1TTrackMatch.l1tTrackTripletEmulation_cfi")
0099 process.load('L1Trigger.VertexFinder.l1tVertexProducer_cfi')
0100 process.load('L1Trigger.L1TTrackMatch.DisplacedVertexProducer_cfi')
0101 
0102 ############################################################
0103 # Primary vertex
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), # pt must be greater than this value, [GeV]
0113                                                         absEtaMax = cms.double(2.4), # absolute value of eta must be less than this value
0114                                                         absZ0Max = cms.double(15.0), # z0 must be less than this value, [cm]
0115                                                         nStubsMin = cms.int32(4), # number of stubs must be greater than or equal to this value
0116                                                         nPSStubsMin = cms.int32(0), # the number of stubs in the PS Modules must be greater than or equal to this value
0117                                                         promptMVAMin = cms.double(-1.0), # MVA must be greater than this value
0118                                                         reducedBendChi2Max = cms.double(999.0), # bend chi2 must be less than this value
0119                                                         reducedChi2RZMax = cms.double(999.0), # chi2rz/dof must be less than this value
0120                                                         reducedChi2RPhiMax = cms.double(999.0), # chi2rphi/dof must be less than this value
0121                                                         reducedChi2MaxNstub4 = cms.double(999.9), # chi2/dof with nstub==4 must be less than this value
0122                                                         reducedChi2MaxNstub5 = cms.double(999.9), # chi2/dof with nstub>4 must be less than this value
0123                                                         reducedBendChi2MaxNstub4 = cms.double(999.9), # bend chi2 with nstub==4 must be less than this value
0124                                                         reducedBendChi2MaxNstub5 = cms.double(999.9), # bend chi2 with nstub>4 must be less than this value
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 # HYBRID: prompt tracking
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 # HYBRID: extended tracking
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     if(runDispVert):
0174         process.DispVert = cms.Path(process.DisplacedVertexProducer)
0175     DISPLACED = 'Displaced'#
0176 
0177 # HYBRID: extended tracking
0178 elif (L1TRKALGO == 'HYBRID_PROMPTANDDISP'):
0179     process.TTTracksEmu = cms.Path(process.L1TPromptExtendedHybridTracks)
0180     process.TTTracksEmuWithTruth = cms.Path(process.L1TPromptExtendedHybridTracksWithAssociators)
0181     process.pL1TrackSelection = cms.Path(process.l1tTrackSelectionProducer * process.l1tTrackSelectionProducerExtended *
0182                                          process.l1tTrackSelectionProducerForJets * process.l1tTrackSelectionProducerExtendedForJets *
0183                                          process.l1tTrackSelectionProducerForEtMiss * process.l1tTrackSelectionProducerExtendedForEtMiss)
0184     process.pL1TrackVertexAssociation = cms.Path(VertexAssociator * process.l1tTrackVertexAssociationProducerExtended *
0185                                                  process.l1tTrackVertexAssociationProducerForJets * process.l1tTrackVertexAssociationProducerExtendedForJets *
0186                                                  process.l1tTrackVertexAssociationProducerForEtMiss * process.l1tTrackVertexAssociationProducerExtendedForEtMiss)
0187     process.pL1TrackJets = cms.Path(process.l1tTrackJets*process.l1tTrackJetsExtended)
0188     process.pL1TrackFastJets = cms.Path(process.l1tTrackFastJets*process.l1tTrackFastJetsExtended)
0189     process.pL1GTTInput = cms.Path(process.l1tGTTInputProducer*process.l1tGTTInputProducerExtended)
0190     process.pL1TrackJetsEmu = cms.Path(process.l1tTrackJetsEmulation*process.l1tTrackJetsExtendedEmulation)
0191     process.pTkMET = cms.Path(process.l1tTrackerEtMiss*process.l1tTrackerEtMissExtended)
0192     process.pTkMETEmu = cms.Path(process.l1tTrackerEmuEtMiss)
0193     process.pTkMHT = cms.Path(process.l1tTrackerHTMiss*process.l1tTrackerHTMissExtended)
0194     process.pTkMHTEmulator = cms.Path(process.l1tTrackerEmuHTMiss*process.l1tTrackerEmuHTMissExtended)
0195     process.pL1TrackTripletEmulator = cms.Path(process.l1tTrackTripletEmulation)
0196     if(runDispVert):
0197         process.DispVert = cms.Path(process.DisplacedVertexProducer)
0198     DISPLACED = 'Both'
0199 
0200 
0201 
0202 
0203 ############################################################
0204 # Define the track ntuple process, MyProcess is the (unsigned) PDGID corresponding to the process which is run
0205 # e.g. single electron/positron = 11
0206 #      single pion+/pion- = 211
0207 #      single muon+/muon- = 13
0208 #      pions in jets = 6
0209 #      taus = 15
0210 #      all TPs = 1
0211 ############################################################
0212 
0213 process.L1TrackNtuple = cms.EDAnalyzer('L1TrackObjectNtupleMaker',
0214         MyProcess = cms.int32(1),
0215         DebugMode = cms.bool(False),      # printout lots of debug statements
0216         SaveAllTracks = cms.bool(True),  # save *all* L1 tracks, not just truth matched to primary particle
0217         SaveStubs = cms.bool(False),      # save some info for *all* stubs
0218         Displaced = cms.string(DISPLACED),# "Prompt", "Displaced", "Both"
0219         L1Tk_minNStub = cms.int32(4),     # L1 tracks with >= 4 stubs
0220         TP_minNStub = cms.int32(4),       # require TP to have >= X number of stubs associated with it
0221         TP_minNStubLayer = cms.int32(4),  # require TP to have stubs in >= X layers/disks
0222         TP_minPt = cms.double(2.0),       # only save TPs with pt > X GeV
0223         TP_maxEta = cms.double(2.5),      # only save TPs with |eta| < X
0224         TP_maxZ0 = cms.double(15.0),      # only save TPs with |z0| < X cm
0225         L1TrackInputTag = cms.InputTag("l1tTTTracksFromTrackletEmulation", "Level1TTTracks"),                                                      # TTTracks, prompt
0226         L1TrackExtendedInputTag = cms.InputTag("l1tTTTracksFromExtendedTrackletEmulation", "Level1TTTracks"),                                      # TTTracks, extended
0227         MCTruthTrackInputTag = cms.InputTag("TTTrackAssociatorFromPixelDigis", "Level1TTTracks"),                                               # MCTruth track, prompt
0228         MCTruthTrackExtendedInputTag = cms.InputTag("TTTrackAssociatorFromPixelDigisExtended", "Level1TTTracks"),                               # MCTruth track, extended
0229         L1TrackGTTInputTag = cms.InputTag("l1tGTTInputProducer","Level1TTTracksConverted"),                                                      # TTTracks, prompt, GTT converted
0230         L1TrackExtendedGTTInputTag = cms.InputTag("l1tGTTInputProducerExtended","Level1TTTracksExtendedConverted"),                              # TTTracks, extended, GTT converted
0231         L1TrackSelectedInputTag = cms.InputTag("l1tTrackSelectionProducer", "Level1TTTracksSelected"),                                           # TTTracks, prompt, selected
0232         L1TrackSelectedEmulationInputTag = cms.InputTag("l1tTrackSelectionProducer", "Level1TTTracksSelectedEmulation"),                         # TTTracks, prompt, emulation, selected
0233         L1TrackSelectedAssociatedInputTag = cms.InputTag(AssociationName, "Level1TTTracksSelectedAssociated"),                                           # TTTracks, prompt, selected, associated
0234         L1TrackSelectedAssociatedEmulationInputTag = cms.InputTag(AssociationName, "Level1TTTracksSelectedAssociatedEmulation"),                         # TTTracks, prompt, emulation, selected, associated
0235 
0236         L1TrackSelectedForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerForJets", "Level1TTTracksSelected"),                                           # TTTracks, prompt, selected
0237         L1TrackSelectedEmulationForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerForJets", "Level1TTTracksSelectedEmulation"),                         # TTTracks, prompt, emulation, selected
0238         L1TrackSelectedAssociatedForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForJets", "Level1TTTracksSelectedAssociated"),                                           # TTTracks, prompt, selected, associated
0239         L1TrackSelectedAssociatedEmulationForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForJets", "Level1TTTracksSelectedAssociatedEmulation"),                         # TTTracks, prompt, emulation, selected, associated
0240                                        
0241         L1TrackSelectedForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerForEtMiss", "Level1TTTracksSelected"),                                           # TTTracks, prompt, selected
0242         L1TrackSelectedEmulationForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerForEtMiss", "Level1TTTracksSelectedEmulation"),                         # TTTracks, prompt, emulation, selected
0243         L1TrackSelectedAssociatedForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForEtMiss", "Level1TTTracksSelectedAssociated"),                                           # TTTracks, prompt, selected, associated
0244         L1TrackSelectedAssociatedEmulationForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerForEtMiss", "Level1TTTracksSelectedAssociatedEmulation"),                         # TTTracks, prompt, emulation, selected, associated
0245 
0246         L1TrackExtendedSelectedInputTag = cms.InputTag("l1tTrackSelectionProducerExtended", "Level1TTTracksExtendedSelected"),                                           # TTTracks, extended, selected
0247         L1TrackExtendedSelectedEmulationInputTag = cms.InputTag("l1tTrackSelectionProducerExtended", "Level1TTTracksExtendedSelectedEmulation"),                         # TTTracks, extended, emulation, selected
0248         L1TrackExtendedSelectedAssociatedInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtended", "Level1TTTracksExtendedSelectedAssociated"),                                           # TTTracks, extended, selected, associated
0249         L1TrackExtendedSelectedAssociatedEmulationInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtended", "Level1TTTracksExtendedSelectedAssociatedEmulation"),                         # TTTracks, extended, emulation, selected, associated
0250                                        
0251         L1TrackExtendedSelectedForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForJets", "Level1TTTracksExtendedSelected"),                                           # TTTracks, extended, selected
0252         L1TrackExtendedSelectedEmulationForJetsInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForJets", "Level1TTTracksExtendedSelectedEmulation"),                         # TTTracks, extended, emulation, selected
0253         L1TrackExtendedSelectedAssociatedForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForJets", "Level1TTTracksExtendedSelectedAssociated"),                                           # TTTracks, extended, selected, associated
0254         L1TrackExtendedSelectedAssociatedEmulationForJetsInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForJets", "Level1TTTracksExtendedSelectedAssociatedEmulation"),                         # TTTracks, extended, emulation, selected, associated
0255                                        
0256         L1TrackExtendedSelectedForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForEtMiss", "Level1TTTracksExtendedSelected"),                                           # TTTracks, extended, selected
0257         L1TrackExtendedSelectedEmulationForEtMissInputTag = cms.InputTag("l1tTrackSelectionProducerExtendedForEtMiss", "Level1TTTracksExtendedSelectedEmulation"),                         # TTTracks, extended, emulation, selected
0258         L1TrackExtendedSelectedAssociatedForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForEtMiss", "Level1TTTracksExtendedSelectedAssociated"),                                           # TTTracks, extended, selected, associated
0259         L1TrackExtendedSelectedAssociatedEmulationForEtMissInputTag = cms.InputTag("l1tTrackVertexAssociationProducerExtendedForEtMiss", "Level1TTTracksExtendedSelectedAssociatedEmulation"),                         # TTTracks, extended, emulation, selected, associated
0260                                                                               
0261         L1StubInputTag = cms.InputTag("TTStubsFromPhase2TrackerDigis","StubAccepted"),
0262         MCTruthClusterInputTag = cms.InputTag("TTClusterAssociatorFromPixelDigis", "ClusterAccepted"),
0263         MCTruthStubInputTag = cms.InputTag("TTStubAssociatorFromPixelDigis", "StubAccepted"),
0264         TrackingParticleInputTag = cms.InputTag("mix", "MergedTrackTruth"),
0265         TrackingVertexInputTag = cms.InputTag("mix", "MergedTrackTruth"),
0266         GenJetInputTag = cms.InputTag("ak4GenJets", ""),
0267         ##track jets and track MET
0268         SaveTrackJets = cms.bool(True), #includes emulated jets
0269         SaveTrackSums = cms.bool(True), #includes simulated/emulated track MET, MHT, and HT
0270         TrackFastJetsInputTag = cms.InputTag("l1tTrackFastJets","L1TrackFastJets"),
0271         TrackFastJetsExtendedInputTag = cms.InputTag("l1tTrackFastJetsExtended","L1TrackFastJetsExtended"),
0272         TrackJetsInputTag=cms.InputTag("l1tTrackJets", "L1TrackJets"),
0273         TrackTripletsInputTag = cms.InputTag("l1tTrackTripletEmulation", "L1TrackTriplet"),
0274         TrackJetsExtendedInputTag=cms.InputTag("l1tTrackJetsExtended", "L1TrackJetsExtended"),
0275         TrackJetsEmuInputTag = cms.InputTag("l1tTrackJetsEmulation","L1TrackJets"),
0276         TrackJetsExtendedEmuInputTag = cms.InputTag("l1tTrackJetsExtendedEmulation","L1TrackJetsExtended"),
0277         TrackMETInputTag = cms.InputTag("l1tTrackerEtMiss","L1TrackerEtMiss"),
0278         TrackMETExtendedInputTag = cms.InputTag("l1tTrackerEtMissExtended","L1TrackerExtendedEtMiss"),
0279         TrackMETEmuInputTag = cms.InputTag("l1tTrackerEmuEtMiss","L1TrackerEmuEtMiss"),
0280         TrackMHTInputTag = cms.InputTag("l1tTrackerHTMiss","L1TrackerHTMiss"), #includes HT
0281         TrackMHTExtendedInputTag = cms.InputTag("l1tTrackerHTMissExtended","L1TrackerHTMissExtended"),
0282         TrackMHTEmuInputTag = cms.InputTag("l1tTrackerEmuHTMiss",process.l1tTrackerEmuHTMiss.L1MHTCollectionName.value()),
0283         TrackMHTEmuExtendedInputTag = cms.InputTag("l1tTrackerEmuHTMissExtended",process.l1tTrackerEmuHTMissExtended.L1MHTCollectionName.value()),
0284         SimVertexInputTag = cms.InputTag("g4SimHits",""),
0285         GenParticleInputTag = cms.InputTag("genParticles",""),
0286         RecoVertexInputTag=cms.InputTag("l1tVertexFinder", "L1Vertices"),
0287         RecoVertexEmuInputTag=cms.InputTag("l1tVertexFinderEmulator", "L1VerticesEmulation"),
0288         DisplacedVertexInputTag = cms.InputTag("DisplacedVertexProducer","dispVertices"),
0289         DisplacedVertexEmulationInputTag = cms.InputTag("DisplacedVertexProducer","dispVerticesEmulation"),
0290         runDispVert = cms.bool(runDispVert)
0291 )
0292 
0293 process.ntuple = cms.Path(process.L1TrackNtuple)
0294 
0295 process.out = cms.OutputModule( "PoolOutputModule",
0296  #                               outputCommands = process.RAWSIMEventContent.outputCommands,
0297                                 outputCommands = cms.untracked.vstring("keep *","drop *_*_*_HLT"),
0298                                 fileName = cms.untracked.string("test.root" )
0299                        )
0300 #process.out.outputCommands.append('keep  *_*_*_*')
0301 #process.out.outputCommands.append('drop  l1tEMTFHits_*_*_*')
0302 process.pOut = cms.EndPath(process.out)
0303 
0304 
0305 # use this if you want to re-run the stub making
0306 # process.schedule = cms.Schedule(process.TTClusterStub,process.TTClusterStubTruth,process.TTTracksEmuWithTruth,process.ntuple)
0307 
0308 # use this if cluster/stub associators not available
0309 # process.schedule = cms.Schedule(process.TTClusterStubTruth,process.TTTracksEmuWithTruth,process.ntuple)
0310 
0311 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)
0312 
0313 if(runDispVert):
0314     process.schedule.append(process.DispVert)