11 import FWCore.ParameterSet.Config
as cms
12 import os, sys, imp, re, random
13 import FWCore.ParameterSet.VarParsing
as VarParsing
18 options.register(
'geometry',
20 VarParsing.VarParsing.multiplicity.singleton,
21 VarParsing.VarParsing.varType.string,
22 "geometry of operations: D105, D110, D114, V17Shift, D104")
23 options.register(
'type',
25 VarParsing.VarParsing.multiplicity.singleton,
26 VarParsing.VarParsing.varType.string,
27 "type of operations: DDD, DD4hep")
28 options.register(
'data',
30 VarParsing.VarParsing.multiplicity.singleton,
31 VarParsing.VarParsing.varType.string,
32 "data of operations: mu, tt")
33 options.register(
'tag',
35 VarParsing.VarParsing.multiplicity.singleton,
36 VarParsing.VarParsing.varType.string,
37 "tag of operations: Def, Thr, 0Noise")
39 options.parseArguments()
45 if (options.type ==
"DD4hep"):
46 from Configuration.ProcessModifiers.dd4hep_cff
import dd4hep
47 if (options.geometry ==
"V17Shift"):
48 from Configuration.Eras.Era_Phase2C17I13M9_cff
import Phase2C17I13M9
49 process = cms.Process(
'SingleMuonSim',Phase2C17I13M9,dd4hep)
50 geomFile =
"Geometry.HGCalCommonData.testHGCal" + options.type + options.geometry +
"Reco_cff" 51 elif (options.geometry ==
"D104"):
52 from Configuration.Eras.Era_Phase2C22I13M9_cff
import Phase2C22I13M9
53 process = cms.Process(
'SingleMuonSim',Phase2C22I13M9,dd4hep)
54 geomFile =
"Configuration.Geometry.Geometry" + options.type +
"ExtendedRun4" + options.geometry +
"Reco_cff" 56 from Configuration.Eras.Era_Phase2C17I13M9_cff
import Phase2C17I13M9
57 process = cms.Process(
'SingleMuonSim',Phase2C17I13M9,dd4hep)
58 geomFile =
"Configuration.Geometry.Geometry" + options.type +
"ExtendedRun4" + options.geometry +
"Reco_cff" 60 if (options.geometry ==
"V17Shift"):
61 from Configuration.Eras.Era_Phase2C17I13M9_cff
import Phase2C17I13M9
62 process = cms.Process(
'SingleMuonSim',Phase2C17I13M9)
63 geomFile =
"Geometry.HGCalCommonData.testHGCal" + options.geometry +
"Reco_cff" 64 elif (options.geometry ==
"D104"):
65 from Configuration.Eras.Era_Phase2C22I13M9_cff
import Phase2C22I13M9
66 process = cms.Process(
'SingleMuonSim',Phase2C22I13M9)
67 geomFile =
"Configuration.Geometry.GeometryExtendedRun4" + options.geometry +
"Reco_cff" 69 from Configuration.Eras.Era_Phase2C17I13M9_cff
import Phase2C17I13M9
70 process = cms.Process(
'SingleMuonSim',Phase2C17I13M9)
71 geomFile =
"Configuration.Geometry.GeometryExtendedRun4" + options.geometry +
"Reco_cff" 72 globalTag =
"auto:phase2_realistic_T33" 73 inFile =
"file:step2" + options.type + options.geometry + options.data +
".root" 74 outFile =
"file:step3" + options.type + options.geometry + options.data +
".root" 75 fileName =
"missing" + options.type + options.geometry + options.data + options.tag +
".root" 77 print(
"Geometry file: ", geomFile)
78 print(
"Global Tag: ", globalTag)
79 print(
"Input file: ", inFile)
80 print(
"Output file: ", outFile)
81 print(
"Root file: ", fileName)
84 process.load(
'Configuration.StandardSequences.Services_cff')
85 process.load(
'SimGeneral.HepPDTESSource.pythiapdt_cfi')
86 process.load(
'FWCore.MessageService.MessageLogger_cfi')
87 process.load(
'Configuration.EventContent.EventContent_cff')
88 process.load(
'SimGeneral.MixingModule.mixNoPU_cfi')
89 process.load(geomFile)
90 process.load(
'Configuration.StandardSequences.MagneticField_cff')
91 process.load(
'Configuration.StandardSequences.RawToDigi_cff')
92 process.load(
'Configuration.StandardSequences.Reconstruction_cff')
93 process.load(
'Configuration.StandardSequences.RecoSim_cff')
94 process.load(
'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
95 process.load(
'Validation.HGCalValidation.hgcMissingRecHit_cfi')
97 process.MessageLogger.cerr.FwkReport.reportEvery = 1
98 if hasattr(process,
'MessageLogger'):
99 process.MessageLogger.HGCalMiss=dict()
100 process.MessageLogger.HGCalError=dict()
102 process.maxEvents = cms.untracked.PSet(
103 input = cms.untracked.int32(-1),
104 output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
108 process.source = cms.Source(
"PoolSource",
109 fileNames = cms.untracked.vstring(inFile),
110 secondaryFileNames = cms.untracked.vstring()
113 process.options = cms.untracked.PSet(
114 IgnoreCompletely = cms.untracked.vstring(),
115 Rethrow = cms.untracked.vstring(),
116 TryToContinue = cms.untracked.vstring(),
117 accelerators = cms.untracked.vstring(
'*'),
118 allowUnscheduled = cms.obsolete.untracked.bool,
119 canDeleteEarly = cms.untracked.vstring(),
120 deleteNonConsumedUnscheduledModules = cms.untracked.bool(
True),
121 dumpOptions = cms.untracked.bool(
False),
122 emptyRunLumiMode = cms.obsolete.untracked.string,
123 eventSetup = cms.untracked.PSet(
124 forceNumberOfConcurrentIOVs = cms.untracked.PSet(
125 allowAnyLabel_=cms.required.untracked.uint32
127 numberOfConcurrentIOVs = cms.untracked.uint32(0)
129 fileMode = cms.untracked.string(
'FULLMERGE'),
130 forceEventSetupCacheClearOnNewRun = cms.untracked.bool(
False),
131 makeTriggerResults = cms.obsolete.untracked.bool,
132 numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
133 numberOfConcurrentRuns = cms.untracked.uint32(1),
134 numberOfStreams = cms.untracked.uint32(0),
135 numberOfThreads = cms.untracked.uint32(1),
136 printDependencies = cms.untracked.bool(
False),
137 sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
138 throwIfIllegalParameter = cms.untracked.bool(
True),
139 wantSummary = cms.untracked.bool(
False)
143 process.configurationMetadata = cms.untracked.PSet(
144 annotation = cms.untracked.string(
'step3 nevts:10'),
145 name = cms.untracked.string(
'Applications'),
146 version = cms.untracked.string(
'$Revision: 1.19 $')
151 process.FEVTDEBUGHLToutput = cms.OutputModule(
"PoolOutputModule",
152 dataset = cms.untracked.PSet(
153 dataTier = cms.untracked.string(
'GEN-SIM-RECO'),
154 filterName = cms.untracked.string(
'')
156 fileName = cms.untracked.string(outFile),
157 outputCommands = cms.untracked.vstring(
159 'keep *_g4SimHits_*_*',
162 splitLevel = cms.untracked.int32(0)
166 process.TFileService = cms.Service(
"TFileService",
167 fileName = cms.string(fileName),
168 closeFileFast = cms.untracked.bool(
True) )
171 process.mix.playback =
True 172 process.mix.digitizers = cms.PSet()
173 for a
in process.aliases: delattr(process, a)
174 process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string(
"randomEngineStateProducer")
175 from Configuration.AlCa.GlobalTag
import GlobalTag
176 process.GlobalTag =
GlobalTag(process.GlobalTag, globalTag,
'')
179 process.raw2digi_step = cms.Path(process.RawToDigi)
180 process.reconstruction_step = cms.Path(process.reconstruction)
181 process.recosim_step = cms.Path(process.recosim)
182 process.analysis_step = cms.Path(process.hgcMissingRecHit)
183 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
186 process.schedule = cms.Schedule(process.raw2digi_step,
187 process.reconstruction_step,
188 process.recosim_step,
189 process.analysis_step,
190 process.FEVTDEBUGHLToutput_step)
195 from SimGeneral.MixingModule.fullMixCustomize_cff
import setCrossingFrameOn
203 from Configuration.StandardSequences.earlyDeleteSettings_cff
import customiseEarlyDelete
def customiseEarlyDelete(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def setCrossingFrameOn(process)