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

Make available a custom function for uncollapsed HE depths at HLT #22636

Merged
merged 2 commits into from Mar 19, 2018
Merged
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
40 changes: 40 additions & 0 deletions HLTrigger/Configuration/python/customizeHLTforCMSSW.py
Expand Up @@ -17,6 +17,46 @@
# pset.minGoodStripCharge = cms.PSet(refToPSet_ = cms.string('HLTSiStripClusterChargeCutNone'))
# return process


from RecoParticleFlow.PFClusterProducer.particleFlowClusterHBHE_cfi import recHitEnergyNorms2018,seedFinderThresholdsByDetector2018,initialClusteringStepThresholdsByDetector2018,logWeightDenominatorByDetector2018
from RecoParticleFlow.PFClusterProducer.particleFlowClusterHCAL_cfi import logWeightDenominatorByDetector2018 as logWeightDenominatorByDetector2018_HCAL
from RecoParticleFlow.PFClusterProducer.particleFlowRecHitHBHE_cfi import cuts2018

def customiseForUncollapsed(process):
for producer in producers_by_type(process, "PFClusterProducer"):
if producer.seedFinder.thresholdsByDetector[1].detector.value() == 'HCAL_ENDCAP':
producer.pfClusterBuilder.recHitEnergyNorms = recHitEnergyNorms2018
producer.seedFinder.thresholdsByDetector = seedFinderThresholdsByDetector2018
producer.initialClusteringStep.thresholdsByDetector = initialClusteringStepThresholdsByDetector2018
producer.pfClusterBuilder.positionCalc.logWeightDenominatorByDetector = logWeightDenominatorByDetector2018
producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorByDetector2018

for producer in producers_by_type(process, "PFMultiDepthClusterProducer"):
producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorByDetector2018_HCAL

for producer in producers_by_type(process, "PFRecHitProducer"):
if producer.producers[0].name.value() == 'PFHBHERecHitCreator':
producer.producers[0].qualityTests[0].cuts = cuts2018

for producer in producers_by_type(process, "CaloTowersCreator"):
producer.HcalPhase = cms.int32(1)
producer.HESThreshold1 = cms.double(0.1)
producer.HESThreshold = cms.double(0.2)
producer.HEDThreshold1 = cms.double(0.1)
producer.HEDThreshold = cms.double(0.2)


#remove collapser from sequence
process.hltHbhereco = process.hltHbhePhase1Reco.clone()
process.HLTDoLocalHcalSequence = cms.Sequence( process.hltHcalDigis + process.hltHbhereco + process.hltHfprereco + process.hltHfreco + process.hltHoreco )
process.HLTStoppedHSCPLocalHcalReco = cms.Sequence( process.hltHcalDigis + process.hltHbhereco )


return process




def customiseFor21664_forMahiOn(process):
for producer in producers_by_type(process, "HBHEPhase1Reconstructor"):
producer.algorithm.useMahi = cms.bool(True)
Expand Down