CMS 3D CMS Logo

RawToDigiConverter.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of the TOTEM offline software.
4 * Authors:
5 * Jan Kašpar (jan.kaspar@gmail.com)
6 *
7 ****************************************************************************/
8 
9 #ifndef EventFilter_CTPPSRawToDigi_RawToDigiConverter
10 #define EventFilter_CTPPSRawToDigi_RawToDigiConverter
11 
14 
16 
19 
24 
27 public:
29 
31  void run(const VFATFrameCollection &coll,
32  const TotemDAQMapping &mapping,
33  const TotemAnalysisMask &mask,
36 
38  void run(const VFATFrameCollection &coll,
39  const TotemDAQMapping &mapping,
40  const TotemAnalysisMask &mask,
43 
45  void run(const VFATFrameCollection &coll,
46  const TotemDAQMapping &mapping,
47  const TotemAnalysisMask &mask,
50 
52  void printSummaries() const;
53 
54 private:
55  struct Record {
57  const VFATFrame *frame;
59  };
60 
61  unsigned char verbosity;
62 
63  unsigned int printErrorSummary;
65 
67 
69  unsigned int testFootprint;
70  unsigned int testCRC;
71  unsigned int testID;
72  unsigned int testECRaw;
73  unsigned int testECDAQ;
74  unsigned int testECMostFrequent;
75  unsigned int testBCMostFrequent;
76 
78  unsigned int EC_min, BC_min;
79 
82 
84  std::map<TotemFramePosition, std::map<TotemVFATStatus, unsigned int> > errorSummary;
85  std::map<TotemFramePosition, unsigned int> unknownSummary;
86 
89  const TotemDAQMapping &mapping,
90  std::map<TotemFramePosition, Record> &records);
91 };
92 
93 #endif
unsigned int testECMostFrequent
Channel-mask mapping.
unsigned int printErrorSummary
void runCommon(const VFATFrameCollection &input, const TotemDAQMapping &mapping, std::map< TotemFramePosition, Record > &records)
Common processing for all VFAT based sub-systems.
RawToDigiConverter(const edm::ParameterSet &conf)
unsigned int testFootprint
flags for which tests to run
constexpr uint32_t mask
Definition: gpuClustering.h:24
static std::string const input
Definition: EdmProvDump.cc:47
unsigned int printUnknownFrameSummary
The mapping between FramePosition and VFATInfo.
const TotemVFATInfo * info
Collection of code to convert TOTEM raw data into digi.
unsigned char verbosity
std::map< TotemFramePosition, unsigned int > unknownSummary
unsigned int testBCMostFrequent
void printSummaries() const
Print error summaries.
std::map< TotemFramePosition, std::map< TotemVFATStatus, unsigned int > > errorSummary
error summaries
double EC_fraction
the minimal required (relative) occupancy of the most frequent counter value to be accepted ...
Contains mappind data related to a VFAT.
void run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask, edm::DetSetVector< TotemRPDigi > &digi, edm::DetSetVector< TotemVFATStatus > &status)
Creates RP digi.
unsigned int EC_min
the minimal required number of frames to determine the most frequent counter value ...