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) return
def buildModule(self, dataPath, ewkPath, normFactors, calculateQCDNormalizationSyst, normDataSrc=None, normEWKSrc=None): # Create containers for results Verbose("Create containers for results", True) myModule = pseudoMultiCrabCreator.PseudoMultiCrabModule( self._dsetMgr, self._era, self._searchMode, self._optimizationMode, self._systematicVariation, opts.analysisNameSaveAs) Print("Obtaining results", True) self._nominalResult = qcdInvertedResult.QCDInvertedResultManager( dataPath, ewkPath, self._dsetMgr, self._luminosity, self.getModuleInfoString(), normFactors, calculateQCDNormalizationSyst, opts.normDataSrc, opts.normEwkSrc, self._opts.useInclusiveNorm, opts.verbose) Verbose("Storing results", True) myModule.addPlots(self._nominalResult.getShapePlots(), self._nominalResult.getShapePlotLabels()) self._outputCreator.addModule(myModule)
def buildModule(self, dataPath, ewkPath, normFactors, calculateQCDNormalizationSyst, normDataSrc=None, normEWKSrc=None): # Create containers for results self.Verbose("Create containers for results", True) myModule = pseudoMultiCrabCreator.PseudoMultiCrabModule( self._dsetMgr, self._era, self._searchMode, self._optimizationMode, self._systematicVariation, opts.analysisNameSaveAs, opts.verbose) self.Verbose("Obtain results from the results manager", True) self._nominalResult = qcdInvertedResult.QCDInvertedResultManager( dataPath, ewkPath, self._dsetMgr, self._luminosity, self.getModuleInfoString(), normFactors, calculateQCDNormalizationSyst, opts.normDataSrc, opts.normEwkSrc, self._opts.useInclusiveNorm, keyList=["AllSelections"], verbose=opts.verbose) self.Verbose( "Add all plots to be written in the peudo-dataset beind created", True) myModule.addPlots(self._nominalResult.getShapePlots(), self._nominalResult.getShapePlotLabels()) self._outputCreator.addModule(myModule) return