Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update on configure fragment of castor simulation #3645

Merged
merged 1 commit into from May 6, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions Configuration/StandardSequences/python/SimWithCastor_cff.py
@@ -1,7 +1,18 @@
import FWCore.ParameterSet.Config as cms

def customise(process):
process.g4SimHits.Generator.MinEtaCut =-7.0
process.g4SimHits.Generator.MaxEtaCut = 5.5

if hasattr(process,'g4SimHits'):
# time window 10 millisecond
process.common_maximum_time.DeadRegions = cms.vstring('InterimRegion')
# Eta cut
process.g4SimHits.Generator.MinEtaCut = cms.double(-7.0)
process.g4SimHits.Generator.MaxEtaCut = cms.double(5.5)
# stacking action
process.g4SimHits.StackingAction.DeadRegions = cms.vstring('InterimRegion')
# stepping action
process.g4SimHits.SteppingAction.DeadRegions = cms.vstring('InterimRegion')
# castor shower library
process.g4SimHits.CastorSD.useShowerLibrary = cms.bool(True)

return(process)