コード例 #1
0
                                         rawTask)

hcalOnlyOfflineSourceSequence = cms.Sequence(digiTask + recHitPreRecoTask +
                                             rawTask)

hcalOnlyOfflineSourceSequenceGPU = cms.Sequence(digiTask + recHitTask +
                                                rawTask +
                                                hcalGPUComparisonTask)

from Configuration.ProcessModifiers.gpuValidationHcal_cff import gpuValidationHcal
gpuValidationHcal.toReplaceWith(hcalOnlyOfflineSourceSequence,
                                hcalOnlyOfflineSourceSequenceGPU)

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(hcalGPUComparisonTask,
                        tagHBHE_ref="hbheprereco@cpu",
                        tagHBHE_target="hbheprereco@cuda")
run2_HCAL_2018.toModify(recHitTask, tagHBHE="hbheprereco")

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
### reverting the reco tag setting that inherited from run2
run3_HB.toModify(hcalGPUComparisonTask,
                 tagHBHE_ref="hbhereco@cpu",
                 tagHBHE_target="hbhereco@cuda")
run3_HB.toModify(recHitTask, tagHBHE="hbhereco")
_phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
_phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence,
                      _phase1_hcalOnlyOfflineSourceSequence)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
コード例 #2
0
    covarianceVersion = cms.int32(0), #so far: 0 is Phase0, 1 is Phase1   
#    covariancePackingSchemas = cms.vint32(1,257,513,769,0),  # a cheaper schema in kb/ev 
    covariancePackingSchemas = cms.vint32(8,264,520,776,0),   # more accurate schema +0.6kb/ev
    pfCandidateTypesForHcalDepth = cms.vint32(),
    storeHcalDepthEndcapOnly = cms.bool(False), # switch to store info only for endcap 
    storeTiming = cms.bool(False)
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(packedPFCandidates, covarianceVersion =1 )

from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
run2_miniAOD_80XLegacy.toModify(packedPFCandidates, chargedHadronIsolation = "" )

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(packedPFCandidates,
    pfCandidateTypesForHcalDepth = [130,11,22,211,13],  # PF cand types for adding Hcal depth energy frac information
                        # (130: neutral h, 11: ele, 22: photon, 211: charged h, 13: mu) # excluding e.g. 1:h_HF, 2:egamma_HF
    storeHcalDepthEndcapOnly = True
)

from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify(packedPFCandidates,
    pfCandidateTypesForHcalDepth = [], # For now, no PF cand type is considered for addition of Hcal depth energy frac 
    storeHcalDepthEndcapOnly = False
)

from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
phase2_timing.toModify(packedPFCandidates, storeTiming = cms.bool(True))

コード例 #3
0
	ptype = cms.untracked.int32(0),
	mtype = cms.untracked.bool(True),
	subsystem = cms.untracked.string("Hcal"),

	#	tags
	tagHBHE = cms.untracked.InputTag("hcalDigis"),
	tagHO = cms.untracked.InputTag("hcalDigis"),
	tagHF = cms.untracked.InputTag("hcalDigis"),

	#	Cuts
	cutSumQ_HBHE = cms.untracked.double(20),
	cutSumQ_HO = cms.untracked.double(20),
	cutSumQ_HF = cms.untracked.double(20),

	#	ratio thresholds
	thresh_unifh = cms.untracked.double(0.2),

	qie10InConditions = cms.untracked.bool(False),

	# Reference digi sizes
	refDigiSize = cms.untracked.vuint32(10, 10, 10, 4), # HB, HE, HO, HF
)

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify(digiTask, qie10InConditions=cms.untracked.bool(True))
run2_HF_2017.toModify(digiTask, refDigiSize=cms.untracked.vuint32(10, 10, 10, 3))

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(digiTask, qie10InConditions=cms.untracked.bool(True))
run2_HCAL_2018.toModify(digiTask, refDigiSize=cms.untracked.vuint32(8, 8, 10, 3))
コード例 #4
0
    ptype=cms.untracked.int32(0),
    mtype=cms.untracked.bool(True),
    subsystem=cms.untracked.string("Hcal"),

    #	tags
    tagHBHE=cms.untracked.InputTag("hcalDigis"),
    tagHO=cms.untracked.InputTag("hcalDigis"),
    tagHF=cms.untracked.InputTag("hcalDigis"),

    #	Cuts
    cutSumQ_HBHE=cms.untracked.double(20),
    cutSumQ_HO=cms.untracked.double(20),
    cutSumQ_HF=cms.untracked.double(20),

    #	ratio thresholds
    thresh_unifh=cms.untracked.double(0.2),
    thresh_led=cms.untracked.double(20),
    qie10InConditions=cms.untracked.bool(False),

    # Reference digi sizes
    refDigiSize=cms.untracked.vuint32(10, 10, 10, 4),  # HB, HE, HO, HF
)

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify(digiTask, qie10InConditions=True)
run2_HF_2017.toModify(digiTask, refDigiSize=[10, 10, 10, 3])

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(digiTask, qie10InConditions=True)
run2_HCAL_2018.toModify(digiTask, refDigiSize=[8, 8, 10, 3])
コード例 #5
0
_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_run2_HCAL_2018_cff import run2_HCAL_2018
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB

