CMS 3D CMS Logo

HFParameters_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Several parameters needed for HF simulation
4 
5 HFLibraryFileBlock = cms.PSet(
6  FileName = cms.FileInPath('SimG4CMS/Calo/data/HFShowerLibrary_oldpmt_noatt_eta4_16en_v3.root'),
7  BackProbability = cms.double(0.2),
8  TreeEMID = cms.string('emParticles'),
9  TreeHadID = cms.string('hadParticles'),
10  ApplyFiducialCut= cms.bool(True),
11  FileVersion = cms.int32(0),
12  Verbosity = cms.untracked.bool(False),
13  BranchPost = cms.untracked.string(''),
14  BranchEvt = cms.untracked.string(''),
15  BranchPre = cms.untracked.string('')
16 )
17 
18 HFShowerBlock = cms.PSet(
19  ProbMax = cms.double(1.0),
20  CFibre = cms.double(0.5),
21  OnlyLong = cms.bool(True),
22  EqualizeTimeShift = cms.bool(False)
23 )
24 
25 
28 from Configuration.Eras.Modifier_run2_common_cff import run2_common
29 run2_common.toModify( HFLibraryFileBlock, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root' )
30 run2_common.toModify( HFShowerBlock, ProbMax = 0.5 )
31 
32 
35 from Configuration.Eras.Modifier_run3_HFSL_cff import run3_HFSL
36 run3_HFSL.toModify( HFLibraryFileBlock, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_run3_v6.root', FileVersion = 2 )
37 run3_HFSL.toModify( HFShowerBlock, EqualizeTimeShift = True )