CMS 3D CMS Logo

ctppsDiamondRawToDigi_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
4 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
5 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
6 from Configuration.Eras.Modifier_ctpps_2022_cff import ctpps_2022
7 
8 from EventFilter.CTPPSRawToDigi.totemVFATRawToDigi_cfi import totemVFATRawToDigi
9 
10 # For Run3 we use extended list of FedIDs
11 ctppsDiamondRawToDigi = totemVFATRawToDigi.clone(
12  subSystem = 'TimingDiamond',
13  fedIds = [579, 581, 582, 583, 588, 589],
14  RawToDigi = dict(
15  testCRC = 0, # no need to test CRC for diamond frames
16  testECMostFrequent = 0, # show error in the DQM and then DAQ is sending resync, no need to test in the unpacker
17  )
18 )
19 
20 # for Run 2 backward compatibility
21 # empty list of fedIds means that the ids will be read from DataFormats/FEDRawData/interface/FEDNumbering.h
22 (ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(ctppsDiamondRawToDigi, fedIds = [] )