forked from CTPPS/ctpps-offline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
raw_data_chain_test.py
49 lines (38 loc) · 1.41 KB
/
raw_data_chain_test.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
import FWCore.ParameterSet.Config as cms
process = cms.Process("TotemStandaloneRawDataTest")
# minimum of logs
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring(),
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('WARNING')
)
)
# raw data source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/j/jkaspar/public/run273062_ls0001-2_stream.root')
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
# raw-to-digi conversion
process.load("EventFilter.TotemRawToDigi.totemRawToDigi_cff")
# local RP reconstruction chain with standard settings
process.load("RecoCTPPS.Configuration.recoCTPPS_cff")
process.dump = cms.EDAnalyzer("EventContentAnalyzer")
# ntuplizer
process.load("TotemAnalysis.TotemNtuplizer.TotemNtuplizer_cfi")
process.totemNtuplizer.outputFileName = "ntuple.root"
process.p = cms.Path(
process.totemTriggerRawToDigi *
process.totemRPRawToDigi *
process.recoCTPPS *
process.totemNtuplizer
)
# output configuration
from RecoCTPPS.Configuration.RecoCTPPS_EventContent_cff import RecoCTPPSRECO
process.output = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string("file:./reco.root"),
outputCommands = RecoCTPPSRECO.outputCommands
)
process.outpath = cms.EndPath(process.output)