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 
7 from EventFilter.CTPPSRawToDigi.totemVFATRawToDigi_cfi import totemVFATRawToDigi
8 
9 ctppsDiamondRawToDigi = totemVFATRawToDigi.clone(
10  subSystem = 'TimingDiamond',
11  fedIds = [579, 581, 582, 583], #as declared in DataFormats/FEDRawData/interface/FEDNumbering.h
12  RawToDigi = dict(
13  testCRC = 0, # no need to test CRC for diamond frames
14  testECMostFrequent = 0, # show error in the DQM and then DAQ is sending resync, no need to test in the unpacker
15  )
16 )
17 
18 # for Run 2 backward compatibility
19 (ctpps_2016 | ctpps_2017 | ctpps_2018).toModify(ctppsDiamondRawToDigi,
20 fedIds = [] )