Belle II Software development
TOPChannelT0MCModule.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#pragma once
10
11#include <framework/core/Module.h>
12#include <string>
13#include <framework/datastore/StoreArray.h>
14#include <top/dataobjects/TOPDigit.h>
15
16class TH1F;
17
18namespace Belle2 {
28
29 public:
34
38 virtual ~TOPChannelT0MCModule();
39
44 virtual void initialize() override;
45
49 virtual void beginRun() override;
50
54 virtual void event() override;
55
59 virtual void endRun() override;
60
65 virtual void terminate() override;
66
67 private:
68
72 enum {c_NumChannels = 512,
73 c_maxLaserFibers = 9
74 };
75
76 TH1F* m_histo[c_NumChannels] = {0};
78 std::vector<double> m_fitRange;
79 std::string m_outputFile;
84 };
85
87} // Belle2 namespace
88
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
TOP Channel T0 MC Extraction module (under development)
std::vector< double > m_fitRange
fit range [nbins, xmin, xmax]
std::string m_outputFile
output root file name
StoreArray< TOPDigit > m_digits
collection of digits
TH1F * m_histo[c_NumChannels]
profile histograms
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
virtual ~TOPChannelT0MCModule()
Destructor.
Abstract base class for different kinds of events.