Belle II Software development
TOPLaserCalibratorModule.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
39 virtual void initialize() override;
40
44 virtual void event() override;
45
50 virtual void terminate() override;
51
52 private:
53
57 enum {c_NumChannels = 512,
58 c_maxLaserFibers = 9
59 };
60
61 std::string m_dataFitOutput;
62 std::string m_mcInput;
63 std::string m_chT0C;
64
65 int m_barID;
66 int m_refCh;
68 std::string m_fitMethod;
69 std::vector<double> m_fitRange;
70 TH1F* m_histo[c_NumChannels] = {0};
71
73
74 };
75
76} // Belle2 namespace
77
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
std::vector< double > m_fitRange
fit range [nbins, xmin, xmax]
int m_fitChannel
set 0 - 511 to a specific pixelID in the fit; set 512 to fit all pixels in one slot
int m_barID
ID of TOP module to calibrate.
std::string m_mcInput
Input root file from MC.
StoreArray< TOPDigit > m_digits
collection of digits
int m_refCh
reference channel of T0 constant
std::string m_chT0C
Output of channel T0 constant.
TH1F * m_histo[c_NumChannels]
profile histograms
std::string m_fitMethod
gauss: single gaussian; cb: single Crystal Ball; cb2: double Crystal Ball
std::string m_dataFitOutput
output root file for data
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
Abstract base class for different kinds of events.