run2_HCAL_2017.toModify( es_hardcode, useLayer0Weight = cms.bool(True), useIeta18depth1 = cms.bool(False) )
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) )

run2_HCAL_2018.toModify( es_hardcode, useLayer0Weight = cms.bool(True), useIeta18depth1 = cms.bool(False) )
run3_HB.toModify( es_hardcode, useHBUpgrade = cms.bool(True), HBreCalibCutoff = cms.double(100.0) )
# now that we have an emap
run3_HB.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) )
                            
コード例 #6
0
    )

logWeightDenominatorByDetectorPhase2 = cms.VPSet(
    cms.PSet( detector = cms.string("HCAL_BARREL1"),
              depths = cms.vint32(1, 2, 3, 4),
              logWeightDenominator = _thresholdsHB,
              ),
    cms.PSet( detector = cms.string("HCAL_ENDCAP"),
              depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
              logWeightDenominator = _thresholdsHE,
              )
    )

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 =  cms.Modifier()
run2_HECollapse_2018.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetectorPhase2)
コード例 #7
0
ファイル: hcaltpdigi_cff.py プロジェクト: srimanob/cmssw
from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cfi import *
from CalibCalorimetry.CaloTPG.CaloTPGTranscoder_cfi import *
HcalTPGCoderULUT = cms.ESProducer(
    "HcalTPGCoderULUT",
    read_Ascii_LUTs=cms.bool(False),
    read_XML_LUTs=cms.bool(False),
    read_FG_LUTs=cms.bool(False),
    LUTGenerationMode=cms.bool(True),
    linearLUTs=cms.bool(False),
    contain1TSHB=cms.bool(False),
    contain1TSHE=cms.bool(False),
    containPhaseNSHE=cms.double(-999.0),
    containPhaseNSHB=cms.double(-999.0),
    tpScales=tpScales,
    MaskBit=cms.int32(0x8000),
    FG_HF_thresholds=cms.vuint32(17, 255),
    inputLUTs=cms.FileInPath(
        'CalibCalorimetry/HcalTPGAlgos/data/inputLUTcoder_physics.dat'),
    FGLUTs=cms.FileInPath(
        'CalibCalorimetry/HcalTPGAlgos/data/HBHE_FG_LUT.dat'),
    RCalibFile=cms.FileInPath(
        'CalibCalorimetry/HcalTPGAlgos/data/RecHit-TPG-calib.dat'))

HcalTrigTowerGeometryESProducer = cms.ESProducer(
    "HcalTrigTowerGeometryESProducer")

