Belle II Software  release-08-01-10
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 
24 namespace Belle2 {
38  public:
39 
42 
43  virtual ~SVDDataFormatCheckModule();
44 
46  virtual void initialize() override;
47 
49  virtual void beginRun() override;
50 
52  virtual void event() override;
53 
55  virtual void endRun() override;
56 
58  virtual void terminate() override;
59 
60 
61  private:
62 
69 
72 
74  int m_expNumber = 0;
76  int m_runNumber = 0;
77 
79  int m_n1samples = 0;
81  int m_n3samples = 0;
83  int m_n6samples = 0;
85  int m_nLocalRunEvts = 0;
87  int m_nNoZSEvts = 0;
89  int m_nBadTBEvts = 0;
90 
92  bool m_shutUpWarnings = false;
94  int m_evtsCounter = 0;
103  protected:
104 
108  std::string m_storeDAQName;
110  std::string m_svdEventInfoName;
111 
112 
113  };
115 }
116 #endif
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
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.