hcalSimParameters.hoHamamatsu = hcalSimParameters.ho.clone()

# Customises the HCal digitiser for post LS1 running
from Configuration.Eras.Modifier_run2_common_cff import run2_common
run2_common.toModify( hcalSimParameters, 
    ho = dict(
        siPMCode = cms.int32(1)
    ),
    hf1 = dict( samplingFactor = cms.double(0.67) ),
    hf2 = dict( samplingFactor = cms.double(0.67) )
)

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify( hcalSimParameters,
    he = dict(
        doSiPMSmearing = cms.bool(True),
        sipmTau = cms.double(10.),
    )
)

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)
              )
)
예제 #2
0
    # Reconstruction algorithm configuration data to fetch from DB, if any
    algoConfigClass = cms.string(""),

    # Turn rechit status bit setters on/off
    setNegativeFlagsQIE8 = cms.bool(True),
    setNegativeFlagsQIE11 = cms.bool(False),
    setNoiseFlagsQIE8 = cms.bool(True),
    setNoiseFlagsQIE11 = cms.bool(False),
    setPulseShapeFlagsQIE8 = cms.bool(True),
    setPulseShapeFlagsQIE11 = cms.bool(False),
    setLegacyFlagsQIE8 = cms.bool(True),
    setLegacyFlagsQIE11 = cms.bool(False),

    # Parameter sets configuring rechit status bit setters
    flagParametersQIE8 = cms.PSet(
        hbheStatusFlag.qie8Config
    ),
    flagParametersQIE11 = cms.PSet(),

    pulseShapeParametersQIE8 = cms.PSet(
        pulseShapeFlag.qie8Parameters
    ),
    pulseShapeParametersQIE11 = cms.PSet()
)

# Disable the "triangle peak fit" and the corresponding HBHETriangleNoise flag
hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = cms.bool(True))
        'GainWidths', 'MCParams', 'RecoParams', 'RespCorrs', 'QIEData',
        'QIETypes', 'Gains', 'Pedestals', 'PedestalWidths', 'ChannelQuality',
        'ZSThresholds', 'TimeCorrs', 'LUTCorrs', 'LutMetadata',
        'L1TriggerObjects', 'PFCorrs', 'ElectronicsMap', 'FrontEndMap',
        'CovarianceMatrices', 'SiPMParameters', 'SiPMCharacteristics',
        'TPChannelParameters', 'TPParameters', 'FlagHFDigiTimeParams'),
    GainWidthsForTrigPrims=cms.bool(True))

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB

run2_HCAL_2017.toModify(es_hardcode, useLayer0Weight=cms.bool(True))
run2_HF_2017.toModify(es_hardcode, useHFUpgrade=cms.bool(True))
run2_HE_2017.toModify(es_hardcode,
                      useHEUpgrade=cms.bool(True),
                      HEreCalibCutoff=cms.double(100.0))
run2_HEPlan1_2017.toModify(es_hardcode,
                           testHEPlan1=cms.bool(True),
                           useHEUpgrade=cms.bool(False),
                           HEreCalibCutoff=cms.double(20.0))
run3_HB.toModify(es_hardcode,
                 useHBUpgrade=cms.bool(True),
                 HBreCalibCutoff=cms.double(100.0))

from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal

phase2_hgcal.toModify(es_hardcode, killHE=cms.bool(True))
_toGet_noEmap = _toGet[:]
_toGet_noEmap.remove('ElectronicsMap')


from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions
hcalHardcodeConditions.toModify( es_hardcode,
    toGet = cms.untracked.vstring(_toGet),
    GainWidthsForTrigPrims = cms.bool(True) 
)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal

run2_HCAL_2017.toModify( es_hardcode, useLayer0Weight = cms.bool(True) )
run2_HF_2017.toModify( es_hardcode, useHFUpgrade = cms.bool(True) )
run2_HE_2017.toModify( es_hardcode, useHEUpgrade = cms.bool(True), HEreCalibCutoff = cms.double(100.0) )
run2_HEPlan1_2017.toModify( es_hardcode, testHEPlan1 = cms.bool(True), useHEUpgrade = cms.bool(False), HEreCalibCutoff = cms.double(20.0) )
run3_HB.toModify( es_hardcode, useHBUpgrade = cms.bool(True), HBreCalibCutoff = cms.double(100.0) )

# now that we have an emap
phase2_hcal.toModify( es_hardcode, toGet = cms.untracked.vstring(_toGet_noEmap) )

from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
phase2_hgcal.toModify( es_hardcode, killHE = cms.bool(True) )
                            
예제 #5
0
        # Apply legacy HB- energy correction?
        applyLegacyHBMCorrection=cms.bool(True)),

    # Reconstruction algorithm configuration data to fetch from DB, if any
    algoConfigClass=cms.string(""),

    # Turn rechit status bit setters on/off
    setNegativeFlagsQIE8=cms.bool(True),
    setNegativeFlagsQIE11=cms.bool(False),
    setNoiseFlagsQIE8=cms.bool(True),
    setNoiseFlagsQIE11=cms.bool(False),
    setPulseShapeFlagsQIE8=cms.bool(True),
    setPulseShapeFlagsQIE11=cms.bool(False),
    setLegacyFlagsQIE8=cms.bool(True),
    setLegacyFlagsQIE11=cms.bool(False),

    # Parameter sets configuring rechit status bit setters
    flagParametersQIE8=cms.PSet(hbheStatusFlag.qie8Config),
    flagParametersQIE11=cms.PSet(),
    pulseShapeParametersQIE8=cms.PSet(pulseShapeFlag.qie8Parameters),
    pulseShapeParametersQIE11=cms.PSet())

