def buildQCDQuarkGluonWeightingSystModule(self, dataPath, ewkPath, normFactorsUp, normFactorsDown, normalizationPoint): # Up variation of fake weighting mySystModulePlus = pseudoMultiCrabCreator.PseudoMultiCrabModule( self._dsetMgr, self._era, self._searchMode, self._optimizationMode, "SystVarFakeWeightingPlus") self._fakeWeightingPlusResult = qcdInvertedResult.QCDInvertedResultManager( dataPath, ewkPath, self._dsetMgr, self._luminosity, self.getModuleInfoString(), normFactorsUp, optionCalculateQCDNormalizationSyst=False, optionUseInclusiveNorm=self._opts.useInclusiveNorm) myModule.addPlots(self._fakeWeightingPlusResult.getShapePlots(), self._fakeWeightingPlusResult.getShapePlotLabels()) self._outputCreator.addModule(mySystModulePlus) # Down variation of fake weighting mySystModuleMinus = pseudoMultiCrabCreator.PseudoMultiCrabModule( dself._dsetMgr, self._era, self._searchMode, self._optimizationMode, "SystVarFakeWeightingMinus") self._fakeWeightingMinusResult = qcdInvertedResult.QCDInvertedResultManager( dataPath, ewkPath, self._dsetMgr, self._myLuminosity, self.getModuleInfoString(), normFactorsDown, optionCalculateQCDNormalizationSyst=False) myModule.addPlots(self._fakeWeightingMinusResult.getShapePlots(), self._fakeWeightingMinusResult.getShapePlotLabels()) self._outputCreator.addModule(mySystModuleMinus)
def buildModule(self, dataPath, ewkPath, normFactors, calculateQCDNormalizationSyst, normDataSrc=None, normEWKSrc=None): # Create containers for results myModule = pseudoMultiCrabCreator.PseudoMultiCrabModule( self._dsetMgr, self._era, self._searchMode, self._optimizationMode, self._systematicVariation) # Obtain results self._nominalResult = qcdInvertedResult.QCDInvertedResultManager( dataPath, ewkPath, self._dsetMgr, self._luminosity, self.getModuleInfoString(), normFactors, optionCalculateQCDNormalizationSyst=calculateQCDNormalizationSyst, normDataSrc=normDataSrc, normEWKSrc=normEWKSrc, optionUseInclusiveNorm=self._opts.useInclusiveNorm) # Store results myModule.addPlots(self._nominalResult.getShapePlots(), self._nominalResult.getShapePlotLabels()) self._outputCreator.addModule(myModule)