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 #3645 from civanch/conf_castor
update on configure fragment of castor simulation
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
Configuration/StandardSequences/python/SimWithCastor_cff.py
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 |
---|---|---|
@@ -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) |