1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
3 |
process = cms.Process("PAT")
|
4 |
|
5 |
## MessageLogger
|
6 |
process.load("FWCore.MessageLogger.MessageLogger_cfi")
|
7 |
|
8 |
## Options and Output Report
|
9 |
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
|
10 |
|
11 |
## Source
|
12 |
from PhysicsTools.PatAlgos.tools.cmsswVersionTools import pickRelValInputFiles
|
13 |
process.source = cms.Source("PoolSource",
|
14 |
fileNames = cms.untracked.vstring(
|
15 |
pickRelValInputFiles( cmsswVersion = 'CMSSW_4_2_0_pre8'
|
16 |
, relVal = 'RelValTTbar'
|
17 |
, globalTag = 'START42_V7'
|
18 |
, numberOfFiles = 1
|
19 |
)
|
20 |
)
|
21 |
)
|
22 |
## Maximal Number of Events
|
23 |
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
|
24 |
|
25 |
## Geometry and Detector Conditions (needed for a few patTuple production steps)
|
26 |
process.load("SLHCUpgradeSimulations.Geometry.Phase1_R39F16_cmsSimIdealGeometryXML_cff")
|
27 |
process.load('SLHCUpgradeSimulations.Geometry.fakeConditions_Phase1_cff')
|
28 |
process.load('SLHCUpgradeSimulations.Geometry.fakeConditions_Phase1_R39F16_cff')
|
29 |
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
|
30 |
from Configuration.PyReleaseValidation.autoCond import autoCond
|
31 |
process.GlobalTag.globaltag = cms.string( autoCond[ 'startup' ] )
|
32 |
process.load("Configuration.StandardSequences.MagneticField_cff")
|
33 |
|
34 |
## Standard PAT Configuration File
|
35 |
process.load("PhysicsTools.PatAlgos.patSequences_cff")
|
36 |
|
37 |
## Output Module Configuration (expects a path 'p')
|
38 |
from PhysicsTools.PatAlgos.patEventContent_cff import patEventContent
|
39 |
process.out = cms.OutputModule("PoolOutputModule",
|
40 |
fileName = cms.untracked.string('patTuple.root'),
|
41 |
# save only events passing the full path
|
42 |
SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
|
43 |
# save PAT Layer 1 output; you need a '*' to
|
44 |
# unpack the list of commands 'patEventContent'
|
45 |
outputCommands = cms.untracked.vstring('drop *', *patEventContent )
|
46 |
)
|
47 |
|
48 |
process.outpath = cms.EndPath(process.out)
|