CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 # ---------- Si strips ----------
8 totemDAQMappingESSourceXML_TrackingStrip = cms.ESSource("TotemDAQMappingESSourceXML",
9  verbosity = cms.untracked.uint32(0),
10  subSystem = cms.untracked.string("TrackingStrip"),
11  configuration = cms.VPSet(
12  # 2016, before TS2
13  cms.PSet(
14  validityRange = cms.EventRange("1:min - 280385:max"),
15  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2016_to_fill_5288.xml"),
16  maskFileNames = cms.vstring()
17  ),
18  # 2016, during TS2
19  cms.PSet(
20  validityRange = cms.EventRange("280386:min - 281600:max"),
21  mappingFileNames = cms.vstring(),
22  maskFileNames = cms.vstring()
23  ),
24  # 2016, after TS2
25  cms.PSet(
26  validityRange = cms.EventRange("281601:min - 290872:max"),
27  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2016_from_fill_5330.xml"),
28  maskFileNames = cms.vstring()
29  ),
30  # 2017
31  cms.PSet(
32  validityRange = cms.EventRange("290873:min - 311625:max"),
33  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2017.xml"),
34  maskFileNames = cms.vstring()
35  ),
36  # 2018
37  cms.PSet(
38  validityRange = cms.EventRange("311626:min - 999999999:max"),
39  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2018.xml"),
40  maskFileNames = cms.vstring()
41  )
42  )
43 )
44 
45 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
46 totemRPRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
47 
48 # various error/warning/info output may be enabled with these flags
49 # totemRPRawToDigi.RawUnpacking.verbosity = 1
50 # totemRPRawToDigi.RawToDigi.verbosity = 1 # or higher number for more output
51 # totemRPRawToDigi.RawToDigi.printErrorSummary = 1
52 # totemRPRawToDigi.RawToDigi.printUnknownFrameSummary = 1
53 
54 # ---------- diamonds ----------
55 totemDAQMappingESSourceXML_TimingDiamond = cms.ESSource("TotemDAQMappingESSourceXML",
56  verbosity = cms.untracked.uint32(0),
57  subSystem = cms.untracked.string("TimingDiamond"),
58  configuration = cms.VPSet(
59  # 2016, before diamonds inserted in DAQ
60  cms.PSet(
61  validityRange = cms.EventRange("1:min - 283819:max"),
62  mappingFileNames = cms.vstring(),
63  maskFileNames = cms.vstring()
64  ),
65  # 2016, after diamonds inserted in DAQ
66  cms.PSet(
67  validityRange = cms.EventRange("283820:min - 292520:max"),
68  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond.xml"),
69  maskFileNames = cms.vstring()
70  ),
71  # 2017
72  cms.PSet(
73  validityRange = cms.EventRange("292521:min - 310000:max"),
74  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond_2017.xml"),
75  maskFileNames = cms.vstring()
76  ),
77  # 2018
78  cms.PSet(
79  validityRange = cms.EventRange("310001:min - 999999999:max"),
80  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_timing_diamond_2018.xml"),
81  maskFileNames = cms.vstring()
82  )
83  )
84 )
85 
86 from EventFilter.CTPPSRawToDigi.ctppsDiamondRawToDigi_cfi import ctppsDiamondRawToDigi
87 ctppsDiamondRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
88 
89 # ---------- Totem Timing ----------
90 totemDAQMappingESSourceXML_TotemTiming = cms.ESSource("TotemDAQMappingESSourceXML",
91  verbosity = cms.untracked.uint32(10),
92  subSystem = cms.untracked.string("TotemTiming"),
93  configuration = cms.VPSet(
94  # 2017, before detector inserted in DAQ
95  cms.PSet(
96  validityRange = cms.EventRange("1:min - 310000:max"),
97  mappingFileNames = cms.vstring(),
98  maskFileNames = cms.vstring()
99  ),
100  # 2018
101  cms.PSet(
102  validityRange = cms.EventRange("310001:min - 999999999:max"),
103  mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_totem_timing_2018.xml"),
104  maskFileNames = cms.vstring()
105  )
106  )
107 )
108 
109 from EventFilter.CTPPSRawToDigi.totemTimingRawToDigi_cfi import totemTimingRawToDigi
110 totemTimingRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
111 
112 # ---------- pixels ----------
113 from EventFilter.CTPPSRawToDigi.ctppsPixelDigis_cfi import ctppsPixelDigis
114 ctppsPixelDigis.inputLabel = cms.InputTag("rawDataCollector")
115 
116 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
117 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
118 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
119 (ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(ctppsPixelDigis, isRun3 = False )
120 
121 # raw-to-digi task and sequence
122 ctppsRawToDigiTask = cms.Task(
123  totemTriggerRawToDigi,
124  totemRPRawToDigi,
125  ctppsDiamondRawToDigi,
126  totemTimingRawToDigi,
127  ctppsPixelDigis
128 )
129 ctppsRawToDigi = cms.Sequence(ctppsRawToDigiTask)