Example #1
0
def _setInputFileType(process, filetype, **kwargs):
    # when running over RECO samples, produce PAT-tuple
    if filetype == 'RECO' or filetype == 'AOD':
        patTupleProductionSequenceName = "producePatTuple%s" % kwargs['channel']
        if patTupleProductionSequenceName.find('_') != -1:
            patTupleProductionSequenceName = patTupleProductionSequenceName[:patTupleProductionSequenceName.find('_')]
        patTupleProductionSequenceName += "Specific"
        if hasattr(process, patTupleProductionSequenceName) and hasattr(process, "producePatTupleAll"):
            patTupleProductionSequence = getattr(process, patTupleProductionSequenceName)
            process.p.replace(patTupleProductionSequence, process.producePatTupleAll)
        if filetype == 'AOD':
            switchToAOD.switchToAOD(process)
Example #2
0
def _setInputFileType(process, filetype, **kwargs):
    # when running over RECO samples, produce PAT-tuple
    if filetype == 'RECO' or filetype == 'AOD':
        patTupleProductionSequenceName = "producePatTuple%s" % kwargs['channel']
        if patTupleProductionSequenceName.find('_') != -1:
            patTupleProductionSequenceName = patTupleProductionSequenceName[:
                                                                            patTupleProductionSequenceName
                                                                            .
                                                                            find(
                                                                                '_'
                                                                            )]
        patTupleProductionSequenceName += "Specific"
        if hasattr(process, patTupleProductionSequenceName) and hasattr(
                process, "producePatTupleAll"):
            patTupleProductionSequence = getattr(
                process, patTupleProductionSequenceName)
            process.p.replace(patTupleProductionSequence,
                              process.producePatTupleAll)
        if filetype == 'AOD':
            switchToAOD.switchToAOD(process)
Example #3
0
#--------------------------------------------------------------------------------

#--------------------------------------------------------------------------------
#
process.producePatTupleAll = cms.Sequence(process.producePatTuple + process.producePatTupleAHtoMuTauSpecific)
#
# define "hook" for enabling/disabling production of PAT-tuple event content,
# depending on whether RECO/AOD or PAT-tuples are used as input for analysis
#
#__#patTupleProduction#
if not hasattr(process, "isBatchMode"):
    process.p.replace(process.producePatTupleAHtoMuTauSpecific, process.producePatTuple + process.producePatTupleAHtoMuTauSpecific)
#--------------------------------------------------------------------------------

#process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )

# Remove the PFTaus (call remove until it returns false)
if disableReRunningTaus:
    print "Disabling PFTau sequence re-running"
    while process.p.remove(process.PFTau): pass
    print process.ewkTauId

# print-out all python configuration parameter information
#print process.dumpPython()
print "Disabling MUON SCALE CORRECTION"
process.patMuonsMuScleFitCorrectedMomentum.doApplyCorrection = cms.bool(False)

# restrict input to AOD event content
from TauAnalysis.Configuration.tools.switchToAOD import switchToAOD
switchToAOD(process)
Example #4
0
process.producePatTupleAll = cms.Sequence(
    process.producePatTuple + process.producePatTupleAHtoMuTauSpecific)
#
# define "hook" for enabling/disabling production of PAT-tuple event content,
# depending on whether RECO/AOD or PAT-tuples are used as input for analysis
#
#__#patTupleProduction#
if not hasattr(process, "isBatchMode"):
    process.p.replace(
        process.producePatTupleAHtoMuTauSpecific,
        process.producePatTuple + process.producePatTupleAHtoMuTauSpecific)
#--------------------------------------------------------------------------------

#process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )

# Remove the PFTaus (call remove until it returns false)
if disableReRunningTaus:
    print "Disabling PFTau sequence re-running"
    while process.p.remove(process.PFTau):
        pass
    print process.ewkTauId

# print-out all python configuration parameter information
#print process.dumpPython()
print "Disabling MUON SCALE CORRECTION"
process.patMuonsMuScleFitCorrectedMomentum.doApplyCorrection = cms.bool(False)

# restrict input to AOD event content
from TauAnalysis.Configuration.tools.switchToAOD import switchToAOD
switchToAOD(process)