Belle II Software development
CheckErrorEvent.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef CHECKERROREVENTMODULE_H
10#define CHECKERROREVENTMODULE_H
11
12#include <rawdata/modules/PrintDataTemplate.h>
13
14
15namespace Belle2 {
24
25 // Public functions
26 public:
27
30 virtual ~CheckErrorEventModule();
31
33 virtual void initialize() override;
34
36 virtual void event() override;
37
39 virtual void terminate() override;
40
42 void checkCRCError(RawCOPPER* rawcpr, int i);
43
44#ifndef REDUCED_RAWCOPPER
45#else
46 // void printReducedCOPPEREvent(ReducedRawCOPPER* reduced_raw_copper, int i);
47#endif
48
49 protected :
50
53
56
59
62
65
66 };
67
69} // end namespace Belle2
70
71#endif // MODULEHELLO_H
Count the number of CRC error events by checking RawCOPPER's header/trailer and EventMetaData.
void checkCRCError(RawCOPPER *rawcpr, int i)
Check if a RawCOPPER object contains CRC error flag in RawCOPPER header/trailer.
virtual void initialize() override
initialization
virtual void event() override
event module
virtual void terminate() override
termination
CheckErrorEventModule()
Constructor / Destructor.
Module to get data from DataStore and send it to another network node.
The Raw COPPER class This class stores data received by COPPER via belle2linkt Data from all detector...
Definition: RawCOPPER.h:52
Abstract base class for different kinds of events.