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

Fastsim hf sl run #11674

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions FastSimulation/Calorimetry/python/Calorimetry_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@
OnlyLong = cms.bool(True)
),
HFShowerLibrary = cms.PSet(
useShowerLibrary = cms.untracked.bool(False),
useShowerLibrary = cms.untracked.bool(True),
useCorrectionSL = cms.untracked.bool(True),
FileName = cms.FileInPath('SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root'),
FileName = cms.FileInPath('SimG4CMS/Calo/data/HFShowerLibrary_oldpmt_noatt_eta4_16en_v3.root'),
BackProbability = cms.double(0.2),
TreeEMID = cms.string('emParticles'),
TreeHadID = cms.string('hadParticles'),
Expand Down Expand Up @@ -299,7 +299,4 @@
FamosCalorimetryBlock.Calorimetry.ECAL.Digitizer = True
FamosCalorimetryBlock.Calorimetry.HCAL.Digitizer = True

#
# Modify for running in Run 2
#
eras.run2_common.toModify( FamosCalorimetryBlock.Calorimetry.HFShowerLibrary, useShowerLibrary=True )
eras.run2_common.toModify(FamosCalorimetryBlock.Calorimetry.HFShowerLibrary, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root' )
10 changes: 2 additions & 8 deletions FastSimulation/Event/python/ParticleFilter_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@
EProton = cms.double(5000.0),
# Particles with |eta| > etaMax (momentum direction at primary vertex)
# are not simulated
etaMax = cms.double(5.1),
etaMax = cms.double(5.3),
# Charged particles with pT < pTMin (GeV/c) are not simulated
pTMin = cms.double(0.2),
pTMin = cms.double(0.1),
# Particles with energy smaller than EMin (GeV) are not simulated
EMin = cms.double(0.1)
)
)

#
# Modify for running in Run 2
#
from Configuration.StandardSequences.Eras import eras
eras.run2_common.toModify( ParticleFilterBlock.ParticleFilter, pTMin = 0.1 )
eras.run2_common.toModify( ParticleFilterBlock.ParticleFilter, etaMax = 5.300 )
9 changes: 2 additions & 7 deletions SLHCUpgradeSimulations/Configuration/python/fastSimCustoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ def customise_fastSimPostLS1(process):
def customise_fastSimProducer(process):

# enable 2015 HF shower library
process.famosSimHits.Calorimetry.HFShowerLibrary.useShowerLibrary = True

# change default parameters
process.famosSimHits.ParticleFilter.pTMin = 0.1
process.famosSimHits.TrackerSimHits.pTmin = 0.1
process.famosSimHits.ParticleFilter.etaMax = 5.300

process.famosSimHits.Calorimetry.HFShowerLibrary.FileName = cms.FileInPath('SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root')

return process