from HiggsAnalysis.HeavyChHiggsToTauNu.HChTools import addConfigInfo process.infoPath = addConfigInfo(process, options, dataVersion) if dataVersion.isData(): process.HBHENoiseSequence = cms.Sequence() process.commonSequence.replace(process.HBHENoiseFilter, process.HBHENoiseSequence*process.HBHENoiseFilter) import HiggsAnalysis.HeavyChHiggsToTauNu.HChDataSelection as DataSelection DataSelection.addHBHENoiseFilterResultProducer(process, process.HBHENoiseSequence) ################################################################################ # The "golden" version of the signal analysis import HiggsAnalysis.HeavyChHiggsToTauNu.HChSignalAnalysisParameters_cff as param param.overrideTriggerFromOptions(options) param.trigger.triggerSrc.setProcessName(dataVersion.getTriggerProcess()) # Set tau selection mode to 'standard' param.setAllTauSelectionOperatingMode('standard') #param.setAllTauSelectionOperatingMode('tauCandidateSelectionOnly') # Set tau sources to trigger matched tau collections #param.setAllTauSelectionSrcSelectedPatTaus() param.setAllTauSelectionSrcSelectedPatTausTriggerMatched() # Switch to PF2PAT objects #param.changeCollectionsToPF2PAT() param.changeCollectionsToPF2PAT(postfix=PF2PATVersion) # Trigger with scale factors (at the moment hard coded) if applyTriggerScaleFactor and dataVersion.isMC(): param.triggerEfficiencyScaleFactor.mode = "scaleFactor" # Set the data scenario for vertex/pileup weighting
# Add configuration information to histograms.root from HiggsAnalysis.HeavyChHiggsToTauNu.HChTools import addConfigInfo process.infoPath = addConfigInfo(process, options, dataVersion) ################################################################################ # The "golden" version of the alphat analysis # Primary vertex selection from HiggsAnalysis.HeavyChHiggsToTauNu.HChPrimaryVertex import addPrimaryVertexSelection addPrimaryVertexSelection(process, process.commonSequence) import HiggsAnalysis.HeavyChHiggsToTauNu.HChSignalAnalysisParameters_cff as param param.overrideTriggerFromOptions(options) # Set tau selection mode to 'standard' or 'factorized' param.setAllTauSelectionOperatingMode('standard') #param.setAllTauSelectionOperatingMode('factorized') # Set tau sources to trigger matched tau collections #param.setAllTauSelectionSrcSelectedPatTaus() # Set the triggers for trigger efficiency parametrisation param.trigger.triggerTauSelection = param.tauSelectionHPSVeryLooseTauBased.clone( # VeryLoose #param.trigger.triggerTauSelection = param.tauSelectionHPSTightTauBased.clone( # Tight rtauCut=cms.untracked.double(0.0) # No rtau cut for trigger tau ) param.trigger.triggerMETSelection = param.MET.clone( METCut=cms.untracked.double(0.0) # No MET cut for trigger MET ) if (doTriggerParametrisation and not dataVersion.isData()): # 2010 and 2011 scenarios
################################################################################ # The "golden" version of the signal analysis # Primary vertex selection from HiggsAnalysis.HeavyChHiggsToTauNu.HChPrimaryVertex import addPrimaryVertexSelection addPrimaryVertexSelection(process, process.commonSequence) # Import Standard SignalAnalysis Parameters and change accordingly import HiggsAnalysis.HeavyChHiggsToTauNu.HChSignalAnalysisParameters_cff as param param.overrideTriggerFromOptions(options) param.trigger.triggerSrc.setProcessName(dataVersion.getTriggerProcess()) # Set tau selection mode to 'standard' param.setAllTauSelectionOperatingMode("standard") # Set tau sources to non-trigger matched tau collections param.setAllTauSelectionSrcSelectedPatTausTriggerMatched() # param.setAllTauSelectionSrcSelectedPatTaus() if options.tauEmbeddingInput != 0: tauEmbeddingCustomisations.addMuonIsolationEmbeddingForSignalAnalysis(process, process.commonSequence) tauEmbeddingCustomisations.setCaloMetSum(process, process.commonSequence, param, dataVersion) tauEmbeddingCustomisations.customiseParamForTauEmbedding(param, dataVersion) if tauEmbeddingFinalizeMuonSelection: applyIsolation = not doTauEmbeddingMuonSelectionScan additionalCounters.extend( tauEmbeddingCustomisations.addFinalMuonSelection( process, process.commonSequence, param, enableIsolation=applyIsolation )
process.infoPath = addConfigInfo(process, options, dataVersion) ################################################################################ # qcdMeasurementMethod3 module # Primary vertex selection from HiggsAnalysis.HeavyChHiggsToTauNu.HChPrimaryVertex import addPrimaryVertexSelection addPrimaryVertexSelection(process, process.commonSequence) # Import default parameter set and make necessary tweaks import HiggsAnalysis.HeavyChHiggsToTauNu.HChSignalAnalysisParameters_cff as param param.overrideTriggerFromOptions(options) param.trigger.triggerSrc.setProcessName(dataVersion.getTriggerProcess()) # Set tau selection mode (options: 'tauCandidateSelectionOnly', 'tauCandidateSelectionOnlyReversedRtau') # other options (use not recommended here): 'standard' param.setAllTauSelectionOperatingMode('tauCandidateSelectionOnly') # Set tau sources to trigger matched tau collections param.setAllTauSelectionSrcSelectedPatTausTriggerMatched() # Trigger with scale factors (at the moment hard coded) if applyTriggerScaleFactor and dataVersion.isMC(): param.triggerEfficiencyScaleFactor.mode = "scaleFactor" # Set the data scenario for vertex/pileup weighting param.setPileupWeightFor2011(dataVersion, era="EPS", method="intime") # Reweight by true PU distribution param.setDataTriggerEfficiency(dataVersion, era="EPS") #Reminder(from HChSignalAnalysisParameters_cff.py): #def setTriggerPileupFor2011(**kwargs):
process.infoPath = addConfigInfo(process, options, dataVersion) ################################################################################ # The "golden" version of the signal analysis # Primary vertex selection from HiggsAnalysis.HeavyChHiggsToTauNu.HChPrimaryVertex import addPrimaryVertexSelection addPrimaryVertexSelection(process, process.commonSequence) import HiggsAnalysis.HeavyChHiggsToTauNu.HChSignalAnalysisParameters_cff as param param.overrideTriggerFromOptions(options) param.trigger.triggerSrc.setProcessName(dataVersion.getTriggerProcess()) # Set tau selection mode to 'standard' param.setAllTauSelectionOperatingMode("standard") # param.setAllTauSelectionOperatingMode('tauCandidateSelectionOnly') # Set tau sources to trigger matched tau collections # param.setAllTauSelectionSrcSelectedPatTaus() param.setAllTauSelectionSrcSelectedPatTausTriggerMatched() # Trigger with scale factors (at the moment hard coded) if applyTriggerScaleFactor and dataVersion.isMC(): param.triggerEfficiencyScaleFactor.mode = "scaleFactor" # Set the data scenario for vertex/pileup weighting puweight = "Run2011A" if len(options.puWeightEra) > 0: puweight = options.puWeightEra param.setPileupWeightFor2011(dataVersion, era=puweight) # Reweight by true PU distribution