import FWCore.ParameterSet.Config as cms process = cms.Process("MyAnalyzer") process.load("FWCore.MessageService.MessageLogger_cfi") process.load("MyAnalyzer.MyAnalyzer.myanalyzer_cfi") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:events.root') ) process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100)) process.myAnalyzer = cms.EDAnalyzer('MyAnalyzer', eventNumber = cms.untracked.int32(10)) process.path = cms.Path(process.myAnalyzer) process.schedule = cms.Schedule(process.path)In this example, a module named MyAnalyzer is being configured to analyze events in a specific root file. The myanalyzer_cfi file contains the definition of the module and the configuration parameters that can be set in the python configuration file. The package library for FWCore.ParameterSet Config EDAnalyzer is part of the CMS offline software framework and is included in the CMSSW software release.