Belle II Software  release-08-01-10
KLMTimeCableDelay.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 /* KLM headers. */
12 #include <klm/dataobjects/KLMElementNumberDefinitions.h>
13 
14 /* ROOT headers. */
15 #include <TObject.h>
16 
17 /* C++ headers. */
18 #include <map>
19 
20 namespace Belle2 {
29  class KLMTimeCableDelay : public TObject {
30 
31  public:
32 
37 
42 
48  void setTimeDelay(KLMChannelNumber channel, float timeDelay);
49 
54  float getTimeDelay(KLMChannelNumber channel) const;
55 
59  void clearTimeDelay();
60 
61  private:
62 
64  std::map<KLMChannelNumber, float> m_timeDelay;
65 
68 
69  };
70 
72 }
Class to store BKLM delay time coused by cable in the database.
ClassDef(KLMTimeCableDelay, 1)
Class version.
void clearTimeDelay()
Clear the time calibration constants.
std::map< KLMChannelNumber, float > m_timeDelay
Map of the time calibration constants.
float getTimeDelay(KLMChannelNumber channel) const
Get the time calibration constant.
void setTimeDelay(KLMChannelNumber channel, float timeDelay)
Set the time calibration constant.
uint16_t KLMChannelNumber
Channel number.
Abstract base class for different kinds of events.