# some of the I/O and grid overhead). The fragment below creates the # following histogram directories # alphatAnalysisTauSelectionShrinkingConeCutBased # alphatAnalysisTauSelectionShrinkingConeTaNCBased # alphatAnalysisTauSelectionCaloTauCutBased # alphatAnalysisTauSelectionHPSTauBased # alphatAnalysisTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: param.addTauIdAnalyses(process, "alphatAnalysis", process.alphatAnalysis, process.commonSequence, additionalCounters) ################################################################################ # The alphat analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the alphat analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # alphatAnalysisJESPlus05 # alphatAnalysisJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses JESs = "%02d" % int(JESVariation * 100)
# some of the I/O and grid overhead). The fragment below creates the # following histogram directories # EWKFakeTauAnalysisTauSelectionShrinkingConeCutBased # EWKFakeTauAnalysisTauSelectionShrinkingConeTaNCBased # EWKFakeTauAnalysisTauSelectionCaloTauCutBased # EWKFakeTauAnalysisTauSelectionHPSTightTauBased # EWKFakeTauAnalysisTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: param.addTauIdAnalyses(process, "EWKFakeTauAnalysis", process.EWKFakeTauAnalysis, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # EWKFakeTauAnalysisJESPlus05 # EWKFakeTauAnalysisJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses JESs = "%02d" % int(JESVariation*100)
# QCDMeasurementTauSelectionShrinkingConeCutBased # QCDMeasurementTauSelectionShrinkingConeTaNCBased # QCDMeasurementTauSelectionCaloTauCutBased # QCDMeasurementTauSelectionHPSTightTauBased # QCDMeasurementTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: module = process.QCDMeasurement.clone() module.Tree.fill = True # attikis (default is False) param.addTauIdAnalyses(process, dataVersion, "QCDMeasurement", module, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # QCDMeasurementCountersJESPlus05 # QCDMeasurementCountersJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation:
# QCDMeasurement_PASJuly11TauSelectionShrinkingConeCutBased # QCDMeasurement_PASJuly11TauSelectionShrinkingConeTaNCBased # QCDMeasurement_PASJuly11TauSelectionCaloTauCutBased # QCDMeasurement_PASJuly11TauSelectionHPSTightTauBased # QCDMeasurement_PASJuly11TauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: module = process.QCDMeasurement_PASJuly11.clone() module.Tree.fill = True #attikis (default is False) param.addTauIdAnalyses(process, "QCDMeasurement_PASJuly11", module, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # QCDMeasurement_PASJuly11CountersJESPlus05 # QCDMeasurement_PASJuly11CountersJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses
# following histogram directories # signalOptimisationTauSelectionShrinkingConeCutBased # signalOptimisationTauSelectionShrinkingConeTaNCBased # signalOptimisationTauSelectionCaloTauCutBased # signalOptimisationTauSelectionHPSTightTauBased # signalOptimisationTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: param.addTauIdAnalyses(process, "signalOptimisation", process.signalOptimisation, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # signalOptimisationJESPlus05 # signalOptimisationJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses
# QCDMeasurementTauSelectionShrinkingConeCutBased # QCDMeasurementTauSelectionShrinkingConeTaNCBased # QCDMeasurementTauSelectionCaloTauCutBased # QCDMeasurementTauSelectionHPSTightTauBased # QCDMeasurementTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: module = process.QCDMeasurement.clone() module.Tree.fill = True #attikis (default is False) param.addTauIdAnalyses(process, dataVersion, "QCDMeasurement", module, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # QCDMeasurementCountersJESPlus05 # QCDMeasurementCountersJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses JESs = "%02d" % int(JESVariation * 100)
# following histogram directories # EWKFakeTauAnalysisTauSelectionShrinkingConeCutBased # EWKFakeTauAnalysisTauSelectionShrinkingConeTaNCBased # EWKFakeTauAnalysisTauSelectionCaloTauCutBased # EWKFakeTauAnalysisTauSelectionHPSTightTauBased # EWKFakeTauAnalysisTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: param.addTauIdAnalyses(process, "EWKFakeTauAnalysis", process.EWKFakeTauAnalysis, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # EWKFakeTauAnalysisJESPlus05 # EWKFakeTauAnalysisJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses
# signalAnalysisTauSelectionShrinkingConeCutBased # signalAnalysisTauSelectionShrinkingConeTaNCBased # signalAnalysisTauSelectionCaloTauCutBased # signalAnalysisTauSelectionHPSTightTauBased # signalAnalysisTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: module = process.signalAnalysis.clone() module.Tree.fill = False param.addTauIdAnalyses(process, dataVersion, "signalAnalysis", module, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # signalAnalysisJESPlus05 # signalAnalysisJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis def addJESVariation(name, doJetVariation, metVariation): jetVariationMode="all" module = getattr(process, name)
# signalAnalysisTauSelectionShrinkingConeCutBased # signalAnalysisTauSelectionShrinkingConeTaNCBased # signalAnalysisTauSelectionCaloTauCutBased # signalAnalysisTauSelectionHPSTightTauBased # signalAnalysisTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: module = process.signalAnalysis.clone() module.Tree.fill = False param.addTauIdAnalyses(process, dataVersion, "signalAnalysis", module, process.commonSequence, additionalCounters) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # signalAnalysisJESPlus05 # signalAnalysisJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis def addJESVariation(name, doJetVariation, metVariation):
# some of the I/O and grid overhead). The fragment below creates the # following histogram directories # alphatAnalysisTauSelectionShrinkingConeCutBased # alphatAnalysisTauSelectionShrinkingConeTaNCBased # alphatAnalysisTauSelectionCaloTauCutBased # alphatAnalysisTauSelectionHPSTauBased # alphatAnalysisTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: param.addTauIdAnalyses(process, "alphatAnalysis", process.alphatAnalysis, process.commonSequence, additionalCounters) ################################################################################ # The alphat analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the alphat analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # alphatAnalysisJESPlus05 # alphatAnalysisJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: # In principle here could be more than two JES variation analyses JESs = "%02d" % int(JESVariation*100)
# following histogram directories # signalOptimisationTauSelectionShrinkingConeCutBased # signalOptimisationTauSelectionShrinkingConeTaNCBased # signalOptimisationTauSelectionCaloTauCutBased # signalOptimisationTauSelectionHPSTightTauBased # signalOptimisationTauSelectionCombinedHPSTaNCBased # # The corresponding Counter directories have "Counters" postfix, and # cms.Paths "Path" postfix. The paths are run independently of each # other. It is important to give the process.commonSequence for the # function, so that it will be run before the analysis module in the # Path. Then, in case PAT is run on the fly, the framework runs the # analysis module after PAT (and runs PAT only once). if doAllTauIds: param.addTauIdAnalyses( process, "signalOptimisation", process.signalOptimisation, process.commonSequence, additionalCounters ) ################################################################################ # The signal analysis with jet energy scale variation # # If the flag is true, create two paths for the variation in plus and # minus, and clone the signal analysis and counter modules to the # paths. The tau, jet and MET collections to adjust are taken from the # configuration of the golden analysis. The fragment below creates the # following histogram directories # signalOptimisationJESPlus05 # signalOptimisationJESMinus05 from HiggsAnalysis.HeavyChHiggsToTauNu.JetEnergyScaleVariation import addJESVariationAnalysis if doJESVariation: