-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyZPeak_cfg.py
31 lines (23 loc) · 1.02 KB
/
MyZPeak_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
29
import FWCore.ParameterSet.Config as cms
process = cms.Process("Test")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
# Multiple file should be comma separated
# This is the format for using a remote file
'root://cmseos.fnal.gov//store/user/cmsdas/2020/pre_exercises/Set4/Input/DoubleMuon/slimMiniAOD_data_MuEle_1.root',
# The format for using a local file can be found in the commented line below
# 'file:slimMiniAOD_data_MuEle_1.root'
)
)
process.MessageLogger = cms.Service("MessageLogger")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(10000)
)
process.analyzeBasicPat = cms.EDAnalyzer("MyZPeakAnalyzer",
muonSrc = cms.untracked.InputTag("slimmedMuons"),
elecSrc = cms.untracked.InputTag("slimmedElectrons"),
)
process.TFileService = cms.Service("TFileService",
fileName = cms.string('myZPeakCRAB.root')
)
process.p = cms.Path(process.analyzeBasicPat)