예제 #1
0
    "PoolOutputModule",
    fileName = cms.untracked.string(options.outputFile),
    # Drop per-event meta data from dropped objects
    dropMetaData = cms.untracked.string("ALL"),
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('fixme')
    ),
    outputCommands = cms.untracked.vstring(output_command)
)

# Configure the pat tuple
import FinalStateAnalysis.PatTools.patTupleProduction as tuplizer
tuplize, output_commands = tuplizer.configurePatTuple(
    process, isMC=options.isMC, xSec=options.xSec,
    isAOD=options.isAOD, xSecErr=options.xSecErr,
    puTag=options.puTag, dataset=options.dataset,
    embedded=options.embedded,
    calibrationTarget=options.calibrationTarget
)

if options.globalTag == "":
    raise RuntimeError("Global tag not specified!  Try sourcing environment.sh\n")
else:
    print 'Using globalTag: %s'%options.globalTag

process.GlobalTag.globaltag = cms.string(options.globalTag)

# Count events at the beginning of the pat tuplization
process.load("FinalStateAnalysis.RecoTools.eventCount_cfi")
process.load("FinalStateAnalysis.RecoTools.dqmEventCount_cfi")
예제 #2
0
process.out = cms.OutputModule(
    "PoolOutputModule",
    fileName=cms.untracked.string(options.outputFile),
    # Drop per-event meta data from dropped objects
    dropMetaData=cms.untracked.string("ALL"),
    SelectEvents=cms.untracked.PSet(SelectEvents=cms.vstring('fixme')),
    outputCommands=cms.untracked.vstring(output_command))

# Configure the pat tuple
import FinalStateAnalysis.PatTools.patTupleProduction as tuplizer
tuplize, output_commands = tuplizer.configurePatTuple(
    process,
    isMC=options.isMC,
    xSec=options.xSec,
    isAOD=options.isAOD,
    xSecErr=options.xSecErr,
    puTag=options.puTag,
    dataset=options.dataset,
    embedded=options.embedded,
    calibrationTarget=options.calibrationTarget)

if options.globalTag == "":
    raise RuntimeError(
        "Global tag not specified!  Try sourcing environment.sh\n")
else:
    print 'Using globalTag: %s' % options.globalTag

process.GlobalTag.globaltag = cms.string(options.globalTag)

# Count events at the beginning of the pat tuplization
process.load("FinalStateAnalysis.RecoTools.eventCount_cfi")
예제 #3
0
process.out = cms.OutputModule(
    "PoolOutputModule",
    fileName = cms.untracked.string(options.outputFile),
    # Drop per-event meta data from dropped objects
    dropMetaData = cms.untracked.string("ALL"),
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('fixme')
    ),
    outputCommands = cms.untracked.vstring(output_command)
)

# Configure the pat tuple
import FinalStateAnalysis.PatTools.patTupleProduction as tuplizer
tuplize, output_commands = tuplizer.configurePatTuple(
    process, isMC=options.isMC, xSec=options.xSec, xSecErr=options.xSecErr,
    puTag=options.puTag, dataset=options.dataset,
    target=options.target,
)

for command in output_commands:
    if not command.startswith('drop') and not command.startswith('keep'):
        process.out.outputCommands.append('keep %s' % command)
    else:
        process.out.outputCommands.append(command)

if options.globalTag == "":
    raise RuntimeError("Global tag not specified!  Try sourcing environment.sh\n")

process.GlobalTag.globaltag = cms.string(options.globalTag)

# Count events at the beginning of the pat tuplization