Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HO particle flow changes to the run2 era #7675

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,5 +1,8 @@
import FWCore.ParameterSet.Config as cms

# Use this object to modify parameters specifically for Run 2
from Configuration.StandardSequences.Eras import eras

#### PF CLUSTER HO ####

#cleaning
Expand Down Expand Up @@ -83,3 +86,24 @@
energyCorrector = cms.PSet()
)

#
# Need to change the quality tests for Run 2
#
def _modifyParticleFlowClusterHOForRun2( object ) :
"""
Customises PFClusterProducer for Run 2.
"""
for p in object.seedFinder.thresholdsByDetector:
p.seedingThreshold = cms.double(0.08)

for p in object.initialClusteringStep.thresholdsByDetector:
p.gatheringThreshold = cms.double(0.05)

for p in object.pfClusterBuilder.recHitEnergyNorms:
p.recHitEnergyNorm = cms.double(0.05)

object.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
object.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)

# Call the function above to modify particleFlowClusterHO only if the run2 era is active
eras.run2.toModify( particleFlowClusterHO, func=_modifyParticleFlowClusterHOForRun2 )
Expand Up @@ -29,3 +29,28 @@

)

#
# Need to change the quality tests for Run 2
#
from Configuration.StandardSequences.Eras import eras

def _modifyParticleFlowRecHitHOForRun2( object ) :
"""
Customises PFRecHitProducer for Run 2 by lowering the
HO threshold for SiPM
"""
for prod in object.producers:
prod.qualityTests = cms.VPSet(
cms.PSet(
name = cms.string("PFRecHitQTestThreshold"),
threshold = cms.double(0.05) # new threshold for SiPM HO
),
cms.PSet(
name = cms.string("PFRecHitQTestHCALChannel"),
maxSeverities = cms.vint32(11),
cleaningThresholds = cms.vdouble(0.0),
flags = cms.vstring('Standard')
)
)

eras.run2.toModify( particleFlowRecHitHO, func=_modifyParticleFlowRecHitHOForRun2 )