Belle II Software development
SVDDataFormatCheckModule.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
10#ifndef SVDDATAFORMATCHECK_H
11#define SVDDATAFORMATCHECK_H
12
13
14#include <framework/core/Module.h>
15#include <framework/datastore/StoreObjPtr.h>
16#include <framework/datastore/StoreArray.h>
17#include <framework/dataobjects/EventMetaData.h>
18#include <svd/dataobjects/SVDEventInfo.h>
19#include <svd/dataobjects/SVDShaperDigit.h>
20#include <svd/dataobjects/SVDDAQDiagnostic.h>
21
22#include <string>
23
24namespace Belle2 {
35 public:
36
39
41
43 virtual void initialize() override;
44
46 virtual void beginRun() override;
47
49 virtual void event() override;
50
52 virtual void endRun() override;
53
55 virtual void terminate() override;
56
57
58 private:
59
66
69
71 int m_expNumber = 0;
73 int m_runNumber = 0;
74
76 int m_n1samples = 0;
78 int m_n3samples = 0;
80 int m_n6samples = 0;
84 int m_nNoZSEvts = 0;
86 int m_nBadTBEvts = 0;
87
89 bool m_shutUpWarnings = false;
100 protected:
101
105 std::string m_storeDAQName;
108
109
110 };
112}
113#endif
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
Base class for Modules.
Definition: Module.h:72
This module checks the format of the data that we are going to reconstruct checking the SVDModeByte a...
int m_n1samples
counter of 1-sample events
int m_n6samples
counter of 6-sample events
bool m_shutUpWarnings
if true shut up warnings
virtual void initialize() override
Initialize the SVDDataFormatCheck.
SVDDataFormatCheckModule()
Constructor defining the parameters.
std::string m_storeShaperDigitsName
max number of strips in one with at least a warning
virtual void event() override
This method is the core of the SVDDataFormatCheck.
virtual void endRun() override
This method is called if the current run ends.
StoreArray< SVDDAQDiagnostic > m_storeDAQ
Diagnostic store array.
virtual void terminate() override
This method is called at the end of the event processing.
int m_maxProblematicEvts
max number of events with at least one strip with a warning
int m_nBadTBEvts
counter of bad TB events
int m_nLocalRunEvts
counter of local-run events
StoreObjPtr< EventMetaData > m_evtMetaData
event meta data store array
virtual void beginRun() override
Called when entering a new run.
int m_n3samples
counter of 3-sample events
StoreArray< SVDShaperDigit > m_storeShaper
ShaperDigit store array.
std::string m_svdEventInfoName
Name of the SVDEventInfo object.
std::string m_storeDAQName
Name of the collection to use for the SVDDAQDiagnostic.
int m_stripEvtsCounter
couter of events with at least one strip
int m_nNoZSEvts
counter of non zero-suppressed events
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo
storage for SVDEventInfo object
int m_problematicEvtsCounter
couter of events with at least one strip with a warning
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.