Belle II Software development
TOPLaserCalibratorCollectorModule.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//Calibration
12#include <calibration/CalibrationCollectorModule.h>
13
14//ECL
15#include <framework/datastore/StoreArray.h>
16
17namespace Belle2 {
23 class TOPDigit;
24
30
31 public:
32
37
41 void prepare() override;
42
51 void collect() override;
52
53 private:
54
55 // Parameters.
56 bool m_useReferencePulse = true;
57 unsigned m_refChannel = 0;
58 int m_refSlot = 0;
59 float m_pulserDeltaT = 22.;
61 bool m_storeMCTruth = false;
63 //Required arrays
66 // Variables to be saved in the hit tree
67 short m_channel = 0;
68 short m_window = 0;
69 short m_sample = 0;
70 short m_slot = 0;
71 float m_hitTime = 0.;
72 float m_dVdt = 0.;
73 float m_amplitude = 0;
74 float m_width = 0;
75 float m_refTime = 0;
76 int m_event = 0;
77 bool m_refTimeValid = false;
78 };
80}
Calibration collector module base class.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Collector module for the TOP channelT0 calibration and, more in general, for the time resolution stud...
TOPLaserCalibratorCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< TOPDigit > m_TOPDigitArray
Required input array of TOPDigits.
bool m_storeMCTruth
Store the TOPSimHits information instead of the TOPDigit one.
float m_hitTime
Hit time with respect to the reference pulse (ns)
float m_pulserDeltaTTolerance
Window around the nominal deltaT used to select a double pulse, in ns.
void collect() override
Main mathod, called for each event.
bool m_useReferencePulse
Use the electronic pulser as reference.
bool m_refTimeValid
true when the time of the reference pulse is valid
float m_pulserDeltaT
Approximate time difference between the two calpulses, in ns.
Abstract base class for different kinds of events.