CMS 3D CMS Logo

ctppsRawToDigi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # ---------- Si strips ----------
4 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
5 totemRPRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
6 
7 # various error/warning/info output may be enabled with these flags
8 # totemRPRawToDigi.RawUnpacking.verbosity = 1
9 # totemRPRawToDigi.RawToDigi.verbosity = 1 # or higher number for more output
10 # totemRPRawToDigi.RawToDigi.printErrorSummary = True
11 # totemRPRawToDigi.RawToDigi.printUnknownFrameSummary = True
12 
13 # ---------- diamonds ----------
14 from EventFilter.CTPPSRawToDigi.ctppsDiamondRawToDigi_cfi import ctppsDiamondRawToDigi
15 ctppsDiamondRawToDigi.rawDataTag = "rawDataCollector"
16 
17 # ---------- Totem Timing ----------
18 from EventFilter.CTPPSRawToDigi.totemTimingRawToDigi_cfi import totemTimingRawToDigi
19 totemTimingRawToDigi.rawDataTag = "rawDataCollector"
20 
21 # ---------- Totem nT2 ----------
22 from EventFilter.CTPPSRawToDigi.totemT2Digis_cfi import totemT2Digis
23 totemT2Digis.rawDataTag = "rawDataCollector"
24 
25 # ---------- pixels ----------
26 from EventFilter.CTPPSRawToDigi.ctppsPixelDigis_cfi import ctppsPixelDigis
27 ctppsPixelDigis.inputLabel = "rawDataCollector"
28 
29 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
30 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
31 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
32 (ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(ctppsPixelDigis, isRun3 = False )
33 
34 # raw-to-digi task and sequence
35 ctppsRawToDigiTask = cms.Task(
36  totemRPRawToDigi,
37  ctppsDiamondRawToDigi,
38  totemTimingRawToDigi,
39  totemT2Digis,
40  ctppsPixelDigis
41 )
42 ctppsRawToDigi = cms.Sequence(ctppsRawToDigiTask)