test
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 
22 
23 //----------------------------------------------------------------------------------------------------
24 
27 {
28  public:
30 
32  void Run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask,
34 
36  void PrintSummaries();
37 
38  private:
39  struct Record
40  {
42  const VFATFrame *frame;
44  };
45 
46  unsigned char verbosity;
47 
48  unsigned int printErrorSummary;
50 
52 
54  unsigned int testFootprint;
55  unsigned int testCRC;
56  unsigned int testID;
57  unsigned int testECRaw;
58  unsigned int testECDAQ;
59  unsigned int testECMostFrequent;
60  unsigned int testBCMostFrequent;
61 
63  unsigned int EC_min, BC_min;
64 
67 
69  std::map<TotemFramePosition, std::map<TotemVFATStatus, unsigned int> > errorSummary;
70  std::map<TotemFramePosition, unsigned int> unknownSummary;
71 
73  void RunCommon(const VFATFrameCollection &input, const TotemDAQMapping &mapping,
74  std::map<TotemFramePosition, Record> &records);
75 };
76 
77 #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