Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-07 22:41:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # Several parameters needed for HF simulation
0004 
0005 HFLibraryFileBlock = cms.PSet(
0006         FileName        = cms.FileInPath('SimG4CMS/Calo/data/HFShowerLibrary_oldpmt_noatt_eta4_16en_v3.root'),
0007         BackProbability = cms.double(0.2),
0008         TreeEMID        = cms.string('emParticles'),
0009         TreeHadID       = cms.string('hadParticles'),
0010         ApplyFiducialCut= cms.bool(True),
0011         FileVersion     = cms.int32(0),
0012         Verbosity       = cms.untracked.bool(False),
0013         BranchPost      = cms.untracked.string(''),
0014         BranchEvt       = cms.untracked.string(''),
0015         BranchPre       = cms.untracked.string('')
0016 )
0017 
0018 HFShowerBlock = cms.PSet(
0019         ProbMax           = cms.double(1.0),
0020         CFibre            = cms.double(0.5),
0021         OnlyLong          = cms.bool(True),
0022         EqualizeTimeShift   = cms.bool(False)
0023 )
0024 
0025 ##
0026 ## Change the HFShowerLibrary file from Run 2
0027 ##
0028 from Configuration.Eras.Modifier_run2_common_cff import run2_common
0029 run2_common.toModify( HFLibraryFileBlock, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root' )
0030 run2_common.toModify( HFShowerBlock, ProbMax = 0.5 )
0031 
0032 ##
0033 ## Change for the new HFShowerLibrary file to be used for Run 3
0034 ##
0035 from Configuration.Eras.Modifier_run3_HFSL_cff import run3_HFSL
0036 run3_HFSL.toModify( HFLibraryFileBlock, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_run3_v6.root', FileVersion = 2 )
0037 run3_HFSL.toModify( HFShowerBlock, EqualizeTimeShift = True )