run2_HCAL_2018.toModify(CaloTPGTranscoder, linearLUTs=cms.bool(True))
run2_HCAL_2018.toModify(HcalTPGCoderULUT, linearLUTs=cms.bool(True))
pp_on_AA.toModify(CaloTPGTranscoder, FG_HF_thresholds=cms.vuint32(15, 19))
pp_on_AA.toModify(HcalTPGCoderULUT, FG_HF_thresholds=cms.vuint32(15, 19))
コード例 #8
0
ファイル: hcaltpdigi_cff.py プロジェクト: MelanieEich/cmssw
# The following comments couldn't be translated into the new config version:

# if read_Ascii_LUTs is true then read Ascii LUTs via "inputLUTs" below

import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018

from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cfi import *
from CalibCalorimetry.CaloTPG.CaloTPGTranscoder_cfi import *
HcalTPGCoderULUT = cms.ESProducer("HcalTPGCoderULUT",
    read_Ascii_LUTs = cms.bool(False),
    read_XML_LUTs = cms.bool(False),
    read_FG_LUTs = cms.bool(False),
    LUTGenerationMode = cms.bool(True),
    linearLUTs = cms.bool(False),
    tpScales = tpScales,
    MaskBit = cms.int32(0x8000),
    FG_HF_threshold = cms.uint32(17),
    inputLUTs = cms.FileInPath('CalibCalorimetry/HcalTPGAlgos/data/inputLUTcoder_physics.dat'),
    FGLUTs = cms.FileInPath('CalibCalorimetry/HcalTPGAlgos/data/HBHE_FG_LUT.dat'),
    RCalibFile = cms.FileInPath('CalibCalorimetry/HcalTPGAlgos/data/RecHit-TPG-calib.dat')
)

HcalTrigTowerGeometryESProducer = cms.ESProducer("HcalTrigTowerGeometryESProducer")

run2_HCAL_2018.toModify(CaloTPGTranscoder, linearLUTs=cms.bool(True))
run2_HCAL_2018.toModify(HcalTPGCoderULUT, linearLUTs=cms.bool(True))
コード例 #9
0
    cms.PSet(
        detector=cms.string("HCAL_BARREL1"),
        depths=cms.vint32(1, 2, 3, 4),
        logWeightDenominator=_thresholdsHB,
    ),
    cms.PSet(
        detector=cms.string("HCAL_ENDCAP"),
        depths=cms.vint32(1, 2, 3, 4, 5, 6, 7),
        logWeightDenominator=_thresholdsHE,
    ))

#######################

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder,
                        recHitEnergyNorms=recHitEnergyNorms2018)
run2_HCAL_2018.toModify(
    particleFlowClusterHBHE.seedFinder,
    thresholdsByDetector=seedFinderThresholdsByDetector2018)
run2_HCAL_2018.toModify(
    particleFlowClusterHBHE.initialClusteringStep,
    thresholdsByDetector=initialClusteringStepThresholdsByDetector2018)
run2_HCAL_2018.toModify(
    particleFlowClusterHBHE.pfClusterBuilder.positionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2018)
run2_HCAL_2018.toModify(
    particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder,
コード例 #10
0
_bParking_extraCommands = ['keep *_slimmedLowPtElectrons_*_*',
                           'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
                           'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
                           'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
                           'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
                           'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
                           'keep floatedmValueMap_lowPtGsfElectronID_*_*',
                           'keep *_lowPtGsfLinks_*_*',
                           'keep *_gsfTracksOpenConversions_*_*',
                           ]
bParking.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _bParking_extraCommands)

# --- Only for 2018 data & MC
_run2_HCAL_2018_extraCommands = ["keep *_packedPFCandidates_hcalDepthEnergyFractions_*"]
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run2_HCAL_2018_extraCommands)

_run3_common_extraCommands = ["drop *_packedPFCandidates_hcalDepthEnergyFractions_*"]
from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run3_common_extraCommands)
# --- 

