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 <string>
13#include "TH1F.h"
14
15#include <svd/dataobjects/SVDShaperDigit.h>
16
17#include <svd/dataobjects/SVDHistograms.h>
18
19#include "TTree.h"
20
21#include <framework/dataobjects/EventMetaData.h>
22
23
24namespace Belle2 {
35
36 public:
41
45 void prepare() override final;
46
50 void startRun() override final;
51
55 void collect() override final;
56
60 void closeRun() override final;
61
65 void finish() override;
66
79 std::string m_tree = "tree";
80 TTree* m_histogramTree = nullptr;
82 TH1F* m_hnevents = nullptr;
83 TH1F* m_hist = nullptr;
84 int m_layer = 0;
85 int m_ladder = 0;
86 int m_sensor = 0;
87 int m_side = 0;
89 private:
90
91
92 static const int m_nSides = 2;
94 };
95
97} // end namespace Belle2
98
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
TH1F * m_hnevents
first bin of the histogram is counting the processed events
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:96
Abstract base class for different kinds of events.