CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
totemVFATRawToDigi_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 totemVFATRawToDigi = cms.EDProducer("TotemVFATRawToDigi",
4  rawDataTag = cms.InputTag(""),
5 
6  # options: "RP"
7  subSystem = cms.string(""),
8 
9  # IMPORTANT: leave empty to load the default configuration from
10  # DataFormats/FEDRawData/interface/FEDNumbering.h
11  fedIds = cms.vuint32(),
12 
13  RawUnpacking = cms.PSet(
14  verbosity = cms.untracked.uint32(0),
15  ),
16 
17  RawToDigi = cms.PSet(
18  # 0: no error output
19  # 1: one-line message for every event with at least one corrupted VFAT frame
20  # 2: lists all corrupted VFATs in all events
21  # 3: lists all corruptions for all corrupted VFATs in all events
22  verbosity = cms.untracked.uint32(0),
23 
24  # flags for available consistency tests
25  # 0: do not perform the test at all
26  # 1: print an error message, but keep the frame
27  # 2: print an error message and do not process the frame
28  testFootprint = cms.uint32(2),
29  testCRC = cms.uint32(2),
30  testID = cms.uint32(2), # compare the ID from data and mapping
31  testECMostFrequent = cms.uint32(2), # compare frame's EC with the most frequent value in the event
32  testBCMostFrequent = cms.uint32(2), # compare frame's BC with the most frequent value in the event
33 
34  # the minimal number of frames to search for the most frequent counter value
35  EC_min = cms.untracked.uint32(10),
36  BC_min = cms.untracked.uint32(10),
37 
38  # the most frequent counter value is accepted provided its relative occupancy is higher than this fraction
39  EC_fraction = cms.untracked.double(0.6),
40  BC_fraction = cms.untracked.double(0.6),
41 
42  # if non-zero, prints a per-VFAT error summary at the end of the job
43  printErrorSummary = cms.untracked.uint32(0),
44 
45  # if non-zero, prints a summary of frames found in data, but not in the mapping
46  printUnknownFrameSummary = cms.untracked.uint32(0),
47  )
48 )