10 import FWCore.ParameterSet.Config
as cms
11 import os, sys, imp, re, random
12 import FWCore.ParameterSet.VarParsing
as VarParsing
17 options.register(
'geometry',
19 VarParsing.VarParsing.multiplicity.singleton,
20 VarParsing.VarParsing.varType.string,
21 "geometry of operations: D88, D92, D93")
22 options.register(
'type',
24 VarParsing.VarParsing.multiplicity.singleton,
25 VarParsing.VarParsing.varType.string,
26 "type of operations: mu, tt")
27 options.register(
'tag',
29 VarParsing.VarParsing.multiplicity.singleton,
30 VarParsing.VarParsing.varType.string,
31 "tag of operations: Def, Thr, 0Noise")
33 options.parseArguments()
39 from Configuration.Eras.Era_Phase2C17I13M9_cff
import Phase2C17I13M9
40 process = cms.Process(
'TestReco',Phase2C17I13M9)
42 geomFile =
"Configuration.Geometry.GeometryExtended2026" + options.geometry +
"Reco_cff" 43 globalTag =
"auto:phase2_realistic_T21" 44 inFile =
"file:step2" + options.geometry + options.type +
".root" 45 outFile =
"file:step3" + options.geometry + options.type +
".root" 46 fileName =
"missing" + options.geometry + options.type + options.tag +
".root" 48 print(
"Geometry file: ", geomFile)
49 print(
"Global Tag: ", globalTag)
50 print(
"Input file: ", inFile)
51 print(
"Output file: ", outFile)
52 print(
"Root file: ", fileName)
55 process.load(
'Configuration.StandardSequences.Services_cff')
56 process.load(
'SimGeneral.HepPDTESSource.pythiapdt_cfi')
57 process.load(
'FWCore.MessageService.MessageLogger_cfi')
58 process.load(
'Configuration.EventContent.EventContent_cff')
59 process.load(
'SimGeneral.MixingModule.mixNoPU_cfi')
60 process.load(geomFile)
61 process.load(
'Configuration.StandardSequences.MagneticField_cff')
62 process.load(
'Configuration.StandardSequences.RawToDigi_cff')
63 process.load(
'Configuration.StandardSequences.Reconstruction_cff')
64 process.load(
'Configuration.StandardSequences.RecoSim_cff')
65 process.load(
'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
66 process.load(
'Validation.HGCalValidation.hgcMissingRecHit_cfi')
68 process.MessageLogger.cerr.FwkReport.reportEvery = 1
73 process.maxEvents = cms.untracked.PSet(
74 input = cms.untracked.int32(-1),
75 output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
79 process.source = cms.Source(
"PoolSource",
80 fileNames = cms.untracked.vstring(inFile),
81 secondaryFileNames = cms.untracked.vstring()
84 process.options = cms.untracked.PSet(
85 FailPath = cms.untracked.vstring(),
86 IgnoreCompletely = cms.untracked.vstring(),
87 Rethrow = cms.untracked.vstring(),
88 SkipEvent = cms.untracked.vstring(),
89 accelerators = cms.untracked.vstring(
'*'),
90 allowUnscheduled = cms.obsolete.untracked.bool,
91 canDeleteEarly = cms.untracked.vstring(),
92 deleteNonConsumedUnscheduledModules = cms.untracked.bool(
True),
93 dumpOptions = cms.untracked.bool(
False),
94 emptyRunLumiMode = cms.obsolete.untracked.string,
95 eventSetup = cms.untracked.PSet(
96 forceNumberOfConcurrentIOVs = cms.untracked.PSet(
97 allowAnyLabel_=cms.required.untracked.uint32
99 numberOfConcurrentIOVs = cms.untracked.uint32(0)
101 fileMode = cms.untracked.string(
'FULLMERGE'),
102 forceEventSetupCacheClearOnNewRun = cms.untracked.bool(
False),
103 makeTriggerResults = cms.obsolete.untracked.bool,
104 numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
105 numberOfConcurrentRuns = cms.untracked.uint32(1),
106 numberOfStreams = cms.untracked.uint32(0),
107 numberOfThreads = cms.untracked.uint32(1),
108 printDependencies = cms.untracked.bool(
False),
109 sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
110 throwIfIllegalParameter = cms.untracked.bool(
True),
111 wantSummary = cms.untracked.bool(
False)
115 process.configurationMetadata = cms.untracked.PSet(
116 annotation = cms.untracked.string(
'step3 nevts:10'),
117 name = cms.untracked.string(
'Applications'),
118 version = cms.untracked.string(
'$Revision: 1.19 $')
123 process.FEVTDEBUGHLToutput = cms.OutputModule(
"PoolOutputModule",
124 dataset = cms.untracked.PSet(
125 dataTier = cms.untracked.string(
'GEN-SIM-RECO'),
126 filterName = cms.untracked.string(
'')
128 fileName = cms.untracked.string(outFile),
129 outputCommands = cms.untracked.vstring(
131 'keep *_g4SimHits_*_*',
134 splitLevel = cms.untracked.int32(0)
138 process.TFileService = cms.Service(
"TFileService",
139 fileName = cms.string(fileName),
140 closeFileFast = cms.untracked.bool(
True) )
143 process.mix.playback =
True 144 process.mix.digitizers = cms.PSet()
145 for a
in process.aliases: delattr(process, a)
146 process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string(
"randomEngineStateProducer")
147 from Configuration.AlCa.GlobalTag
import GlobalTag
148 process.GlobalTag =
GlobalTag(process.GlobalTag, globalTag,
'')
151 process.raw2digi_step = cms.Path(process.RawToDigi)
152 process.reconstruction_step = cms.Path(process.reconstruction)
153 process.recosim_step = cms.Path(process.recosim)
154 process.analysis_step = cms.Path(process.hgcMissingRecHit)
155 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
158 process.schedule = cms.Schedule(process.raw2digi_step,
159 process.reconstruction_step,
160 process.recosim_step,
161 process.analysis_step,
162 process.FEVTDEBUGHLToutput_step)
167 from SimGeneral.MixingModule.fullMixCustomize_cff
import setCrossingFrameOn
175 from Configuration.StandardSequences.earlyDeleteSettings_cff
import customiseEarlyDelete
def customiseEarlyDelete(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def setCrossingFrameOn(process)