MicroEventContentMC = cms.PSet(
    outputCommands = cms.untracked.vstring(MicroEventContent.outputCommands)
)
MicroEventContentMC.outputCommands += MicroEventContentGEN.outputCommands
MicroEventContentMC.outputCommands += [
                                        'keep PileupSummaryInfos_slimmedAddPileupInfo_*_*',
                                        # RUN
                                        'keep L1GtTriggerMenuLite_l1GtTriggerMenuLite__*'
                                      ]
コード例 #11
0
from __future__ import print_function
from RecoMET.METFilters.hcallaserevent_cfi import *  # from fillDescriptions

try:
    from hcalLaserBadEvents_2011 import badEvents
except:
    print(
        "<hcalLaserEventFilter_cfi> WARNING!  No explicit list 'badEvents.py' containing bad HCAL laser run/events was found!"
    )
    badEvents = []

hcalLaserEventFilter = hcallaserevent.clone(
    BadRunEventNumbers=cms.vuint32(badEvents))

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(
    hcalLaserEventFilter,
    vetoByHBHEOccupancy=False,
    minOccupiedHBHE=8000,
)
コード例 #12
0
import FWCore.ParameterSet.Config as cms

from Calibration.HcalAlCaRecoProducers.alcaIsoTracksFilter_cfi import *

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017

run2_HCAL_2017.toModify(
    alcaIsoTracksFilter,
    EBHitEnergyThreshold=cms.double(0.18),
    EEHitEnergyThreshold0=cms.double(-206.074),
    EEHitEnergyThreshold1=cms.double(357.671),
    EEHitEnergyThreshold2=cms.double(-204.978),
    EEHitEnergyThreshold3=cms.double(39.033),
    EEHitEnergyThresholdLow=cms.double(1.25),
    EEHitEnergyThresholdHigh=cms.double(10.0),
)

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018

run2_HCAL_2018.toModify(
    alcaIsoTracksFilter,
    EBHitEnergyThreshold=cms.double(0.10),
    EEHitEnergyThreshold0=cms.double(-41.0664),
    EEHitEnergyThreshold1=cms.double(68.795),
    EEHitEnergyThreshold2=cms.double(-38.1483),
    EEHitEnergyThreshold3=cms.double(7.04303),
    EEHitEnergyThresholdLow=cms.double(0.11),
    EEHitEnergyThresholdHigh=cms.double(15.4),
)
コード例 #13
0
from __future__ import print_function
from __future__ import absolute_import
from RecoMET.METFilters.hcallaserevent_cfi import * # from fillDescriptions

try:
    from .hcalLaserBadEvents_2011 import badEvents
except:
    print("<hcalLaserEventFilter_cfi> WARNING!  No explicit list 'badEvents.py' containing bad HCAL laser run/events was found!")
    badEvents=[]

hcalLaserEventFilter = hcallaserevent.clone(BadRunEventNumbers=cms.vuint32(badEvents) )

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify( hcalLaserEventFilter,
                           vetoByHBHEOccupancy=False,
                           minOccupiedHBHE=8000,
                       )

コード例 #14
0
import FWCore.ParameterSet.Config as cms

from Calibration.HcalCalibAlgos.HcalIsoTrkAnalyzer_cfi import *

from Configuration.Eras.Modifier_run2_ECAL_2017_cff import run2_ECAL_2017

run2_ECAL_2017.toModify(HcalIsoTrkAnalyzer,
  EBHitEnergyThreshold    = cms.double(0.18),
  EEHitEnergyThreshold0   = cms.double(-206.074),
  EEHitEnergyThreshold1   = cms.double(357.671),
  EEHitEnergyThreshold2   = cms.double(-204.978),
  EEHitEnergyThreshold3   = cms.double(39.033),
  EEHitEnergyThresholdLow = cms.double(1.25),
  EEHitEnergyThresholdHigh= cms.double(10.0),
)

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018

