CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
23 
26 {
27  public:
29 
31  void Run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask,
33 
35  void Run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask,
37 
39  void PrintSummaries();
40 
41  private:
42  struct Record
43  {
45  const VFATFrame *frame;
47  };
48 
49  unsigned char verbosity;
50 
51  unsigned int printErrorSummary;
53 
55 
57  unsigned int testFootprint;
58  unsigned int testCRC;
59  unsigned int testID;
60  unsigned int testECRaw;
61  unsigned int testECDAQ;
62  unsigned int testECMostFrequent;
63  unsigned int testBCMostFrequent;
64 
66  unsigned int EC_min, BC_min;
67 
70 
72  std::map<TotemFramePosition, std::map<TotemVFATStatus, unsigned int> > errorSummary;
73  std::map<TotemFramePosition, unsigned int> unknownSummary;
74 
76  void RunCommon(const VFATFrameCollection &input, const TotemDAQMapping &mapping,
77  std::map<TotemFramePosition, Record> &records);
78 };
79 
80 #endif
void Run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask, edm::DetSetVector< TotemRPDigi > &digi, edm::DetSetVector< TotemVFATStatus > &status)
Creates RP digi.
unsigned int testECMostFrequent
Channel-mask mapping.
unsigned int printErrorSummary
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()
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 RunCommon(const VFATFrameCollection &input, const TotemDAQMapping &mapping, std::map< TotemFramePosition, Record > &records)
Common processing for all VFAT based sub-systems.
unsigned int EC_min
the minimal required number of frames to determine the most frequent counter value ...
tuple status
Definition: mps_update.py:57