CMS 3D CMS Logo

ctppsRawToDigi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # ---------- trigger data ----------
4 from EventFilter.CTPPSRawToDigi.totemTriggerRawToDigi_cfi import totemTriggerRawToDigi
5 totemTriggerRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
6 
7 
8 
9 # ---------- Si strips ----------
10 totemDAQMappingESSourceXML_TrackingStrip = cms.ESSource("TotemDAQMappingESSourceXML",
11  verbosity = cms.untracked.uint32(0),
12  subSystem = cms.untracked.string("TrackingStrip"),
13  configuration = cms.VPSet(
14  # 2016, before TS2
15  cms.PSet(
16  validityRange = cms.EventRange("1:min - 280385:max"),
17  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_2016_to_fill_5288.xml"),
18  maskFileNames = cms.vstring()
19  ),
20  # 2016, during TS2
21  cms.PSet(
22  validityRange = cms.EventRange("280386:min - 281600:max"),
23  mappingFileNames = cms.vstring(),
24  maskFileNames = cms.vstring()
25  ),
26  # 2016, after TS2
27  cms.PSet(
28  validityRange = cms.EventRange("281601:min - 290872:max"),
29  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_2016_from_fill_5330.xml"),
30  maskFileNames = cms.vstring()
31  ),
32  # 2017
33  cms.PSet(
34  validityRange = cms.EventRange("290873:min - 999999999:max"),
35  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_2017.xml"),
36  maskFileNames = cms.vstring()
37  )
38  )
39 )
40 
41 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
42 totemRPRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
43 
44 # various error/warning/info output may be enabled with these flags
45 # totemRPRawToDigi.RawUnpacking.verbosity = 1
46 # totemRPRawToDigi.RawToDigi.verbosity = 1 # or higher number for more output
47 # totemRPRawToDigi.RawToDigi.printErrorSummary = 1
48 # totemRPRawToDigi.RawToDigi.printUnknownFrameSummary = 1
49 
50 
51 
52 # ---------- diamonds ----------
53 totemDAQMappingESSourceXML_TimingDiamond = cms.ESSource("TotemDAQMappingESSourceXML",
54  verbosity = cms.untracked.uint32(0),
55  subSystem = cms.untracked.string("TimingDiamond"),
56  configuration = cms.VPSet(
57  # 2016, before diamonds inserted in DAQ
58  cms.PSet(
59  validityRange = cms.EventRange("1:min - 283819:max"),
60  mappingFileNames = cms.vstring(),
61  maskFileNames = cms.vstring()
62  ),
63  # 2016, after diamonds inserted in DAQ
64  cms.PSet(
65  validityRange = cms.EventRange("283820:min - 292520:max"),
66  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_timing_diamond.xml"),
67  maskFileNames = cms.vstring()
68  ),
69  # 2017
70  cms.PSet(
71  validityRange = cms.EventRange("292521:min - 999999999:max"),
72  mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_timing_diamond_2017.xml"),
73  maskFileNames = cms.vstring()
74  )
75  )
76 )
77 
78 from EventFilter.CTPPSRawToDigi.ctppsDiamondRawToDigi_cfi import ctppsDiamondRawToDigi
79 ctppsDiamondRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
80 
81 
82 
83 # ---------- pixels ----------
84 
85 from EventFilter.CTPPSRawToDigi.ctppsPixelRawToDigi_cfi import ctppsPixelDigis
86 ctppsPixelDigis.InputLabel = cms.InputTag("rawDataCollector")
87 
88 # raw-to-digi sequence
89 ctppsRawToDigi = cms.Sequence(
90  totemTriggerRawToDigi *
91  totemRPRawToDigi *
92  ctppsDiamondRawToDigi*
93  ctppsPixelDigis
94 )