-
Notifications
You must be signed in to change notification settings - Fork 0
/
runSiPixelAnalyzerLight.py
125 lines (104 loc) · 5.15 KB
/
runSiPixelAnalyzerLight.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST2")
process.load("FWCore.MessageService.MessageLogger_cfi")
#process.load("Configuration.StandardSequences.Services_cff")
process.load('Configuration.StandardSequences.RawToDigi_cff')
process.load('EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi')
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.source = cms.Source("PoolSource",
# replace 'myfile.root' with the source file you want to use
fileNames = cms.untracked.vstring(
'file:/export/d00/scratch/cfmcginn/RAWSkims/rawSkim_L1Cent05_MERGE.root'
)
)
process.TFileService = cms.Service("TFileService",
fileName = cms.string("histoPixelAnalyzerLight.root"),
closeFileFast = cms.untracked.bool(True)
)
process.GlobalTag = cms.ESSource( "PoolDBESSource",
globaltag = cms.string( "GR_H_V39" ),
RefreshEachRun = cms.untracked.bool( True ),
RefreshOpenIOVs = cms.untracked.bool( False ),
toGet = cms.VPSet(
),
DBParameters = cms.PSet(
authenticationPath = cms.untracked.string( "." ),
connectionRetrialTimeOut = cms.untracked.int32( 60 ),
idleConnectionCleanupPeriod = cms.untracked.int32( 10 ),
messageLevel = cms.untracked.int32( 0 ),
enablePoolAutomaticCleanUp = cms.untracked.bool( False ),
enableConnectionSharing = cms.untracked.bool( True ),
enableReadOnlySessionOnUpdateConnection = cms.untracked.bool( False ),
connectionTimeOut = cms.untracked.int32( 0 ),
connectionRetrialPeriod = cms.untracked.int32( 10 )
),
RefreshAlways = cms.untracked.bool( False ),
connect = cms.string( "frontier://(proxyurl=http://localhost:3128)(serverurl=http://localhost:800\
0/FrontierOnProd)(serverurl=http://localhost:8000/FrontierOnProd)(retrieve-ziplevel=0)/CMS_CONDITIONS\
" ),
ReconnectEachRun = cms.untracked.bool( True ),
BlobStreamerName = cms.untracked.string( "TBufferBlobStreamingService" ),
DumpStat = cms.untracked.bool( False )
)
if 'GlobalTag' in process.__dict__:
from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag
process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCHI2_74_V3')
process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS'
process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/')
for pset in process.GlobalTag.toGet.value():
pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/')
# fix for multi-run processing
process.GlobalTag.RefreshEachRun = cms.untracked.bool( False )
process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False )
process.TrackerDigiGeometryESModule = cms.ESProducer( "TrackerDigiGeometryESModule",
appendToDataLabel = cms.string( "" ),
fromDDD = cms.bool( False ),
trackerGeometryConstants = cms.PSet(
ROCS_X = cms.int32( 0 ),
ROCS_Y = cms.int32( 0 ),
upgradeGeometry = cms.bool( False ),
BIG_PIX_PER_ROC_Y = cms.int32( 2 ),
BIG_PIX_PER_ROC_X = cms.int32( 1 ),
ROWS_PER_ROC = cms.int32( 80 ),
COLS_PER_ROC = cms.int32( 52 )
),
applyAlignment = cms.bool( True ),
alignmentsLabel = cms.string( "" )
)
process.TrackerGeometricDetESModule = cms.ESProducer( "TrackerGeometricDetESModule",
appendToDataLabel = cms.string( "" ),
fromDDD = cms.bool( False )
)
process.siPixelQualityESProducer = cms.ESProducer( "SiPixelQualityESProducer",
ListOfRecordToMerge = cms.VPSet(
cms.PSet( record = cms.string( "SiPixelQualityFromDbRcd" ),
tag = cms.string( "" )
),
cms.PSet( record = cms.string( "SiPixelDetVOffRcd" ),
tag = cms.string( "" )
)
)
)
process.raw2digi_step = cms.Path(process.siPixelDigis)
process.test = cms.EDAnalyzer('SiPixelAnalyzerLight',
src = cms.InputTag("siPixelDigis"),
SelectBx = cms.uint32(0),
CollisionBx = cms.vuint32(2001,
2201,
2401,
2601,
10911,
11111,
11311,
11511,
19821,
20021,
20221,
20421,
28731,
28931,
29131,
29331)
)
process.p = cms.Path(process.test)
process.schedule = cms.Schedule(process.raw2digi_step,process.p)