Example #1
0
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify( hcalSimParameters,
    hf1 = dict(
               readoutFrameSize = cms.int32(3), 
               binOfMaximum     = cms.int32(2)
              ),
    hf2 = dict(
               readoutFrameSize = cms.int32(3), 
               binOfMaximum     = cms.int32(2)
              )
)

from Configuration.Eras.Modifier_run2_HB_2018_cff import run2_HB_2018
run2_HB_2018.toModify( hcalSimParameters,
    hb = dict(
               readoutFrameSize = cms.int32(8), 
               binOfMaximum     = cms.int32(4)
              )
)
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify( hcalSimParameters,
    he = dict(
               readoutFrameSize = cms.int32(8), 
               binOfMaximum     = cms.int32(4),
               threshold_currentTDC = cms.double(18.7)
              )
)


from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify( hcalSimParameters,
    hb = dict(
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify( hcalSimParameters,
    hf1 = dict(
               readoutFrameSize = cms.int32(3), 
               binOfMaximum     = cms.int32(2)
              ),
    hf2 = dict(
               readoutFrameSize = cms.int32(3), 
               binOfMaximum     = cms.int32(2)
              )
)

from Configuration.Eras.Modifier_run2_HB_2018_cff import run2_HB_2018
run2_HB_2018.toModify( hcalSimParameters,
    hb = dict(
               readoutFrameSize = cms.int32(8), 
               binOfMaximum     = cms.int32(4)
              )
)
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify( hcalSimParameters,
    he = dict(
               readoutFrameSize = cms.int32(8), 
               binOfMaximum     = cms.int32(4)
              )
)


from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify( hcalSimParameters,
    hb = dict(
        doSiPMSmearing = cms.bool(True),
Example #3
0
# set useConfigZSvalues = cms.int32(0) - default

import FWCore.ParameterSet.Config as cms

simHcalDigis = cms.EDProducer("HcalRealisticZS",
                              digiLabel=cms.string("simHcalUnsuppressedDigis"),
                              markAndPass=cms.bool(False),
                              HBlevel=cms.int32(8),
                              HElevel=cms.int32(9),
                              HOlevel=cms.int32(24),
                              HFlevel=cms.int32(-9999),
                              HBregion=cms.vint32(3, 6),
                              HEregion=cms.vint32(3, 6),
                              HOregion=cms.vint32(1, 8),
                              HFregion=cms.vint32(2, 3),
                              useConfigZSvalues=cms.int32(0))

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(simHcalDigis,
                     useConfigZSvalues=cms.int32(1),
                     HElevel=cms.int32(3))

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify(simHcalDigis, HFregion=cms.vint32(1, 2))

from Configuration.Eras.Modifier_run2_HB_2018_cff import run2_HB_2018
run2_HB_2018.toModify(simHcalDigis, HBregion=cms.vint32(2, 5))

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(simHcalDigis, HEregion=cms.vint32(2, 5))
    HFlevel = cms.int32(-9999),
    HBregion = cms.vint32(3,6),      
    HEregion = cms.vint32(3,6),
    HOregion = cms.vint32(1,8),
    HFregion = cms.vint32(2,3),      
    useConfigZSvalues = cms.int32(0)
)

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify( simHcalDigis,
                             HFregion = cms.vint32(1,2)
)

from Configuration.Eras.Modifier_run2_HB_2018_cff import run2_HB_2018
run2_HB_2018.toModify( simHcalDigis,
                             HBregion = cms.vint32(2,5)
)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify( simHcalDigis,
                             HEregion = cms.vint32(2,5)
)

# Switch off HCAL ZS in digi for premixing stage1
from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
premix_stage1.toModify(simHcalDigis,
    markAndPass = True,
    HBlevel = -999,
    HElevel = -999,
    HOlevel = -999,
    HFlevel = -999,