-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
cmsswWithPythonConfig_cfg.py
29 lines (22 loc) · 1.16 KB
/
cmsswWithPythonConfig_cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import FWCore.ParameterSet.Config as cms
process = cms.Process("Test")
from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarGENSIMRECO
process.source = cms.Source("PoolSource",
fileNames = filesRelValProdTTbarGENSIMRECO
)
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
process.MessageLogger = cms.Service("MessageLogger")
## ---
## This is an example of the use of the BasicAnalyzer concept used to exploit C++ classes to do anaysis
## in full framework or FWLite using the same class. You can find the implementation of this module in
## PhysicsTools/UtilAlgos/plugins/WrappedEDMuonAnlyzer. You can find the EDAnalyzerWrapper.h class in
## PhysicsTools/UtilAlgos/interface/EDAnalyzerWrapper.h. You can find the implementation of the
## BasicMuonAnalyzer class in PhysicsTools/UtilAlgos/interface/BasicMuonAnlyzer.h. You will also find
## back the input parameters to the module.
process.muonAnalyzer = cms.EDAnalyzer("WrappedEDMuonAnalyzer",
muons = cms.InputTag("muons"),
)
process.TFileService = cms.Service("TFileService",
fileName = cms.string('analyzeCMSSWHistograms.root')
)
process.p = cms.Path(process.muonAnalyzer)