-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40704 from bsunanda/Phase2-sim139
Phase2-sim139 Change scripts to study new Phase2 scenarios in the context of usage and overlaps
- Loading branch information
Showing
5 changed files
with
171 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
############################################################################### | ||
# Way to use this: | ||
# cmsRun runSens2026_cfg.py geometry=D92 | ||
# | ||
# Options for geometry D88, D92, D93, D94, D95, D96, D98, D99 | ||
# | ||
############################################################################### | ||
import FWCore.ParameterSet.Config as cms | ||
import os, sys, imp, re | ||
import FWCore.ParameterSet.VarParsing as VarParsing | ||
|
||
#################################################################### | ||
### SETUP OPTIONS | ||
options = VarParsing.VarParsing('standard') | ||
options.register('geometry', | ||
"D92", | ||
VarParsing.VarParsing.multiplicity.singleton, | ||
VarParsing.VarParsing.varType.string, | ||
"geometry of operations: D88, D92, D93, D94, D95, D96, D98, D99") | ||
|
||
### get and parse the command line arguments | ||
options.parseArguments() | ||
|
||
print(options) | ||
|
||
#####p############################################################### | ||
# Use the options | ||
|
||
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 | ||
process = cms.Process('PrintSensitive',Phase2C17I13M9) | ||
|
||
geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" | ||
|
||
print("Geometry file Name: ", geomFile) | ||
|
||
process.load(geomFile) | ||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
|
||
process.MessageLogger.cerr.enable = False | ||
process.MessageLogger.files.SensDet = dict(extension="txt") | ||
process.MessageLogger.G4cout=dict() | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(1) | ||
) | ||
|
||
process.load('SimGeneral.HepPDTESSource.pdt_cfi') | ||
process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi') | ||
process.load('GeneratorInterface.Core.generatorSmeared_cfi') | ||
|
||
process.source = cms.Source("EmptySource") | ||
|
||
process.generator = cms.EDProducer("FlatRandomPtGunProducer", | ||
PGunParameters = cms.PSet( | ||
PartID = cms.vint32(13), | ||
MinEta = cms.double(-2.5), | ||
MaxEta = cms.double(2.5), | ||
MinPhi = cms.double(-3.14159265359), | ||
MaxPhi = cms.double(3.14159265359), | ||
MinPt = cms.double(9.99), | ||
MaxPt = cms.double(10.01) | ||
), | ||
AddAntiParticle = cms.bool(False), | ||
Verbosity = cms.untracked.int32(0), | ||
firstRun = cms.untracked.uint32(1) | ||
) | ||
|
||
process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService", | ||
generator = cms.PSet( | ||
initialSeed = cms.untracked.uint32(123456789), | ||
engineName = cms.untracked.string('HepJamesRandom') | ||
), | ||
VtxSmeared = cms.PSet( | ||
engineName = cms.untracked.string('HepJamesRandom'), | ||
initialSeed = cms.untracked.uint32(98765432) | ||
), | ||
g4SimHits = cms.PSet( | ||
initialSeed = cms.untracked.uint32(11), | ||
engineName = cms.untracked.string('HepJamesRandom') | ||
) | ||
) | ||
|
||
process.load('SimG4Core.Application.g4SimHits_cfi') | ||
|
||
process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits) | ||
|
||
process.g4SimHits.UseMagneticField = False | ||
process.g4SimHits.Physics.DefaultCutValue = 10. | ||
process.g4SimHits.Watchers = cms.VPSet(cms.PSet( | ||
Name = cms.untracked.string('*'), | ||
type = cms.string('PrintSensitive') | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
############################################################################### | ||
# Way to use this: | ||
# cmsRun runSummary2026_cfg.py geometry=D92 | ||
# | ||
# Options for geometry D88, D92, D93, D94, D95, D96, D98, D99 | ||
# | ||
############################################################################### | ||
import FWCore.ParameterSet.Config as cms | ||
import os, sys, imp, re | ||
import FWCore.ParameterSet.VarParsing as VarParsing | ||
|
||
#################################################################### | ||
### SETUP OPTIONS | ||
options = VarParsing.VarParsing('standard') | ||
options.register('geometry', | ||
"Run3", | ||
VarParsing.VarParsing.multiplicity.singleton, | ||
VarParsing.VarParsing.varType.string, | ||
"geometry of operations: D88, D92, D93, D94, D95, D96, D98, D99") | ||
|
||
### get and parse the command line arguments | ||
options.parseArguments() | ||
|
||
print(options) | ||
|
||
#####p############################################################### | ||
# Use the options | ||
|
||
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 | ||
process = cms.Process('PrintGeometry',Phase2C17I13M9) | ||
|
||
geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff" | ||
|
||
print("Geometry file Name: ", geomFile) | ||
|
||
process.load(geomFile) | ||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
|
||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.G4cout=dict() | ||
process.MessageLogger.G4cerr=dict() | ||
|
||
from SimG4Core.PrintGeomInfo.g4PrintGeomSummary_cfi import * | ||
|
||
process = printGeomSummary(process) |