CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/PhysicsTools/PatAlgos/python/patTemplate_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("PAT")
00004 
00005 ## MessageLogger
00006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00007 
00008 ## Options and Output Report
00009 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
00010 
00011 ## Source
00012 process.source = cms.Source("PoolSource",
00013     fileNames = cms.untracked.vstring()
00014 )
00015 ## Maximal Number of Events
00016 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
00017 
00018 ## Geometry and Detector Conditions (needed for a few patTuple production steps)
00019 process.load("Configuration.Geometry.GeometryIdeal_cff")
00020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00021 #from Configuration.AlCa.autoCond import autoCond
00022 #process.GlobalTag.globaltag = cms.string( autoCond[ 'startup' ] )
00023 process.GlobalTag.globaltag = cms.string( 'START53_V27::All' )
00024 process.load("Configuration.StandardSequences.MagneticField_cff")
00025 
00026 ## Standard PAT Configuration File
00027 process.load("PhysicsTools.PatAlgos.patSequences_cff")
00028 
00029 ## Output Module Configuration (expects a path 'p')
00030 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContent
00031 process.out = cms.OutputModule("PoolOutputModule",
00032                                fileName = cms.untracked.string('patTuple.root'),
00033                                # save only events passing the full path
00034                                SelectEvents   = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
00035                                # save PAT Layer 1 output; you need a '*' to
00036                                # unpack the list of commands 'patEventContent'
00037                                outputCommands = cms.untracked.vstring('drop *', *patEventContent )
00038                                )
00039 
00040 process.outpath = cms.EndPath(process.out)