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 {
28  public:
30 
34 
36  void run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask,
38 
40  void run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask,
42 
44  void printSummaries() const;
45 
46  private:
47  struct Record
48  {
50  const VFATFrame *frame;
52  };
53 
54  unsigned char verbosity;
55 
56  unsigned int printErrorSummary;
58 
60 
62  unsigned int testFootprint;
63  unsigned int testCRC;
64  unsigned int testID;
65  unsigned int testECRaw;
66  unsigned int testECDAQ;
67  unsigned int testECMostFrequent;
68  unsigned int testBCMostFrequent;
69 
71  unsigned int EC_min, BC_min;
72 
75 
77  std::map<TotemFramePosition, std::map<TotemVFATStatus, unsigned int> > errorSummary;
78  std::map<TotemFramePosition, unsigned int> unknownSummary;
79 
81  void runCommon(const VFATFrameCollection &input, const TotemDAQMapping &mapping,
82  std::map<TotemFramePosition, Record> &records);
83 };
84 
85 #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
static std::string const input
Definition: EdmProvDump.cc:44
unsigned int printUnknownFrameSummary
The mapping between FramePosition and VFATInfo.
const TotemVFATInfo * info
void printSummaries() const
Print error summaries.
Collection of code to convert TOTEM raw data into digi.
unsigned char verbosity
JetCorrectorParametersCollection coll
Definition: classes.h:10
std::map< TotemFramePosition, unsigned int > unknownSummary
unsigned int testBCMostFrequent
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 ...