Skip to content

Commit

Permalink
remove metSignificance for metNoHF and caloMET
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Sep 5, 2016
1 parent 3f6875d commit 7f89d67
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -551,6 +551,8 @@ def getCorrectedMET(self, process, metType, correctionLevel,produceIntermediateC
if "T1" in correctionLevel:
getattr(process, "pat"+metType+"Met"+postfix).computeMETSignificance = cms.bool(True)
getattr(process, "pat"+metType+"Met"+postfix).srcPFCands = cms.InputTag("packedPFCandidates")
if postfix=="NoHF":
getattr(process, "pat"+metType+"Met"+postfix).computeMETSignificance = cms.bool(False)
if self._parameters["runOnData"].value:
getattr(process, "pat"+metType+"Met"+postfix).parameters = METSignificanceParams_Data
if self._parameters["Puppi"].value:
Expand All @@ -561,7 +563,7 @@ def getCorrectedMET(self, process, metType, correctionLevel,produceIntermediateC
getattr(process, "pat"+metType+"Met"+postfix).srcJetResPhi = cms.string('AK4PFPuppi_phi')

#MET significance bypass for the patMETs from AOD
if not self._parameters["onMiniAOD"].value:
if not self._parameters["onMiniAOD"].value and not postfix=="NoHF":
getattr(process, "patMETs"+postfix).computeMETSignificance = cms.bool(True)
getattr(process, "patMETs"+postfix).srcPFCands=self._parameters["pfCandCollection"].value

Expand Down Expand Up @@ -1271,6 +1273,9 @@ def recomputeRawMetFromPfcs(self, process, pfCandCollection, onMiniAOD, patMetMo
setattr(process, 'patMETs'+postfix, getattr(process,'patMETs' ).clone() )
getattr(process, "patMETs"+postfix).metSource = cms.InputTag("pfMetT1"+postfix)
getattr(process, "patMETs"+postfix).computeMETSignificance = cms.bool(True)
if postfix=="NoHF":
getattr(process, "patMETs"+postfix).computeMETSignificance = cms.bool(False)
getattr(process, "patCaloMet").computeMETSignificance = cms.bool(False)
if self._parameters["Puppi"].value:
getattr(process, 'patMETs'+postfix).srcPFCands = cms.InputTag('puppiForMET')
getattr(process, 'patMETs'+postfix).srcJets = cms.InputTag('selectedPatJets'+postfix)
Expand Down Expand Up @@ -1490,7 +1495,6 @@ def miniAODConfiguration(self, process, pfCandCollection, jetCollection,
metSource = "metrawCalo"+postfix
)
getattr(process,"patCaloMet").addGenMET = False


#smearing and type0 variations not yet supported in reprocessing
#del getattr(process,"slimmedMETs"+postfix).t1SmearedVarsAndUncs
Expand Down

0 comments on commit 7f89d67

Please sign in to comment.