Skip to content

Commit

Permalink
Update Exotica_HSCP_SIM_cfi.py
Browse files Browse the repository at this point in the history
needed for central production requests EXO-Fall13-00199 ---> EXO-Fall13-00236
  • Loading branch information
davidsheffield committed Aug 6, 2014
1 parent 1d56e55 commit 88e9544
Showing 1 changed file with 57 additions and 6 deletions.
63 changes: 57 additions & 6 deletions SimG4Core/CustomPhysics/python/Exotica_HSCP_SIM_cfi.py
Expand Up @@ -7,6 +7,7 @@ def customise(process):
SLHA_FILE = process.generator.slhaFile.value()
PROCESS_FILE = process.generator.processFile.value()
PARTICLE_FILE = process.generator.particleFile.value()
PDT_FILE = process.generator.pdtFile.value()
USE_REGGE = process.generator.useregge.value()

process.load("SimG4Core.CustomPhysics.CustomPhysics_cfi")
Expand All @@ -22,7 +23,7 @@ def customise(process):
)
)
)

process.HepPDTESSource.pdtFileName= PDT_FILE

if FLAVOR=="gluino" or FLAVOR=="stop":
process.customPhysicsSetup.processesDef = PROCESS_FILE
Expand All @@ -41,14 +42,39 @@ def customise(process):
FlagFTF = cms.untracked.bool(False),
FlagGlauber = cms.untracked.bool(False),
FlagHP = cms.untracked.bool(False),
GFlash = cms.PSet(
GflashHistogram = cms.bool(False),

GflashEcal = cms.bool(False),
bField = cms.double(3.8),
energyScaleEB = cms.double(1.032),
energyScaleEE = cms.double(1.024),
GflashHcal = cms.bool(False),
RusRoGammaEnergyLimit = cms.double(0.0),
RusRoEcalGamma = cms.double(1.0),
RusRoHcalGamma = cms.double(1.0),
RusRoQuadGamma = cms.double(1.0),
RusRoMuonIronGamma = cms.double(1.0),
RusRoPreShowerGamma = cms.double(1.0),
RusRoCastorGamma = cms.double(1.0),
RusRoBeamPipeOutGamma = cms.double(1.0),
RusRoWorldGamma = cms.double(1.0),
RusRoElectronEnergyLimit = cms.double(0.0),
RusRoEcalElectron = cms.double(1.0),
RusRoHcalElectron = cms.double(1.0),
RusRoQuadElectron = cms.double(1.0),
RusRoMuonIronElectron = cms.double(1.0),
RusRoPreShowerElectron = cms.double(1.0),
RusRoCastorElectron = cms.double(1.0),
RusRoBeamPipeOutElectron = cms.double(1.0),
RusRoWorldElectron = cms.double(1.0),

GFlash = cms.PSet(
GflashHistogram = cms.bool(False),
GflashEMShowerModel = cms.bool(False),
GflashHadronPhysics = cms.string('QGSP_BERT_EMV'),
GflashHadronShowerModel = cms.bool(False)
)
)
process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')
# process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')

elif FLAVOR =="stau":
process.g4SimHits.Physics = cms.PSet(
Expand All @@ -58,9 +84,34 @@ def customise(process):
DefaultCutValue = cms.double(1.), ## cuts in cm,default 1cm
CutsPerRegion = cms.bool(True),
Verbosity = cms.untracked.int32(0),
type = cms.string('SimG4Core/Physics/CustomPhysics'),

GflashEcal = cms.bool(False),
bField = cms.double(3.8),
energyScaleEB = cms.double(1.032),
energyScaleEE = cms.double(1.024),
GflashHcal = cms.bool(False),
RusRoGammaEnergyLimit = cms.double(0.0),
RusRoEcalGamma = cms.double(1.0),
RusRoHcalGamma = cms.double(1.0),
RusRoQuadGamma = cms.double(1.0),
RusRoMuonIronGamma = cms.double(1.0),
RusRoPreShowerGamma = cms.double(1.0),
RusRoCastorGamma = cms.double(1.0),
RusRoBeamPipeOutGamma = cms.double(1.0),
RusRoWorldGamma = cms.double(1.0),
RusRoElectronEnergyLimit = cms.double(0.0),
RusRoEcalElectron = cms.double(1.0),
RusRoHcalElectron = cms.double(1.0),
RusRoQuadElectron = cms.double(1.0),
RusRoMuonIronElectron = cms.double(1.0),
RusRoPreShowerElectron = cms.double(1.0),
RusRoCastorElectron = cms.double(1.0),
RusRoBeamPipeOutElectron = cms.double(1.0),
RusRoWorldElectron = cms.double(1.0),

type = cms.string('SimG4Core/Physics/CustomPhysics'),
)
process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')
# process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')

else:
print "Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR
Expand Down

0 comments on commit 88e9544

Please sign in to comment.