Belle II Software  release-05-02-19
SVDDataFormatCheckModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Giulia Casarosa *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 
12 #ifndef SVDDATAFORMATCHECK_H
13 #define SVDDATAFORMATCHECK_H
14 
15 
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreObjPtr.h>
18 #include <framework/datastore/StoreArray.h>
19 #include <framework/dataobjects/EventMetaData.h>
20 #include <svd/dataobjects/SVDEventInfo.h>
21 #include <svd/dataobjects/SVDShaperDigit.h>
22 #include <svd/dataobjects/SVDDAQDiagnostic.h>
23 //#include <svd/calibration/SVDDetectorConfiguration.h>
24 
25 #include <string>
26 
27 namespace Belle2 {
40  class SVDDataFormatCheckModule : public Module {
41  public:
42 
45 
46  virtual ~SVDDataFormatCheckModule();
47 
49  virtual void initialize() override;
50 
52  virtual void beginRun() override;
53 
55  virtual void event() override;
56 
58  virtual void endRun() override;
59 
61  virtual void terminate() override;
62 
63 
64  private:
65 
67  StoreArray<SVDShaperDigit> m_storeShaper;
69  StoreArray<SVDDAQDiagnostic> m_storeDAQ;
71  StoreObjPtr<EventMetaData> m_evtMetaData;
72 
74  StoreObjPtr<SVDEventInfo> m_storeSVDEvtInfo;
75 
77  int m_expNumber = 0;
79  int m_runNumber = 0;
80 
82  int m_n1samples = 0;
84  int m_n3samples = 0;
86  int m_n6samples = 0;
88  int m_nLocalRunEvts = 0;
90  int m_nNoZSEvts = 0;
92  int m_nBadTBEvts = 0;
93 
95  bool m_shutUpWarnings = false;
97  int m_evtsCounter = 0;
99  int m_stripEvtsCounter = 0;
101  int m_problematicEvtsCounter = 0;
106  protected:
107 
111  std::string m_storeDAQName;
113  std::string m_svdEventInfoName;
114 
115  //counters
116  // int m_
117  //calibration objects
118  // SVDDetectorConfiguration m_SVDConfig;
119 
120  };
122 }
123 #endif
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
Belle2::SVDDataFormatCheckModule::m_expNumber
int m_expNumber
experiment number
Definition: SVDDataFormatCheckModule.h:85
Belle2::SVDDataFormatCheckModule::m_nNoZSEvts
int m_nNoZSEvts
counter of non zero-suppressed events
Definition: SVDDataFormatCheckModule.h:98
Belle2::SVDDataFormatCheckModule::m_storeSVDEvtInfo
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo
storage for SVDEventInfo object
Definition: SVDDataFormatCheckModule.h:82
Belle2::SVDDataFormatCheckModule::m_nBadTBEvts
int m_nBadTBEvts
counter of bad TB events
Definition: SVDDataFormatCheckModule.h:100
Belle2::SVDDataFormatCheckModule::m_maxProblematicEvts
int m_maxProblematicEvts
max number of events with at least one strip with a warning
Definition: SVDDataFormatCheckModule.h:111
Belle2::SVDDataFormatCheckModule::m_evtMetaData
StoreObjPtr< EventMetaData > m_evtMetaData
event meta data store array
Definition: SVDDataFormatCheckModule.h:79
Belle2::SVDDataFormatCheckModule::m_n6samples
int m_n6samples
counter of 6-sample events
Definition: SVDDataFormatCheckModule.h:94
Belle2::SVDDataFormatCheckModule::m_storeShaper
StoreArray< SVDShaperDigit > m_storeShaper
ShaperDigit store array.
Definition: SVDDataFormatCheckModule.h:75
Belle2::SVDDataFormatCheckModule::SVDDataFormatCheckModule
SVDDataFormatCheckModule()
Constructor defining the parameters.
Definition: SVDDataFormatCheckModule.cc:25
Belle2::SVDDataFormatCheckModule::m_storeShaperDigitsName
std::string m_storeShaperDigitsName
max number of strips in one with at least a warning
Definition: SVDDataFormatCheckModule.h:117
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDDataFormatCheckModule::event
virtual void event() override
This method is the core of the SVDDataFormatCheck.
Definition: SVDDataFormatCheckModule.cc:84
Belle2::SVDDataFormatCheckModule::m_n3samples
int m_n3samples
counter of 3-sample events
Definition: SVDDataFormatCheckModule.h:92
Belle2::SVDDataFormatCheckModule::initialize
virtual void initialize() override
Initialize the SVDDataFormatCheck.
Definition: SVDDataFormatCheckModule.cc:46
Belle2::SVDDataFormatCheckModule::m_storeDAQ
StoreArray< SVDDAQDiagnostic > m_storeDAQ
Diagnostic store array.
Definition: SVDDataFormatCheckModule.h:77
Belle2::SVDDataFormatCheckModule::m_n1samples
int m_n1samples
counter of 1-sample events
Definition: SVDDataFormatCheckModule.h:90
Belle2::SVDDataFormatCheckModule::m_evtsCounter
int m_evtsCounter
couter of events
Definition: SVDDataFormatCheckModule.h:105
Belle2::SVDDataFormatCheckModule::m_shutUpWarnings
bool m_shutUpWarnings
if true shut up warnings
Definition: SVDDataFormatCheckModule.h:103
Belle2::SVDDataFormatCheckModule::m_stripEvtsCounter
int m_stripEvtsCounter
couter of events with at least one strip
Definition: SVDDataFormatCheckModule.h:107
Belle2::SVDDataFormatCheckModule::m_runNumber
int m_runNumber
run number
Definition: SVDDataFormatCheckModule.h:87
Belle2::SVDDataFormatCheckModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: SVDDataFormatCheckModule.cc:172
Belle2::SVDDataFormatCheckModule::m_problematicEvtsCounter
int m_problematicEvtsCounter
couter of events with at least one strip with a warning
Definition: SVDDataFormatCheckModule.h:109
Belle2::SVDDataFormatCheckModule::m_nLocalRunEvts
int m_nLocalRunEvts
counter of local-run events
Definition: SVDDataFormatCheckModule.h:96
Belle2::SVDDataFormatCheckModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: SVDDataFormatCheckModule.cc:192
Belle2::SVDDataFormatCheckModule::m_svdEventInfoName
std::string m_svdEventInfoName
Name of the SVDEventInfo object.
Definition: SVDDataFormatCheckModule.h:121
Belle2::SVDDataFormatCheckModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: SVDDataFormatCheckModule.cc:64
Belle2::SVDDataFormatCheckModule::m_storeDAQName
std::string m_storeDAQName
Name of the collection to use for the SVDDAQDiagnostic.
Definition: SVDDataFormatCheckModule.h:119