# Disable the "triangle peak fit" and the corresponding HBHETriangleNoise flag
hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal=True)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(hbheprereco, algorithm=dict(applyLegacyHBMCorrection=False))
예제 #6
0
    #     FGVersionHBHE=cms.uint32(0),
    #     TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
    #     ADCThreshold=cms.uint32(0),
    #     FGThreshold=cms.uint32(12)
    # ),

    #vdouble weights = { -1, -1, 1, 1} //low lumi algo
    # Input digi label (_must_ be without zero-suppression!)
    inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
                               cms.InputTag('simHcalUnsuppressedDigis')),
    inputUpgradeLabel = cms.VInputTag(
        cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
        cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
    InputTagFEDRaw = cms.InputTag("rawDataCollector"),
    RunZS = cms.bool(False),
    FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
    PeakFinderAlgorithm = cms.int32(2),

    tpScales = tpScales,
)

run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis, 
                      upgradeHF=cms.bool(True),
                      numberOfSamplesHF = cms.int32(2),
                      numberOfPresamplesHF = cms.int32(1)
)
run2_HF_2017.toModify(tpScales.HF, NCTShift=cms.int32(2))
run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
run3_HB.toModify(tpScales.HBHE, LSBQIE11Overlap=cms.double(1/16.))
예제 #7
0
    # Reconstruction algorithm configuration data to fetch from DB, if any
    algoConfigClass = cms.string(""),

    # Turn rechit status bit setters on/off
    setNegativeFlagsQIE8 = cms.bool(True),
    setNegativeFlagsQIE11 = cms.bool(False),
    setNoiseFlagsQIE8 = cms.bool(True),
    setNoiseFlagsQIE11 = cms.bool(False),
    setPulseShapeFlagsQIE8 = cms.bool(True),
    setPulseShapeFlagsQIE11 = cms.bool(False),
    setLegacyFlagsQIE8 = cms.bool(True),
    setLegacyFlagsQIE11 = cms.bool(False),

    # Parameter sets configuring rechit status bit setters
    flagParametersQIE8 = cms.PSet(
        hbheStatusFlag.qie8Config
    ),
    flagParametersQIE11 = cms.PSet(),

    pulseShapeParametersQIE8 = cms.PSet(
        pulseShapeFlag.qie8Parameters
    ),
    pulseShapeParametersQIE11 = cms.PSet()
)

# Disable the "triangle peak fit" and the corresponding HBHETriangleNoise flag
hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = cms.bool(True))
예제 #8
0
# Customises the HCal digitiser for post LS1 running
from Configuration.Eras.Modifier_run2_common_cff import run2_common
run2_common.toModify(hcalSimParameters,
                     ho=dict(photoelectronsToAnalog=cms.vdouble([4.0] * 16),
                             siPMCode=cms.int32(1),
                             pixels=cms.int32(2500),
                             doSiPMSmearing=cms.bool(False)),
                     hf1=dict(samplingFactor=cms.double(0.67)),
                     hf2=dict(samplingFactor=cms.double(0.67)))

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hcalSimParameters,
                      he=dict(
                          photoelectronsToAnalog=cms.vdouble([57.5] * 14),
                          pixels=cms.int32(27370),
                          sipmDarkCurrentuA=cms.double(0.055),
                          sipmCrossTalk=cms.double(0.32),
                          doSiPMSmearing=cms.bool(True),
                      ))

_newFactors = cms.vdouble(
    210.55, 197.93, 186.12, 189.64, 189.63, 189.96, 190.03, 190.11, 190.18,
    190.25, 190.32, 190.40, 190.47, 190.54, 190.61, 190.69, 190.83, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94)
예제 #9
0
hcalSimParameters.hoHamamatsu = hcalSimParameters.ho.clone()
hcalSimParameters.hoHamamatsu.photoelectronsToAnalog = [3.0] * 16

# Customises the HCal digitiser for post LS1 running
from Configuration.Eras.Modifier_run2_common_cff import run2_common
run2_common.toModify(hcalSimParameters,
                     ho=dict(photoelectronsToAnalog=cms.vdouble([4.0] * 16),
                             siPMCode=cms.int32(1)),
                     hf1=dict(samplingFactor=cms.double(0.67)),
                     hf2=dict(samplingFactor=cms.double(0.67)))

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hcalSimParameters,
                      he=dict(
                          photoelectronsToAnalog=cms.vdouble([57.5] * 14),
                          doSiPMSmearing=cms.bool(True),
                          sipmTau=cms.double(10.),
                      ))

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(hcalSimParameters,
                 hb=dict(
                     photoelectronsToAnalog=cms.vdouble([57.5] * 16),
                     doSiPMSmearing=cms.bool(True),
                     sipmTau=cms.double(10.),
                 ))

_newFactors = cms.vdouble(
    210.55, 197.93, 186.12, 189.64, 189.63, 189.96, 190.03, 190.11, 190.18,
    190.25, 190.32, 190.40, 190.47, 190.54, 190.61, 190.69, 190.83, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,