def __call__(self, process,
                 electronCollection              = None,
                 photonCollection                = None,
                 muonCollection                  = None,
                 tauCollection                   = None,
                 jetCollection                   = None,
                 dRjetCleaning                   = None,
                 jetCorrLabel                    = None,
                 doApplyChargedHadronSubtraction = None,
                 doSmearJets                     = None,
                 jetSmearFileName                = None,
                 jetSmearHistogram               = None,
                 pfCandCollection                = None,
                 doApplyUnclEnergyCalibration    = None,
                 sfNoPUjetOffsetEnCorr           = None,
                 jetCorrPayloadName              = None,
                 jetCorrLabelUpToL3              = None,
                 jetCorrLabelUpToL3Res           = None,
                 jecUncertaintyFile              = None,
                 jecUncertaintyTag               = None,
                 varyByNsigmas                   = None,
                 addToPatDefaultSequence         = None,
                 outputModule                    = None,
                 postfix                         = None):
        JetMEtUncertaintyTools.__call__(
            self, process,
            electronCollection = electronCollection,
            photonCollection = photonCollection,
            muonCollection = muonCollection,
            tauCollection = tauCollection,
            jetCollection = jetCollection,
            jetCorrLabel = jetCorrLabel,
            doSmearJets = doSmearJets,
            jetSmearFileName = jetSmearFileName,
            jetSmearHistogram = jetSmearHistogram,
            jetCorrPayloadName = jetCorrPayloadName,
            jetCorrLabelUpToL3 = jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res = jetCorrLabelUpToL3Res,
            jecUncertaintyFile = jecUncertaintyFile,
            jecUncertaintyTag = jecUncertaintyTag,
            varyByNsigmas = varyByNsigmas,
            addToPatDefaultSequence = addToPatDefaultSequence,
            outputModule = outputModule,
            postfix = postfix)
        if doApplyChargedHadronSubtraction is None:
            doApplyChargedHadronSubtraction = self._defaultParameters['doApplyChargedHadronSubtraction'].value
        pfCandCollection = self._initializeInputTag(pfCandCollection, 'pfCandCollection')
        if doApplyUnclEnergyCalibration is None:
            doApplyUnclEnergyCalibration = self._defaultParameters['doApplyUnclEnergyCalibration'].value
        if sfNoPUjetOffsetEnCorr is None:
            sfNoPUjetOffsetEnCorr = self._defaultParameters['sfNoPUjetOffsetEnCorr'].value

        self.setParameter('doApplyChargedHadronSubtraction', doApplyChargedHadronSubtraction)
        self.setParameter('pfCandCollection', pfCandCollection)
        self.setParameter('doApplyUnclEnergyCalibration', doApplyUnclEnergyCalibration)
        self.setParameter('sfNoPUjetOffsetEnCorr', sfNoPUjetOffsetEnCorr)

        self.apply(process)
    def __call__(self,
                 process,
                 electronCollection=None,
                 photonCollection=None,
                 muonCollection=None,
                 tauCollection=None,
                 jetCollection=None,
                 dRjetCleaning=None,
                 caloTowerCollection=None,
                 jetCorrPayloadName=None,
                 jetCorrLabelUpToL3=None,
                 jetCorrLabelUpToL3Res=None,
                 jecUncertaintyFile=None,
                 jecUncertaintyTag=None,
                 varyByNsigmas=None,
                 type1JetPtThreshold=None,
                 addToPatDefaultSequence=None,
                 outputModule=None,
                 postfix=None):
        JetMEtUncertaintyTools.__call__(
            self,
            process,
            electronCollection=electronCollection,
            photonCollection=photonCollection,
            muonCollection=muonCollection,
            tauCollection=tauCollection,
            jetCollection=jetCollection,
            jetCorrLabel=None,
            doSmearJets=False,
            jetCorrPayloadName=jetCorrPayloadName,
            jetCorrLabelUpToL3=jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res=jetCorrLabelUpToL3Res,
            jecUncertaintyFile=jecUncertaintyFile,
            jecUncertaintyTag=jecUncertaintyTag,
            varyByNsigmas=varyByNsigmas,
            addToPatDefaultSequence=addToPatDefaultSequence,
            outputModule=outputModule,
            postfix=postfix)
        if dRjetCleaning is None:
            dRjetCleaning = self._defaultParameters['dRjetCleaning'].value
        caloTowerCollection = self._initializeInputTag(caloTowerCollection,
                                                       'caloTowerCollection')
        if type1JetPtThreshold is None:
            type1JetPtThreshold = self._defaultParameters[
                'type1JetPtThreshold'].value

        self.setParameter('dRjetCleaning', dRjetCleaning)
        self.setParameter('caloTowerCollection', caloTowerCollection)
        self.setParameter('type1JetPtThreshold', type1JetPtThreshold)

        self.apply(process)
    def __call__(self,
                 process,
                 electronCollection=None,
                 photonCollection=None,
                 muonCollection=None,
                 tauCollection=None,
                 jetCollection=None,
                 dRjetCleaning=None,
                 jetCorrLabel=None,
                 doSmearJets=None,
                 jetSmearFileName=None,
                 jetSmearHistogram=None,
                 pfCandCollection=None,
                 jetCorrPayloadName=None,
                 jetCorrLabelUpToL3=None,
                 jetCorrLabelUpToL3Res=None,
                 jecUncertaintyFile=None,
                 jecUncertaintyTag=None,
                 varyByNsigmas=None,
                 addToPatDefaultSequence=None,
                 outputModule=None,
                 postfix=None):
        JetMEtUncertaintyTools.__call__(
            self,
            process,
            electronCollection=electronCollection,
            photonCollection=photonCollection,
            muonCollection=muonCollection,
            tauCollection=tauCollection,
            jetCollection=jetCollection,
            jetCorrLabel=jetCorrLabel,
            doSmearJets=doSmearJets,
            jetSmearFileName=jetSmearFileName,
            jetSmearHistogram=jetSmearHistogram,
            jetCorrPayloadName=jetCorrPayloadName,
            jetCorrLabelUpToL3=jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res=jetCorrLabelUpToL3Res,
            jecUncertaintyFile=jecUncertaintyFile,
            jecUncertaintyTag=jecUncertaintyTag,
            varyByNsigmas=varyByNsigmas,
            addToPatDefaultSequence=addToPatDefaultSequence,
            outputModule=outputModule,
            postfix=postfix)
        pfCandCollection = self._initializeInputTag(pfCandCollection,
                                                    'pfCandCollection')

        self.setParameter('pfCandCollection', pfCandCollection)

        self.apply(process)
    def __call__(self, process,
                 electronCollection      = None,
                 photonCollection        = None,
                 muonCollection          = None,
                 tauCollection           = None,
                 jetCollection           = None,
                 dRjetCleaning           = None,
                 caloTowerCollection     = None,
                 jetCorrPayloadName      = None,
                 jetCorrLabelUpToL3      = None,
                 jetCorrLabelUpToL3Res   = None,
                 jecUncertaintyFile      = None,
                 jecUncertaintyTag       = None,
                 varyByNsigmas           = None,
                 type1JetPtThreshold     = None,
                 addToPatDefaultSequence = None,
                 outputModule            = None,
                 postfix                 = None):
        JetMEtUncertaintyTools.__call__(
            self, process,
            electronCollection = electronCollection,
            photonCollection = photonCollection,
            muonCollection = muonCollection,
            tauCollection = tauCollection,
            jetCollection = jetCollection,
            jetCorrLabel = None,
            doSmearJets = False,
            jetCorrPayloadName = jetCorrPayloadName,
            jetCorrLabelUpToL3 = jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res = jetCorrLabelUpToL3Res,
            jecUncertaintyFile = jecUncertaintyFile,
            jecUncertaintyTag = jecUncertaintyTag,
            varyByNsigmas = varyByNsigmas,
            addToPatDefaultSequence = addToPatDefaultSequence,
            outputModule = outputModule,
            postfix = postfix)
        if dRjetCleaning is None:
            dRjetCleaning = self._defaultParameters['dRjetCleaning'].value
        caloTowerCollection = self._initializeInputTag(caloTowerCollection, 'caloTowerCollection')
        if type1JetPtThreshold is None:
            type1JetPtThreshold = self._defaultParameters['type1JetPtThreshold'].value

        self.setParameter('dRjetCleaning', dRjetCleaning)
        self.setParameter('caloTowerCollection', caloTowerCollection)
        self.setParameter('type1JetPtThreshold', type1JetPtThreshold)
  
        self.apply(process) 
