Belle II Software development
SVDOccupancyCalibrationsCollectorModule.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#include <calibration/CalibrationCollectorModule.h>
9
10#include <framework/datastore/StoreObjPtr.h>
11#include <framework/datastore/StoreArray.h>
12#include <mdst/dataobjects/SoftwareTriggerResult.h>
13#include <svd/dataobjects/SVDShaperDigit.h>
14#include <svd/dataobjects/SVDHistograms.h>
15#include <framework/dataobjects/EventMetaData.h>
16
17#include <string>
18#include <TH1F.h>
19#include <TTree.h>
20
21namespace Belle2 {
32
33 public:
38
42 void prepare() override final;
43
47 void startRun() override final;
48
52 void collect() override final;
53
57 void closeRun() override final;
58
62 void finish() override;
63
66
78 std::string m_tree = "tree";
79 TTree* m_histogramTree = nullptr;
83
84 TH1F* m_hnevents = nullptr;
85 TH1F* m_hist = nullptr;
86 int m_layer = 0;
87 int m_ladder = 0;
88 int m_sensor = 0;
89 int m_side = 0;
91 private:
92
93
94 static const int m_nSides = 2;
96 };
97
99} // end namespace Belle2
100
Calibration collector module base class.
template class for SVd histograms
Definition: SVDHistograms.h:24
This This module collects hits from shaper digits to compute per sensor SVD occupancy using mu+mu- ev...
StoreArray< SVDShaperDigit > m_storeDigits
shaper digits store array
bool m_skipRejectedEvents
if true skip events rejected by HLT (default)
TH1F * m_hnevents
first bin of the histogram is counting the processed events
StoreObjPtr< SoftwareTriggerResult > m_resultStoreObjectPointer
Store Object for reading the trigger decision.
TTree * m_histogramTree
tree containing as events the histograms per layer, ladder, sensor, side
void startRun() override final
Called when entering a new run.
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:95
Abstract base class for different kinds of events.