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 * Nicola Minafra
7 * Laurent Forthomme
8 *
9 ****************************************************************************/
10 
11 #ifndef EventFilter_CTPPSRawToDigi_RawToDigiConverter
12 #define EventFilter_CTPPSRawToDigi_RawToDigiConverter
13 
17 
19 
22 
28 
31 public:
33 
35  void run(const VFATFrameCollection &coll,
36  const TotemDAQMapping &mapping,
37  const TotemAnalysisMask &mask,
40 
42  void run(const VFATFrameCollection &coll,
43  const TotemDAQMapping &mapping,
44  const TotemAnalysisMask &mask,
47 
49  void run(const VFATFrameCollection &coll,
50  const TotemDAQMapping &mapping,
51  const TotemAnalysisMask &mask,
54 
56  void run(const VFATFrameCollection &coll,
57  const TotemDAQMapping &mapping,
58  const TotemAnalysisMask &mask,
61 
63  void printSummaries() const;
64 
65 private:
66  struct Record {
68  const VFATFrame *frame;
70  };
71 
72  unsigned char verbosity;
73 
74  unsigned int printErrorSummary;
76 
78 
80  unsigned int testFootprint;
81  unsigned int testCRC;
82  unsigned int testID;
83  unsigned int testECRaw;
84  unsigned int testECDAQ;
85  unsigned int testECMostFrequent;
86  unsigned int testBCMostFrequent;
87 
89  unsigned int EC_min, BC_min;
90 
93 
95  std::map<TotemFramePosition, std::map<TotemVFATStatus, unsigned int> > errorSummary;
96  std::map<TotemFramePosition, unsigned int> unknownSummary;
97 
100  const TotemDAQMapping &mapping,
101  std::map<TotemFramePosition, Record> &records);
102 };
103 
104 #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:26
static std::string const input
Definition: EdmProvDump.cc:50
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 ...