8 import FWCore.ParameterSet.Config
as cms
9 import os, sys, imp, re, random
10 import FWCore.ParameterSet.VarParsing
as VarParsing
15 options.register(
'geometry',
17 VarParsing.VarParsing.multiplicity.singleton,
18 VarParsing.VarParsing.varType.string,
19 "geometry of operations: D49, D88, D92, D93")
22 options.parseArguments()
29 if (options.geometry ==
"D49"):
30 from Configuration.Eras.Era_Phase2C9_cff
import Phase2C9
31 process = cms.Process(
'SingleMuonDigi',Phase2C9)
32 process.load(
'Configuration.Geometry.GeometryExtended2026D49Reco_cff')
33 globalTag =
"auto:phase2_realistic_T15" 34 elif (options.geometry ==
"D88"):
35 from Configuration.Eras.Era_Phase2C11I13M9_cff
import Phase2C11I13M9
36 process = cms.Process(
'SingleMuonDigi',Phase2C11I13M9)
37 process.load(
'Configuration.Geometry.GeometryExtended2026D88Reco_cff')
38 globalTag =
"auto:phase2_realistic_T21" 39 elif (options.geometry ==
"D93"):
40 from Configuration.Eras.Era_Phase2C11I13M9_cff
import Phase2C11I13M9
41 process = cms.Process(
'SingleMuonDigi',Phase2C11I13M9)
42 process.load(
'Configuration.Geometry.GeometryExtended2026D93Reco_cff')
43 globalTag =
"auto:phase2_realistic_T21" 45 from Configuration.Eras.Era_Phase2C11I13M9_cff
import Phase2C11I13M9
46 process = cms.Process(
'SingleMuonDigi',Phase2C11I13M9)
47 process.load(
'Configuration.Geometry.GeometryExtended2026D92Reco_cff')
48 globalTag =
"auto:phase2_realistic_T21" 50 print(
"Global Tag: ", globalTag)
53 process.load(
'Configuration.StandardSequences.Services_cff')
54 process.load(
'SimGeneral.HepPDTESSource.pythiapdt_cfi')
55 process.load(
'FWCore.MessageService.MessageLogger_cfi')
56 process.load(
'Configuration.EventContent.EventContent_cff')
57 process.load(
'SimGeneral.MixingModule.mixNoPU_cfi')
58 process.load(
'Configuration.StandardSequences.MagneticField_cff')
59 process.load(
'Configuration.StandardSequences.Digi_cff')
60 process.load(
'Configuration.StandardSequences.L1TrackTrigger_cff')
61 process.load(
'Configuration.StandardSequences.SimL1Emulator_cff')
62 process.load(
'Configuration.StandardSequences.DigiToRaw_cff')
63 process.load(
'HLTrigger.Configuration.HLT_Fake2_cff')
64 process.load(
'Configuration.StandardSequences.EndOfProcess_cff')
65 process.load(
'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
67 process.maxEvents = cms.untracked.PSet(
68 input = cms.untracked.int32(-1),
69 output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
73 process.source = cms.Source(
"PoolSource",
74 dropDescendantsOfDroppedBranches = cms.untracked.bool(
False),
75 fileNames = cms.untracked.vstring(
'file:step1.root'),
76 inputCommands = cms.untracked.vstring(
78 'drop *_genParticles_*_*',
79 'drop *_genParticlesForJets_*_*',
80 'drop *_kt4GenJets_*_*',
81 'drop *_kt6GenJets_*_*',
82 'drop *_iterativeCone5GenJets_*_*',
83 'drop *_ak4GenJets_*_*',
84 'drop *_ak7GenJets_*_*',
85 'drop *_ak8GenJets_*_*',
86 'drop *_ak4GenJetsNoNu_*_*',
87 'drop *_ak8GenJetsNoNu_*_*',
88 'drop *_genCandidatesForMET_*_*',
89 'drop *_genParticlesForMETAllVisible_*_*',
90 'drop *_genMetCalo_*_*',
91 'drop *_genMetCaloAndNonPrompt_*_*',
92 'drop *_genMetTrue_*_*',
93 'drop *_genMetIC5GenJs_*_*' 95 secondaryFileNames = cms.untracked.vstring()
98 process.options = cms.untracked.PSet(
99 FailPath = cms.untracked.vstring(),
100 IgnoreCompletely = cms.untracked.vstring(),
101 Rethrow = cms.untracked.vstring(),
102 SkipEvent = cms.untracked.vstring(),
103 accelerators = cms.untracked.vstring(
'*'),
104 allowUnscheduled = cms.obsolete.untracked.bool,
105 canDeleteEarly = cms.untracked.vstring(),
106 deleteNonConsumedUnscheduledModules = cms.untracked.bool(
True),
107 dumpOptions = cms.untracked.bool(
False),
108 emptyRunLumiMode = cms.obsolete.untracked.string,
109 eventSetup = cms.untracked.PSet(
110 forceNumberOfConcurrentIOVs = cms.untracked.PSet(
111 allowAnyLabel_=cms.required.untracked.uint32
113 numberOfConcurrentIOVs = cms.untracked.uint32(0)
115 fileMode = cms.untracked.string(
'FULLMERGE'),
116 forceEventSetupCacheClearOnNewRun = cms.untracked.bool(
False),
117 makeTriggerResults = cms.obsolete.untracked.bool,
118 numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
119 numberOfConcurrentRuns = cms.untracked.uint32(1),
120 numberOfStreams = cms.untracked.uint32(0),
121 numberOfThreads = cms.untracked.uint32(1),
122 printDependencies = cms.untracked.bool(
False),
123 sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
124 throwIfIllegalParameter = cms.untracked.bool(
True),
125 wantSummary = cms.untracked.bool(
False)
129 process.configurationMetadata = cms.untracked.PSet(
130 annotation = cms.untracked.string(
'step2 nevts:1000'),
131 name = cms.untracked.string(
'Applications'),
132 version = cms.untracked.string(
'$Revision: 1.19 $')
137 process.FEVTDEBUGHLToutput = cms.OutputModule(
"PoolOutputModule",
138 dataset = cms.untracked.PSet(
139 dataTier = cms.untracked.string(
'GEN-SIM-DIGI-RAW'),
140 filterName = cms.untracked.string(
'')
142 fileName = cms.untracked.string(
'file:step2.root'),
143 outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
144 splitLevel = cms.untracked.int32(0)
150 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
151 from Configuration.AlCa.GlobalTag
import GlobalTag
152 process.GlobalTag =
GlobalTag(process.GlobalTag, globalTag,
'')
155 process.digitisation_step = cms.Path(process.pdigi_valid)
156 process.L1TrackTrigger_step = cms.Path(process.L1TrackTrigger)
157 process.L1simulation_step = cms.Path(process.SimL1Emulator)
158 process.digi2raw_step = cms.Path(process.DigiToRaw)
159 process.endjob_step = cms.EndPath(process.endOfProcess)
160 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
164 process.schedule.insert(0, process.digitisation_step)
165 process.schedule.insert(1, process.L1TrackTrigger_step)
166 process.schedule.insert(2, process.L1simulation_step)
167 process.schedule.insert(3, process.digi2raw_step)
168 process.schedule.extend([process.endjob_step,process.FEVTDEBUGHLToutput_step])
176 from HLTrigger.Configuration.customizeHLTforMC
import customizeHLTforMC
187 from Configuration.StandardSequences.earlyDeleteSettings_cff
import customiseEarlyDelete
def customiseEarlyDelete(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def associatePatAlgosToolsTask(process)