1 |
vchetlur |
1.1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
|
|
3 |
|
|
process = cms.Process("Demo")
|
4 |
|
|
|
5 |
|
|
process.load("FWCore.MessageService.MessageLogger_cfi")
|
6 |
|
|
|
7 |
|
|
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
|
8 |
|
|
|
9 |
|
|
process.source = cms.Source("PoolSource",
|
10 |
|
|
# replace 'myfile.root' with the source file you want to use
|
11 |
|
|
fileNames = cms.untracked.vstring(
|
12 |
|
|
'/castor/cern.ch/user/v/vchetlur/PATTutorial.root'
|
13 |
|
|
)
|
14 |
|
|
)
|
15 |
|
|
|
16 |
vchetlur |
1.2 |
process.demo = cms.EDAnalyzer('QCDPATExample',
|
17 |
vchetlur |
1.1 |
jetCollection = cms.untracked.InputTag("allLayer1Jets")
|
18 |
|
|
)
|
19 |
|
|
|
20 |
|
|
process.TFileService = cms.Service("TFileService",
|
21 |
|
|
fileName = cms.string('PATTutorial.root')
|
22 |
|
|
)
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
process.p = cms.Path(process.demo)
|