Belle II Software  release-08-01-10
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 
16 class TH1F;
17 
18 namespace Belle2 {
28 
29  public:
34 
38  virtual ~TOPLaserCalibratorModule();
39 
44  virtual void initialize() override;
45 
50  virtual void beginRun() override;
51 
55  virtual void event() override;
56 
61  virtual void endRun() override;
62 
67  virtual void terminate() override;
68 
69  private:
70 
74  enum {c_NumChannels = 512,
75  c_maxLaserFibers = 9
76  };
77 
78  std::string m_dataFitOutput;
79  std::string m_mcInput;
80  std::string m_chT0C;
82  int m_barID;
83  int m_refCh;
85  std::string m_fitMethod;
86  std::vector<double> m_fitRange;
87  TH1F* m_histo[c_NumChannels] = {0};
91  };
93 } // Belle2 namespace
94 
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
T0 Laser calibration module (under development)
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 endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
Abstract base class for different kinds of events.