Пример #5
0
    def __call__(self, process,
                 electronCollection      = None,
                 photonCollection        = None,
                 muonCollection          = None,
                 tauCollection           = None,
                 jetCollection           = None,
                 dRjetCleaning           = None,
                 jetCorrLabel            = None,
                 doSmearJets             = None,
                 jetSmearFileName        = None,
                 jetSmearHistogram       = None,
                 jetCorrPayloadName      = None,
                 jetCorrLabelUpToL3      = None,
                 jetCorrLabelUpToL3Res   = None,
                 jecUncertaintyFile      = None,
                 jecUncertaintyTag       = None,
                 varyByNsigmas           = None,
                 addToPatDefaultSequence = None,
                 outputModule            = None,
                 postfix                 = None):
        JetMEtUncertaintyTools.__call__(
            self, process,
            electronCollection = electronCollection,
            photonCollection = photonCollection,
            muonCollection = muonCollection,
            tauCollection = tauCollection,
            jetCollection = jetCollection,
            jetCorrLabel = jetCorrLabel,
            doSmearJets = doSmearJets,
            jetSmearFileName = jetSmearFileName,
            jetSmearHistogram = jetSmearHistogram,
            jetCorrPayloadName = jetCorrPayloadName,
            jetCorrLabelUpToL3 = jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res = jetCorrLabelUpToL3Res,
            jecUncertaintyFile = jecUncertaintyFile,
            jecUncertaintyTag = jecUncertaintyTag,
            varyByNsigmas = varyByNsigmas,
            addToPatDefaultSequence = addToPatDefaultSequence,
            outputModule = outputModule,
            postfix = postfix)
        if dRjetCleaning is None:
            dRjetCleaning = self._defaultParameters['dRjetCleaning'].value

        self.setParameter('dRjetCleaning', dRjetCleaning)

        self.apply(process) 
    def __call__(self, process,
                 electronCollection      = None,
                 photonCollection        = None,
                 muonCollection          = None,
                 tauCollection           = None,
                 jetCollection           = None,
                 dRjetCleaning           = None,
                 jetCorrLabel            = None,
                 doSmearJets             = None,                 
                 makeType1corrPFMEt      = None,
                 makeType1p2corrPFMEt    = None,
                 doApplyType0corr        = None,
                 sysShiftCorrParameter   = None,
                 doApplySysShiftCorr     = None,
                 jetSmearFileName        = None,
                 jetSmearHistogram       = None,
                 pfCandCollection        = None,
                 jetCorrPayloadName      = None,
                 jetCorrLabelUpToL3      = None,
                 jetCorrLabelUpToL3Res   = None,
                 jecUncertaintyFile      = None,
                 jecUncertaintyTag       = None,
                 varyByNsigmas           = None,
                 addToPatDefaultSequence = None,
                 outputModule            = None,
                 postfix                 = None):
        JetMEtUncertaintyTools.__call__(
            self, process,
            electronCollection = electronCollection,
            photonCollection = photonCollection,
            muonCollection = muonCollection,
            tauCollection = tauCollection,
            jetCollection = jetCollection,
            jetCorrLabel = jetCorrLabel,
            doSmearJets = doSmearJets,
            jetSmearFileName = jetSmearFileName,
            jetSmearHistogram = jetSmearHistogram,
            jetCorrPayloadName = jetCorrPayloadName,
            jetCorrLabelUpToL3 = jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res = jetCorrLabelUpToL3Res,
            jecUncertaintyFile = jecUncertaintyFile,
            jecUncertaintyTag = jecUncertaintyTag,
            varyByNsigmas = varyByNsigmas,
            addToPatDefaultSequence = addToPatDefaultSequence,
            outputModule = outputModule,
            postfix = postfix)
        if dRjetCleaning is None:
            dRjetCleaning = self._defaultParameters['dRjetCleaning'].value
        if makeType1corrPFMEt is None:
            makeType1corrPFMEt = self._defaultParameters['makeType1corrPFMEt'].value
        if makeType1p2corrPFMEt is None:
            makeType1p2corrPFMEt = self._defaultParameters['makeType1p2corrPFMEt'].value
        if doApplyType0corr is None:
            doApplyType0corr = self._defaultParameters['doApplyType0corr'].value
        if sysShiftCorrParameter is None:
            sysShiftCorrParameter = self._defaultParameters['sysShiftCorrParameter'].value    
        if doApplySysShiftCorr is None:
            doApplySysShiftCorr = self._defaultParameters['doApplySysShiftCorr'].value
        if sysShiftCorrParameter is None:
            if doApplySysShiftCorr:
                raise ValueError("MET sys. shift correction parameters must be specified explicitely !!")
            sysShiftCorrParameter = cms.PSet()
        pfCandCollection = self._initializeInputTag(pfCandCollection, 'pfCandCollection')

        self.setParameter('dRjetCleaning', dRjetCleaning)
        self.setParameter('makeType1corrPFMEt', makeType1corrPFMEt)
        self.setParameter('makeType1p2corrPFMEt', makeType1p2corrPFMEt)
        self.setParameter('doApplyType0corr', doApplyType0corr)
        self.setParameter('doApplySysShiftCorr', doApplySysShiftCorr)
        self.setParameter('sysShiftCorrParameter', sysShiftCorrParameter)
        self.setParameter('pfCandCollection', pfCandCollection)
  
        self.apply(process) 
    def __call__(self, process,
                 electronCollection           = None,
                 photonCollection             = None,
                 muonCollection               = None,
                 tauCollection                = None,
                 jetCollection                = None,
                 dRjetCleaning                = None,
                 jetCorrLabel                 = None,
                 doSmearJets                  = None,
                 makeType1corrPFMEt           = None,
                 makeType1p2corrPFMEt         = None,
                 doApplyType0corr             = None,
                 sysShiftCorrParameter        = None,
                 doApplySysShiftCorr          = None,
                 jetSmearFileName             = None,
                 jetSmearHistogram            = None,
                 pfCandCollection             = None,
                 doApplyUnclEnergyCalibration = None,
                 jetCorrPayloadName           = None,
                 jetCorrLabelUpToL3           = None,
                 jetCorrLabelUpToL3Res        = None,
                 jecUncertaintyFile           = None,
                 jecUncertaintyTag            = None,
                 varyByNsigmas                = None,
                 addToPatDefaultSequence      = None,
                 outputModule                 = None,
                 postfix                      = None):
        JetMEtUncertaintyTools.__call__(
            self, process,
            electronCollection = electronCollection,
            photonCollection = photonCollection,
            muonCollection = muonCollection,
            tauCollection = tauCollection,
            jetCollection = jetCollection,
            jetCorrLabel = jetCorrLabel,
            doSmearJets = doSmearJets,
            jetSmearFileName = jetSmearFileName,
            jetSmearHistogram = jetSmearHistogram,
            jetCorrPayloadName = jetCorrPayloadName,
            jetCorrLabelUpToL3 = jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res = jetCorrLabelUpToL3Res,
            jecUncertaintyFile = jecUncertaintyFile,
            jecUncertaintyTag = jecUncertaintyTag,
            varyByNsigmas = varyByNsigmas,
            addToPatDefaultSequence = addToPatDefaultSequence,
            outputModule = outputModule,
            postfix = postfix)
        if dRjetCleaning is None:
            dRjetCleaning = self._defaultParameters['dRjetCleaning'].value
        if makeType1corrPFMEt is None:
            makeType1corrPFMEt = self._defaultParameters['makeType1corrPFMEt'].value
        if makeType1p2corrPFMEt is None:
            makeType1p2corrPFMEt = self._defaultParameters['makeType1p2corrPFMEt'].value
        if doApplyType0corr is None:
            doApplyType0corr = self._defaultParameters['doApplyType0corr'].value
        if sysShiftCorrParameter is None:
            sysShiftCorrParameter = self._defaultParameters['sysShiftCorrParameter'].value
        if doApplySysShiftCorr is None:
            doApplySysShiftCorr = self._defaultParameters['doApplySysShiftCorr'].value
        if sysShiftCorrParameter is None:
            if doApplySysShiftCorr:
                raise ValueError("MET sys. shift correction parameters must be specified explicitely !!")
            sysShiftCorrParameter = cms.PSet()
        pfCandCollection = self._initializeInputTag(pfCandCollection, 'pfCandCollection')
        if doApplyUnclEnergyCalibration is None:
            doApplyUnclEnergyCalibration = self._defaultParameters['doApplyUnclEnergyCalibration'].value

        self.setParameter('dRjetCleaning', dRjetCleaning)
        self.setParameter('makeType1corrPFMEt', makeType1corrPFMEt)
        self.setParameter('makeType1p2corrPFMEt', makeType1p2corrPFMEt)
        self.setParameter('doApplyType0corr', doApplyType0corr)
        self.setParameter('doApplySysShiftCorr', doApplySysShiftCorr)
        self.setParameter('sysShiftCorrParameter', sysShiftCorrParameter)
        self.setParameter('pfCandCollection', pfCandCollection)
        self.setParameter('doApplyUnclEnergyCalibration', doApplyUnclEnergyCalibration)

        self.apply(process)
