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 {
24 class KLMTimeWindow : public TObject {
25 public:
26
32 m_PromptTime(0),
34 {
35 }
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
DBObject containing KLM time window parameters used in KLMReconstructor module.
Definition: KLMTimeWindow.h:24
double getPromptWindow() const
Get the prompt time window.
void setPromptTime(double promptTime)
Set the prompt time.
Definition: KLMTimeWindow.h:67
void setCoincidenceWindow(double coincidenceWindow)
Set the coincidence window.
Definition: KLMTimeWindow.h:58
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.
Definition: KLMTimeWindow.h:50
double getPromptTime() const
Get the prompt time.
Definition: KLMTimeWindow.h:92
double m_PromptTime
Nominal time of prompt BKLMHit2ds.
double getCoincidenceWindow() const
Get the coincidence window.
Definition: KLMTimeWindow.h:84
double m_PromptWindow
Half-width of the time window relative to the prompt time for BKLMHit2ds.
KLMTimeWindow(double coincidenceWindow, double promptTime, double promptWindow)
Constructor.
Definition: KLMTimeWindow.h:40
KLMTimeWindow()
Default constructor.
Definition: KLMTimeWindow.h:30
void setPromptWindow(double promptWindow)
Set the prompt time window.
Definition: KLMTimeWindow.h:76
Abstract base class for different kinds of events.