Exemplo n.º 1
0
        name = 'Leg1Leg2', nicename='Leg 1-Leg 2',
        index1 = 0, index2 = 1
    ),
    PSetTemplate(selectors.topology.z_veto).replace(
        name = 'Leg1Leg3', nicename='Leg 1-Leg 3',
        index1 = 0, index2 = 2
    ),
    PSetTemplate(selectors.topology.z_veto).replace(
        name = 'Leg2Leg3', nicename='Leg 2-Leg 3',
        index1 = 1, index2 = 2
    ),

    PSetTemplate(selectors.extras.bjet_veto).replace(
        name = 'finalState', nicename='Final State',
        pt_threshold = common['bveto_pt_threshold'], eta_threshold='2.5',
        btag_threshold = common['btag_threshold']),
)

###########################################################################
# Define plots
###########################################################################

from FinalStateAnalysis.Selectors.plotBuilder import makePlots
all_plots, ntuple = makePlots(leg1, leg2, leg3)

# Split into OS/SS regions
plots = cms.PSet(
    histos = cms.VPSet(),
    ntuple = ntuple,
)
Exemplo n.º 2
0
    PSetTemplate(selectors.topology.descending_phi).replace(
        name = 'TagMuonID', nicename = 'Muon 1 is TagMuon',
        getter1 = mu_leg1['getter'], getter2 = mu_leg2['getter']
    ),

    # Offline cuts on tag muon
    PSetTemplate(selectors.candidate.eta).replace(
        threshold = '2.1', **mu_leg1),
    PSetTemplate(selectors.candidate.pt).replace(
        threshold = '15', **mu_leg1),
    # Require WWID on the tag muon
    PSetTemplate(selectors.muons.id).replace(
        muID = 'WWID', **mu_leg1),
)

mm_plots, mm_ntuple = makePlots(mu_leg1, mu_leg2)

# Analyze MuMu states
process.mm = cms.PSet(
    process.common,
    src = cms.InputTag('finalStateMuMu'),
    analysis = cms.PSet(
        ignore = process.steering.ignored_cuts,
        final = cms.PSet(
            sort = cms.string('daughter(2).pt'),
            take = cms.uint32(1),
            plot = cms.PSet(histos = cms.VPSet(), ntuple = mm_ntuple)
        ),
        selections = mm_selections
    )
)