Beispiel #1
0
#from CMGTools.Common.Tools.getGlobalTag import getGlobalTag
### OLD way: process.GlobalTag.globaltag = getGlobalTag( runOnMC, runOld5XGT )
#process.GlobalTag.globaltag = getGlobalTagByDataset( runOnMC, datasetInfo[1])

print 'Global tag       : ', process.GlobalTag.globaltag
###

########################################################
## Below, stuff that you probably don't want to modify
########################################################

## Geometry and Detector Conditions (needed for a few patTuple production steps)

## Get the schedule
from CMGTools.Common.PAT.patCMGSchedule_cff import getSchedule
process.schedule = getSchedule(process, runOnMC, runOnFastSim)
## Add filters to the schedule
process.schedule.append(process.ZToEEskimPath)
process.schedule.append(process.ZToMUMUskimPath)
process.schedule.append(process.WToENUskimPath)
process.schedule.append(process.WToMUNUskimPath)
process.schedule.append(process.JetMETskimPath)

## Also add the TOBTEC Fakes Filter
process.load("KStenson.TrackingFilters.tobtecfakesfilter_cfi")
print process.tobtecfakesfilter
process.tobtecfakesfilterPath = cms.Path(~process.tobtecfakesfilter)
process.schedule.append(process.tobtecfakesfilterPath)

## Close the schedule
process.schedule.append(process.outpath)
Beispiel #2
0
########################################################
## Below, stuff that you probably don't want to modify
########################################################









## Geometry and Detector Conditions (needed for a few patTuple production steps)

from CMGTools.Common.PAT.patCMGSchedule_cff import getSchedule
process.schedule = getSchedule(process, runOnMC)
process.schedule.append( process.outpath )

process.load("Configuration.StandardSequences.Geometry_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.autoCond import autoCond
process.GlobalTag.globaltag = cms.string( autoCond[ 'startup' ] )
process.load("Configuration.StandardSequences.MagneticField_cff")

print 'Global tag       : ', process.GlobalTag.globaltag

## MessageLogger
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 10

## Options and Output Report
process.p += process.postPathCounter

pathsplit = str(process.p).split("+")
for module in pathsplit:
  print module

########################################################
## Below, stuff that you probably don't want to modify
########################################################



## Geometry and Detector Conditions (needed for a few patTuple production steps)

from CMGTools.Common.PAT.patCMGSchedule_cff import getSchedule
process.schedule = getSchedule(process, runOnMC, runOnFastSim)

## MessageLogger
process.load("FWCore.MessageLogger.MessageLogger_cfi")
#process.MessageLogger.cerr.FwkReport.reportEvery = 10

## Options and Output Report
#process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )

print sep_line

print 'Fastjet instances (dominating our processing time...):'
from CMGTools.Common.Tools.visitorUtils import SeqVisitor
v = SeqVisitor('FastjetJetProducer')
process.p.visit(v)
Beispiel #4
0
    process.demo.buffers.remove('edmTriggerResultsHelper1')

##### Sequence

print 'Global tag       : ', process.GlobalTag.globaltag

process.p = cms.Path()
process.schedule = cms.Schedule(process.p)
if runPATCMG:
  process.load('CMGTools.Common.PAT.addFilterPaths_cff')
  process.p = cms.Path(
    process.PATCMGSequence + 
    process.PATCMGJetCHSSequence 
  )
  from CMGTools.Common.PAT.patCMGSchedule_cff import getSchedule
  process.schedule = getSchedule(process, runOnMC, False)


if runOnMC==True:
    #process.tnmc1 = cms.Sequence(process.razorMJObjectSequence+process.susyGenSequence+process.PATCMGJetSequenceAK7CHS+process.PATCMGJetSequenceCA8CHS+process.PATCMGJetSequenceAK7CHSpruned+process.PATCMGJetSequenceCA8CHSpruned+process.demo)
    process.tnmc1 = cms.Sequence(process.razorMJObjectSequence+process.susyGenSequence+process.PATCMGJetSequenceCA8CHS+process.PATCMGJetSequenceCA8CHSpruned+process.demo)
else:
    #process.tnmc1 = cms.Sequence(process.razorMJObjectSequence+process.PATCMGJetSequenceAK7CHS+process.PATCMGJetSequenceCA8CHS+process.PATCMGJetSequenceAK7CHSpruned+process.PATCMGJetSequenceCA8CHSpruned+process.demo)
    process.tnmc1 = cms.Sequence(process.razorMJObjectSequence+process.PATCMGJetSequenceCA8CHS+process.PATCMGJetSequenceCA8CHSpruned+process.demo)
process.p += process.tnmc1

##### HCAL laser filter for 2012

if not runOnMC:
    process.load("Ntuples.TNMc1.hcallasereventfilter2012_cfi")
    #inputfilelist=["data/AllBadHCALLaser.txt"]