Belle II Software development
KLMTimeWindow.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/* ROOT headers. */
12#include <TObject.h>
13
14namespace Belle2 {
19
24 class KLMTimeWindow : public TObject {
25 public:
26
36
40 KLMTimeWindow(double coincidenceWindow, double promptTime, double promptWindow)
41 {
42 m_CoincidenceWindow = coincidenceWindow;
43 m_PromptTime = promptTime;
44 m_PromptWindow = promptWindow;
45 }
46
51 {
52 }
53
58 void setCoincidenceWindow(double coincidenceWindow)
59 {
60 m_CoincidenceWindow = coincidenceWindow;
61 }
62
67 void setPromptTime(double promptTime)
68 {
69 m_PromptTime = promptTime;
70 }
71
76 void setPromptWindow(double promptWindow)
77 {
78 m_PromptWindow = promptWindow;
79 }
80
84 double getCoincidenceWindow() const
85 {
87 }
88
92 double getPromptTime() const
93 {
94 return m_PromptTime;
95 }
96
100 double getPromptWindow() const
101 {
102 return m_PromptWindow;
103 }
104
105 private:
106
111
116
121
126
127 };
128
130} // end namespace Belle2
double getPromptWindow() const
Get the prompt time window.
void setPromptTime(double promptTime)
Set the prompt time.
void setCoincidenceWindow(double coincidenceWindow)
Set the coincidence window.
double m_CoincidenceWindow
Half-width of the time coincidence window used to create a 2D hit from 1D digits/hits.
ClassDef(KLMTimeWindow, 1)
Class version.
~KLMTimeWindow()
Destructor.
double getPromptTime() const
Get the prompt time.
double m_PromptTime
Nominal time of prompt BKLMHit2ds.
double getCoincidenceWindow() const
Get the coincidence window.
double m_PromptWindow
Half-width of the time window relative to the prompt time for BKLMHit2ds.
KLMTimeWindow(double coincidenceWindow, double promptTime, double promptWindow)
Constructor.
KLMTimeWindow()
Default constructor.
void setPromptWindow(double promptWindow)
Set the prompt time window.
Abstract base class for different kinds of events.