Пример #8
0
    def __call__(self,
                 process,
                 electronCollection=None,
                 photonCollection=None,
                 muonCollection=None,
                 tauCollection=None,
                 jetCollection=None,
                 dRjetCleaning=None,
                 jetCorrLabel=None,
                 doApplyChargedHadronSubtraction=None,
                 doSmearJets=None,
                 jetSmearFileName=None,
                 jetSmearHistogram=None,
                 pfCandCollection=None,
                 doApplyUnclEnergyCalibration=None,
                 sfNoPUjetOffsetEnCorr=None,
                 jetCorrPayloadName=None,
                 jetCorrLabelUpToL3=None,
                 jetCorrLabelUpToL3Res=None,
                 jecUncertaintyFile=None,
                 jecUncertaintyTag=None,
                 varyByNsigmas=None,
                 addToPatDefaultSequence=None,
                 outputModule=None,
                 postfix=None):
        JetMEtUncertaintyTools.__call__(
            self,
            process,
            electronCollection=electronCollection,
            photonCollection=photonCollection,
            muonCollection=muonCollection,
            tauCollection=tauCollection,
            jetCollection=jetCollection,
            jetCorrLabel=jetCorrLabel,
            doSmearJets=doSmearJets,
            jetSmearFileName=jetSmearFileName,
            jetSmearHistogram=jetSmearHistogram,
            jetCorrPayloadName=jetCorrPayloadName,
            jetCorrLabelUpToL3=jetCorrLabelUpToL3,
            jetCorrLabelUpToL3Res=jetCorrLabelUpToL3Res,
            jecUncertaintyFile=jecUncertaintyFile,
            jecUncertaintyTag=jecUncertaintyTag,
            varyByNsigmas=varyByNsigmas,
            addToPatDefaultSequence=addToPatDefaultSequence,
            outputModule=outputModule,
            postfix=postfix)
        if doApplyChargedHadronSubtraction is None:
            doApplyChargedHadronSubtraction = self._defaultParameters[
                'doApplyChargedHadronSubtraction'].value
        pfCandCollection = self._initializeInputTag(pfCandCollection,
                                                    'pfCandCollection')
        if doApplyUnclEnergyCalibration is None:
            doApplyUnclEnergyCalibration = self._defaultParameters[
                'doApplyUnclEnergyCalibration'].value
        if sfNoPUjetOffsetEnCorr is None:
            sfNoPUjetOffsetEnCorr = self._defaultParameters[
                'sfNoPUjetOffsetEnCorr'].value

        self.setParameter('doApplyChargedHadronSubtraction',
                          doApplyChargedHadronSubtraction)
        self.setParameter('pfCandCollection', pfCandCollection)
        self.setParameter('doApplyUnclEnergyCalibration',
                          doApplyUnclEnergyCalibration)
        self.setParameter('sfNoPUjetOffsetEnCorr', sfNoPUjetOffsetEnCorr)

        self.apply(process)