Ejemplo n.º 1
0
# Generate analyzers which build the desired final states.
final_states = [x.strip() for x in options.channels.split(',')]


def expanded_final_states(input):
    for fs in input:
        if fs in _FINAL_STATE_GROUPS:
            for subfs in _FINAL_STATE_GROUPS[fs].split(','):
                yield subfs.strip()
        else:
            yield fs

print "Building ntuple for final states: %s" % ", ".join(final_states)
for final_state in expanded_final_states(final_states):
    analyzer = make_ntuple(*final_state)
    add_ntuple(final_state, analyzer, process,
               process.schedule, options.eventView)

process.load("FWCore.MessageLogger.MessageLogger_cfi")

process.MessageLogger.cerr.FwkReport.reportEvery = options.reportEvery
process.MessageLogger.categories.append('FSAEventMissingProduct')
# Don't go nuts if there are a lot of missing products.
process.MessageLogger.cerr.FSAEventMissingProduct = cms.untracked.PSet(
    limit=cms.untracked.int32(10)
)

if options.verbose:
    process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True))
if options.passThru:
def expanded_final_states(input):
    for fs in input:
        if fs in _FINAL_STATE_GROUPS:
            for subfs in _FINAL_STATE_GROUPS[fs].split(','):
                yield subfs.strip()
        else:
            yield fs


print "Building ntuple for final states: %s" % ", ".join(final_states)
for final_state in expanded_final_states(final_states):
    zz_mode = (final_state in ['mmmm', 'eeee', 'eemm'])
    analyzer = make_ntuple(*final_state,
                           zz_mode=options.zzMode,
                           svFit=options.svFit,
                           dblhMode=options.dblhMode,
                           runTauSpinner=options.runTauSpinner,
                           skimCuts=options.skimCuts)
    add_ntuple(final_state, analyzer, process, process.schedule,
               options.eventView)

process.load("FWCore.MessageLogger.MessageLogger_cfi")

process.MessageLogger.cerr.FwkReport.reportEvery = options.reportEvery
process.MessageLogger.categories.append('FSAEventMissingProduct')

# Don't go nuts if there are a lot of missing products.
process.MessageLogger.cerr.FSAEventMissingProduct = cms.untracked.PSet(
    limit=cms.untracked.int32(10))

if options.verbose:
Ejemplo n.º 3
0
final_states = [x.strip() for x in options.channels.split(',')]


def expanded_final_states(input):
    for fs in input:
        if fs in _FINAL_STATE_GROUPS:
            for subfs in _FINAL_STATE_GROUPS[fs].split(','):
                yield subfs.strip()
        else:
            yield fs


print "Building ntuple for final states: %s" % ", ".join(final_states)
for final_state in expanded_final_states(final_states):
    zz_mode = (final_state in ['mmmm', 'eeee', 'eemm'])
    analyzer = make_ntuple(*final_state, zz_mode=zz_mode, svFit=options.svFit)
    add_ntuple(final_state, analyzer, process,
               process.schedule, options.eventView)

process.load("FWCore.MessageLogger.MessageLogger_cfi")

process.MessageLogger.cerr.FwkReport.reportEvery = options.reportEvery
process.MessageLogger.categories.append('FSAEventMissingProduct')

# Don't go nuts if there are a lot of missing products.
process.MessageLogger.cerr.FSAEventMissingProduct = cms.untracked.PSet(
    limit=cms.untracked.int32(10)
)

if options.verbose:
    process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True))

def expanded_final_states(input):
    for fs in input:
        if fs in _FINAL_STATE_GROUPS:
            for subfs in _FINAL_STATE_GROUPS[fs].split(','):
                yield subfs.strip()
        else:
            yield fs


print "Building ntuple for final states: %s" % ", ".join(final_states)
for final_state in expanded_final_states(final_states):
    zz_mode = (final_state in ['mmmm', 'eeee', 'eemm'])
    analyzer = make_ntuple(*final_state, zz_mode=options.zzMode,
                            svFit=options.svFit, dblhMode=options.dblhMode,
                            runTauSpinner=options.runTauSpinner, 
                            skimCuts=options.skimCuts)
    add_ntuple(final_state, analyzer, process,
               process.schedule, options.eventView)


process.load("FWCore.MessageLogger.MessageLogger_cfi")

process.MessageLogger.cerr.FwkReport.reportEvery = options.reportEvery
process.MessageLogger.categories.append('FSAEventMissingProduct')

# Don't go nuts if there are a lot of missing products.
process.MessageLogger.cerr.FSAEventMissingProduct = cms.untracked.PSet(
    limit=cms.untracked.int32(10)
)