-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_raw2digi_daq_db.py
123 lines (100 loc) · 7.39 KB
/
run_raw2digi_daq_db.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
import FWCore.ParameterSet.Config as cms
process = cms.Process("myCTPPSRawToDigi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
from CondCore.CondDB.CondDB_cfi import *
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
CondDB.clone(
connect = cms.string('sqlite_file:CondTools/CTPPS/test/CTPPSPixel_DAQMapping_AnalysisMask.db')),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('CTPPSPixelDAQMappingRcd'),
tag = cms.string("PixelDAQMapping"),
label = cms.untracked.string("RPix")
),
cms.PSet(
record = cms.string('CTPPSPixelAnalysisMaskRcd'),
tag = cms.string("PixelAnalysisMask"),
label = cms.untracked.string("RPix")
)
)
)
process.load("Configuration.StandardSequences.Services_cff")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
#process.source = cms.Source("PoolSource",
#labelRawDataLikeMC = cms.untracked.bool(False),
#fileNames = cms.untracked.vstring(
#'file:./run292996_FF.root'
# ),
#duplicateCheckMode = cms.untracked.string("checkEachFile")
#)
process.source = cms.Source("NewEventStreamFileReader",
fileNames = cms.untracked.vstring(
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0310_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0311_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0312_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0313_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0314_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0315_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0316_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0317_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0318_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0319_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0320_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0321_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0322_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0323_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0324_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0325_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0326_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0327_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0328_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0329_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0330_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0331_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0332_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0333_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0334_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0335_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0336_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0337_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0338_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0339_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0340_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0341_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0342_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0343_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0344_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0345_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0346_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0347_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0348_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0349_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0350_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0351_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0352_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0353_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0354_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0355_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0356_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0357_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0358_streamExpress_StorageManager.dat',
'file:/eos/cms/store/t0streamer/Data/Express/000/293/765/run293765_ls0359_streamExpress_StorageManager.dat'
),
inputFileTransitionsEachEvent = cms.untracked.bool(True)
#firstEvent = cms.untracked.uint64(10123456835)
)
process.load("EventFilter.CTPPSRawToDigi.ctppsPixelRawToDigi_cfi")
#process.ctppsPixelDigis.InputLabel = 'source'
process.ctppsPixelDigis.InputLabel = 'rawDataCollector'
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('ctppsPixelDigis'),
destinations = cms.untracked.vstring('r2dFF'),
r2dFF = cms.untracked.PSet( threshold = cms.untracked.string('ERROR'))
)
process.out = cms.OutputModule("PoolOutputModule",
# fileName = cms.untracked.string('file:digis_PixelAlive_1462_2_RAW.root'),
fileName = cms.untracked.string('file:digis_run293765_RAW_FF_stream.root'),
outputCommands = cms.untracked.vstring("keep *", "drop FEDRawDataCollection_*__*")
)
process.p = cms.Path(process.ctppsPixelDigis)
process.ep = cms.EndPath(process.out)