Ejemplo n.º 1
0
# 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
    #param.setEfficiencyTriggersFor2010()
    param.setEfficiencyTriggersFor2011()
    # Settings for the configuration
    param.trigger.selectionType = cms.untracked.string("byParametrisation")


# Set the triggers for trigger efficiencies
# one trigger
#param.setEfficiencyTrigger("HLT_SingleIsoTau20_Trk15_MET25_v4")
# many triggers, efficiencies weighted by their luminosities
#param.setEfficiencyTriggers([
#        ("HLT_SingleIsoTau20_Trk15_MET25_v3", 16.084022481),
#        ("HLT_SingleIsoTau20_Trk15_MET25_v4", 2.270373344),
#        ])
# many triggers, efficiencies weighted by their luminosities, triggers
# and luminosities taken from the multicrab dataset definitions
#param.setEfficiencyTriggersFromMulticrabDatasets([
Ejemplo n.º 2
0
# 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
    #param.setEfficiencyTriggersFor2010()
    param.setEfficiencyTriggersFor2011()
    # Settings for the configuration
    param.trigger.selectionType = cms.untracked.string("byParametrisation")

# Set the data scenario for trigger efficiencies and vertex weighting
#param.setTriggerVertexFor2010()
param.setTriggerVertexFor2011()

# alphat analysis module for the "golden analysis"
process.alphatAnalysis = cms.EDFilter(
    "HPlusAlphatAnalysisProducer",
    trigger=param.trigger,
    primaryVertexSelection=param.primaryVertexSelection,
    GlobalElectronVeto=param.GlobalElectronVeto,
    GlobalMuonVeto=param.GlobalMuonVeto,
    # Change default tau algorithm here as needed