Belle II Software  release-05-02-19
TOPLaserCalibratorCollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Umberto Tamponi (tamponi@to.infn.it) *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 //Calibration
14 #include <calibration/CalibrationCollectorModule.h>
15 
16 //ECL
17 #include <framework/datastore/StoreArray.h>
18 
19 namespace Belle2 {
25  class TOPDigit;
26 
31  class TOPLaserCalibratorCollectorModule : public CalibrationCollectorModule {
32 
33  public:
34 
39 
43  void prepare() override;
44 
53  void collect() override;
54 
55  private:
56 
57  // Parameters.
58  bool m_useReferencePulse = true;
59  unsigned m_refChannel = 0;
60  int m_refSlot = 0;
61  float m_pulserDeltaT = 22.;
62  float m_pulserDeltaTTolerance = 2.;
63  bool m_storeMCTruth = false;
65  //Required arrays
68  // Variables to be saved in the hit tree
69  short m_channel = 0;
70  short m_window = 0;
71  short m_sample = 0;
72  short m_slot = 0;
73  float m_hitTime = 0.;
74  float m_dVdt = 0.;
75  float m_amplitude = 0;
76  float m_width = 0;
77  float m_refTime = 0;
78  int m_event = 0;
79  bool m_refTimeValid = false;
80  };
82 }
Belle2::TOPLaserCalibratorCollectorModule::m_storeMCTruth
bool m_storeMCTruth
Store the TOPSimHits information instead of the TOPDigit one.
Definition: TOPLaserCalibratorCollectorModule.h:71
Belle2::TOPLaserCalibratorCollectorModule::collect
void collect() override
Main mathod, called for each event.
Definition: TOPLaserCalibratorCollectorModule.cc:79
Belle2::TOPLaserCalibratorCollectorModule::m_refTime
float m_refTime
Time of the reference pulse (ns)
Definition: TOPLaserCalibratorCollectorModule.h:85
Belle2::TOPLaserCalibratorCollectorModule::m_sample
short m_sample
Sample number (0-???)
Definition: TOPLaserCalibratorCollectorModule.h:79
Belle2::TOPLaserCalibratorCollectorModule::m_window
short m_window
Window number (0-???)
Definition: TOPLaserCalibratorCollectorModule.h:78
Belle2::TOPLaserCalibratorCollectorModule::m_useReferencePulse
bool m_useReferencePulse
Use the electronic pulser as reference.
Definition: TOPLaserCalibratorCollectorModule.h:66
Belle2::TOPLaserCalibratorCollectorModule::m_pulserDeltaT
float m_pulserDeltaT
Approximate time difference between the two calpulses, in ns.
Definition: TOPLaserCalibratorCollectorModule.h:69
Belle2::TOPLaserCalibratorCollectorModule::m_refSlot
int m_refSlot
Reference slot (1-16).
Definition: TOPLaserCalibratorCollectorModule.h:68
Belle2::TOPLaserCalibratorCollectorModule::TOPLaserCalibratorCollectorModule
TOPLaserCalibratorCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: TOPLaserCalibratorCollectorModule.cc:29
Belle2::TOPLaserCalibratorCollectorModule::m_width
float m_width
Hit pulse width (ns)
Definition: TOPLaserCalibratorCollectorModule.h:84
Belle2::TOPLaserCalibratorCollectorModule::m_amplitude
float m_amplitude
Hit pulse amplitude (ADC)
Definition: TOPLaserCalibratorCollectorModule.h:83
Belle2::TOPLaserCalibratorCollectorModule::m_refChannel
unsigned m_refChannel
Reference channel.
Definition: TOPLaserCalibratorCollectorModule.h:67
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPLaserCalibratorCollectorModule::m_event
int m_event
Consecutive event count.
Definition: TOPLaserCalibratorCollectorModule.h:86
Belle2::TOPLaserCalibratorCollectorModule::m_TOPDigitArray
StoreArray< TOPDigit > m_TOPDigitArray
Required input array of TOPDigits.
Definition: TOPLaserCalibratorCollectorModule.h:74
Belle2::TOPLaserCalibratorCollectorModule::m_pulserDeltaTTolerance
float m_pulserDeltaTTolerance
Window around the nominal deltaT used to select a double pulse, in ns.
Definition: TOPLaserCalibratorCollectorModule.h:70
Belle2::TOPLaserCalibratorCollectorModule::m_dVdt
float m_dVdt
Approximate dV/dt (ADC/ns)
Definition: TOPLaserCalibratorCollectorModule.h:82
Belle2::TOPLaserCalibratorCollectorModule::m_hitTime
float m_hitTime
Hit time with respect to the reference pulse (ns)
Definition: TOPLaserCalibratorCollectorModule.h:81
Belle2::TOPLaserCalibratorCollectorModule::prepare
void prepare() override
Define histograms.
Definition: TOPLaserCalibratorCollectorModule.cc:48
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TOPLaserCalibratorCollectorModule::m_slot
short m_slot
Slot number (1-16)
Definition: TOPLaserCalibratorCollectorModule.h:80
Belle2::TOPLaserCalibratorCollectorModule::m_refTimeValid
bool m_refTimeValid
true when the time of the reference pulse is valid
Definition: TOPLaserCalibratorCollectorModule.h:87
Belle2::TOPLaserCalibratorCollectorModule::m_channel
short m_channel
Channel number (0-511)
Definition: TOPLaserCalibratorCollectorModule.h:77