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  const unsigned char verbosity;
73 
74  const bool printErrorSummary;
76 
78 
80  const unsigned int testFootprint;
81  const unsigned int testCRC;
82  const unsigned int testID;
83  const unsigned int testECMostFrequent;
84  const unsigned int testBCMostFrequent;
85 
87  const unsigned int EC_min, BC_min;
88 
90  const double EC_fraction, BC_fraction;
91 
92  //Test file with two 8-bit hwID fields
94 
96  std::map<TotemFramePosition, std::map<TotemVFATStatus, unsigned int> > errorSummary;
97  std::map<TotemFramePosition, unsigned int> unknownSummary;
98 
100  void runCommon(const VFATFrameCollection &input,
101  const TotemDAQMapping &mapping,
102  std::map<TotemFramePosition, Record> &records);
103 };
104 
105 #endif
const unsigned int testID
const unsigned int testCRC
Channel-mask mapping.
void runCommon(const VFATFrameCollection &input, const TotemDAQMapping &mapping, std::map< TotemFramePosition, Record > &records)
Common processing for all VFAT based sub-systems.
const double BC_fraction
const unsigned int BC_min
RawToDigiConverter(const edm::ParameterSet &conf)
const unsigned int testFootprint
flags for which tests to run
const unsigned char verbosity
static std::string const input
Definition: EdmProvDump.cc:50
const double EC_fraction
the minimal required (relative) occupancy of the most frequent counter value to be accepted ...
const bool printErrorSummary
const unsigned int testECMostFrequent
The mapping between FramePosition and VFATInfo.
const unsigned int EC_min
the minimal required number of frames to determine the most frequent counter value ...
const TotemVFATInfo * info
const bool olderTotemT2FileTest
Collection of code to convert TOTEM raw data into digi.
std::map< TotemFramePosition, unsigned int > unknownSummary
const bool printUnknownFrameSummary
const unsigned int testBCMostFrequent
void printSummaries() const
Print error summaries.
std::map< TotemFramePosition, std::map< TotemVFATStatus, unsigned int > > errorSummary
error summaries
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.