Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:16:51

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Test")
0004 
0005 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarGENSIMRECO
0006 process.source = cms.Source("PoolSource",
0007   fileNames = filesRelValTTbarGENSIMRECO
0008 )
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0010 
0011 process.MessageLogger = cms.Service("MessageLogger")
0012 
0013 ## ---
0014 ## This is an example of the use of the BasicAnalyzer concept used to exploit C++ classes to do anaysis
0015 ## in full framework or FWLite using the same class. You can find the implementation of this module in
0016 ## PhysicsTools/UtilAlgos/plugins/WrappedEDMuonAnlyzer. You can find the EDAnalyzerWrapper.h class in
0017 ## PhysicsTools/UtilAlgos/interface/EDAnalyzerWrapper.h. You can find the implementation of the
0018 ## BasicMuonAnalyzer class in PhysicsTools/UtilAlgos/interface/BasicMuonAnlyzer.h. You will also find
0019 ## back the input parameters to the module.
0020 process.muonAnalyzer = cms.EDAnalyzer("WrappedEDMuonAnalyzer",
0021   muons = cms.InputTag("muons"),
0022 )
0023 
0024 process.TFileService = cms.Service("TFileService",
0025   fileName = cms.string('analyzeCMSSWHistograms.root')
0026 )
0027 
0028 process.p = cms.Path(process.muonAnalyzer)
0029