CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/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.StandardSequences.Geometry_cff")
00020 process.load("Configuration.Geometry.GeometryIdeal_cff")
00021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00022 from Configuration.AlCa.autoCond import autoCond
00023 process.GlobalTag.globaltag = cms.string( autoCond[ 'startup' ] )
00024 process.load("Configuration.StandardSequences.MagneticField_cff")
00025 
00026 ## Test JEC from test instances of the global DB
00027 #process.load("PhysicsTools.PatAlgos.patTestJEC_cfi")
00028 
00029 ## Test JEC from local sqlite file
00030 #process.load("PhysicsTools.PatAlgos.patTestJEC_local_cfi")
00031 
00032 ## Standard PAT Configuration File
00033 process.load("PhysicsTools.PatAlgos.patSequences_cff")
00034 
00035 ## Output Module Configuration (expects a path 'p')
00036 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContent
00037 process.out = cms.OutputModule("PoolOutputModule",
00038                                fileName = cms.untracked.string('patTuple.root'),
00039                                # save only events passing the full path
00040                                SelectEvents   = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
00041                                # save PAT Layer 1 output; you need a '*' to
00042                                # unpack the list of commands 'patEventContent'
00043                                outputCommands = cms.untracked.vstring('drop *', *patEventContent )
00044                                )
00045 
00046 process.outpath = cms.EndPath(process.out)