Belle II Software  release-06-00-14
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 <cstdint>
19 #include <map>
20 
21 namespace Belle2 {
30  class KLMTimeCableDelay : public TObject {
31 
32  public:
33 
38 
43 
49  void setTimeDelay(KLMChannelNumber channel, float timeDelay);
50 
55  float getTimeDelay(KLMChannelNumber channel) const;
56 
60  void clearTimeDelay();
61 
62  private:
63 
65  std::map<KLMChannelNumber, float> m_timeDelay;
66 
69 
70  };
71 
73 }
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.