-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathreadClusters_cfg.py
103 lines (87 loc) · 3.43 KB
/
readClusters_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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
# Last update: new version for python
#
#
import FWCore.ParameterSet.Config as cms
process = cms.Process("cluTest")
process.load("Configuration.StandardSequences.GeometryDB_cff")
process.load("Configuration.StandardSequences.MagneticField_38T_cff")
import HLTrigger.HLTfilters.hltHighLevel_cfi as hlt
# accept if 'path_1' succeeds
process.hltfilter = hlt.hltHighLevel.clone(
# Min-Bias
# HLTPaths = ['HLT_Physics_v*'],
# HLTPaths = ['HLT_Random_v*'],
HLTPaths = ['HLT_ZeroBias_*'],
# HLTPaths = ['HLT_PAZeroBias*'],
# HLTPaths = ['HLT_PARandom*'],
# HLTPaths = ['HLT_PAMinBias*'],
# Commissioning: HLT_L1_BptxXOR_BscMinBiasOR
# HLTPaths = ['HLT_L1_BptxXOR_BscMinBiasOR'],
# Zero-Bias : HLT_L1_BPTX, HLT_L1_BPTX_PlusOnly, HLT_L1_BPTX_MinusOnly, HLT_ZeroBias
# HLTPaths = ['HLT_L1_BPTX','HLT_ZeroBias','HLT_L1_BPTX_MinusOnly','HLT_L1_BPTX_PlusOnly'],
# HLTPaths = ['p*'],
# HLTPaths = ['path_?'],
andOr = True, # False = and, True=or
throw = False
)
# to select PhysicsBit
process.load('HLTrigger.special.hltPhysicsDeclared_cfi')
process.hltPhysicsDeclared.L1GtReadoutRecordTag = 'gtDigis'
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('siPixelClusters'),
destinations = cms.untracked.vstring('cout'),
# destinations = cms.untracked.vstring("log","cout"),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('WARNING')
# threshold = cms.untracked.string('ERROR')
)
# log = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG')
# )
)
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
# fill 3273 run 206940
# "/store/data/Run2012D/MinimumBias/RECO/PromptReco-v1/000/206/940/FA55823C-312C-E211-94AB-001D09F29533.root",
# for MC
'file:clus.root'
# 'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100/clus/clus1.root'
# 'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100/rechits/rechits1.root'
# 'file:../../../../../CMSSW_7_0_0_pre8/src/EventFilter/SiPixelRawToDigi/test/digis.root'
# 'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/rechits/rechits2_postls171.root'
# 'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/rechits/rechits2_mc71.root'
)
)
# for data
#process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange('206940:0-206940:1027')
process.TFileService = cms.Service("TFileService",
fileName = cms.string('histo.root')
)
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
# Choose the global tag here:
# 2012
#process.GlobalTag.globaltag = 'GR_P_V40::All'
# MC 2013
# process.GlobalTag.globaltag = 'MC_70_V1::All'
# DATA 2014
process.GlobalTag.globaltag = 'PRE_R_71_V3::All'
# MC 2014
#process.GlobalTag.globaltag = 'PRE_STA71_V4::All'
process.analysis = cms.EDAnalyzer("ReadPixClusters",
Verbosity = cms.untracked.bool(True),
src = cms.InputTag("siPixelClusters"),
)
# for data
#process.p = cms.Path(process.hltPhysicsDeclared*process.hltfilter*process.analysis)
#process.p = cms.Path(process.hltPhysicsDeclared*process.analysis)
# for MC
process.p = cms.Path(process.analysis)
# define an EndPath to analyze all other path results
#process.hltTrigReport = cms.EDAnalyzer( 'HLTrigReport',
# HLTriggerResults = cms.InputTag( 'TriggerResults','','' )
#)
#process.HLTAnalyzerEndpath = cms.EndPath( process.hltTrigReport )