run2_HCAL_2018.toModify(HcalIsoTrkAnalyzer,
  EBHitEnergyThreshold    = cms.double(0.10),
  EEHitEnergyThreshold0   = cms.double(-41.0664),
  EEHitEnergyThreshold1   = cms.double(68.795),
  EEHitEnergyThreshold2   = cms.double(-38.1483),
  EEHitEnergyThreshold3   = cms.double(7.04303),
  EEHitEnergyThresholdLow = cms.double(0.11),
  EEHitEnergyThresholdHigh= cms.double(15.4),
)
コード例 #15
0
logWeightDenominatorByDetectorPhase2 = cms.VPSet(
    cms.PSet(
        detector=cms.string("HCAL_BARREL1"),
        depths=cms.vint32(1, 2, 3, 4),
        logWeightDenominator=_thresholdsHB,
    ),
    cms.PSet(
        detector=cms.string("HCAL_ENDCAP"),
        depths=cms.vint32(1, 2, 3, 4, 5, 6, 7),
        logWeightDenominator=_thresholdsHE,
    ))

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 = cms.Modifier()
run2_HECollapse_2018.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
コード例 #16
0
cutsPhase2 = cms.VPSet(
    cms.PSet(
        depth=cms.vint32(1, 2, 3, 4),
        threshold = _thresholdsHB,
        detectorEnum = cms.int32(1)
        ),
    cms.PSet(
        depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
        threshold = _thresholdsHE,
        detectorEnum = cms.int32(2)
        )
    )

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 =  cms.Modifier()
run2_HECollapse_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cutsPhase2)
コード例 #17
0
ファイル: MicroEventContent_cff.py プロジェクト: y19y19/cmssw
        'keep *_slimmedGenJets__*',
        'keep *_slimmedGenJetsAK8__*',
        'keep *_slimmedGenJetsAK8SoftDropSubJets__*',
        'keep *_genMetTrue_*_*',
        # RUN
        'keep LHERunInfoProduct_*_*_*',
        'keep GenRunInfoProduct_*_*_*',
        'keep *_genParticles_xyz0_*',
        'keep *_genParticles_t0_*',
    )
)

# --- Only for 2018 data & MC
_run2_HCAL_2018_extraCommands = ["keep *_packedPFCandidates_hcalDepthEnergyFractions_*"]
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run2_HCAL_2018_extraCommands)

_run3_common_extraCommands = ["drop *_packedPFCandidates_hcalDepthEnergyFractions_*"]
from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run3_common_extraCommands)
# ---

_pp_on_AA_extraCommands = [
    'keep patPackedCandidates_hiPixelTracks_*_*',
    'keep patPackedCandidates_packedPFCandidatesRemoved_*_*',
    'keep *_packedCandidateMuonID_*_*',
    'keep *_slimmedJets_pfCandidates_*',
    'keep floatedmValueMap_packedPFCandidateTrackChi2_*_*',
    'keep floatedmValueMap_lostTrackChi2_*_*',
    'keep recoCentrality_hiCentrality_*_*',
    'keep int_centralityBin_*_*',
コード例 #18
0
logWeightDenominatorByDetectorPhase2 = cms.VPSet(
    cms.PSet( detector = cms.string("HCAL_BARREL1"),
              depths = cms.vint32(1, 2, 3, 4),
              logWeightDenominator = _thresholdsHB,
              ),
    cms.PSet( detector = cms.string("HCAL_ENDCAP"),
              depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
              logWeightDenominator = _thresholdsHE,
              )
    )

#######################

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder, recHitEnergyNorms = recHitEnergyNorms2018)
run2_HCAL_2018.toModify(particleFlowClusterHBHE.seedFinder, thresholdsByDetector = seedFinderThresholdsByDetector2018)
run2_HCAL_2018.toModify(particleFlowClusterHBHE.initialClusteringStep, thresholdsByDetector = initialClusteringStepThresholdsByDetector2018)
run2_HCAL_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.positionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)
run2_HCAL_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)


from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder, recHitEnergyNorms = recHitEnergyNorms2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.seedFinder, thresholdsByDetector = seedFinderThresholdsByDetector2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.initialClusteringStep, thresholdsByDetector = initialClusteringStepThresholdsByDetector2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.positionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 =  cms.Modifier()