Belle II Software  release-05-01-25
EKLMChannelDataImporter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kirill Chilikin *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* KLM headers. */
14 #include <klm/dbobjects/eklm/EKLMChannels.h>
15 
16 /* Belle 2 headers. */
17 #include <framework/database/DBImportObjPtr.h>
18 
19 namespace Belle2 {
28  class EKLMChannelDataImporter {
29 
30  public:
31 
36 
41 
45  void setIOV(int experimentLow, int runLow, int experimentHigh, int runHigh);
46 
51  void loadChannelData(EKLMChannelData* channelData);
52 
62  void setChannelData(int section, int layer, int sector, int plane,
63  int strip, EKLMChannelData* channelData);
64 
69  void loadActiveChannels(const char* activeChannelsData);
70 
75  void loadHighVoltage(const char* highVoltageData);
76 
81  void loadLookbackWindow(const char* lookbackWindowData);
82 
88  void loadThresholds(const char* thresholdsData);
89 
93  void importChannelData();
94 
95  private:
96 
99 
101  int m_ExperimentLow = 0;
102 
104  int m_RunLow = 0;
105 
107  int m_ExperimentHigh = -1;
108 
110  int m_RunHigh = -1;
111 
112  };
113 
115 }
Belle2::EKLMChannelDataImporter::setChannelData
void setChannelData(int section, int layer, int sector, int plane, int strip, EKLMChannelData *channelData)
Set channel data.
Definition: EKLMChannelDataImporter.cc:72
Belle2::EKLMChannelData
EKLM channel data.
Definition: EKLMChannelData.h:33
Belle2::EKLMChannelDataImporter::loadChannelData
void loadChannelData(EKLMChannelData *channelData)
Load specific channel data to all channels.
Definition: EKLMChannelDataImporter.cc:50
Belle2::EKLMChannelDataImporter::loadThresholds
void loadThresholds(const char *thresholdsData)
Load thresholds and adjustment voltages from ROOT file.
Definition: EKLMChannelDataImporter.cc:239
Belle2::EKLMChannelDataImporter::loadActiveChannels
void loadActiveChannels(const char *activeChannelsData)
Load active channels from ROOT file.
Definition: EKLMChannelDataImporter.cc:83
Belle2::EKLMChannelDataImporter::m_RunHigh
int m_RunHigh
High run.
Definition: EKLMChannelDataImporter.h:118
Belle2::EKLMChannelDataImporter::importChannelData
void importChannelData()
Import channel data.
Definition: EKLMChannelDataImporter.cc:296
Belle2::EKLMChannelDataImporter::~EKLMChannelDataImporter
~EKLMChannelDataImporter()
Destructor.
Definition: EKLMChannelDataImporter.cc:37
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EKLMChannelDataImporter::setIOV
void setIOV(int experimentLow, int runLow, int experimentHigh, int runHigh)
Set interval of validity.
Definition: EKLMChannelDataImporter.cc:41
Belle2::DBImportObjPtr
Class for importing a single object to the database.
Definition: DBImportObjPtr.h:33
Belle2::EKLMChannelDataImporter::EKLMChannelDataImporter
EKLMChannelDataImporter()
Constructor.
Definition: EKLMChannelDataImporter.cc:33
Belle2::EKLMChannelDataImporter::loadLookbackWindow
void loadLookbackWindow(const char *lookbackWindowData)
Load lookback window from ROOT file.
Definition: EKLMChannelDataImporter.cc:185
Belle2::EKLMChannelDataImporter::m_Channels
DBImportObjPtr< EKLMChannels > m_Channels
Channel data.
Definition: EKLMChannelDataImporter.h:106
Belle2::EKLMChannelDataImporter::m_ExperimentHigh
int m_ExperimentHigh
High experiment.
Definition: EKLMChannelDataImporter.h:115
Belle2::EKLMChannelDataImporter::m_RunLow
int m_RunLow
Low run.
Definition: EKLMChannelDataImporter.h:112
Belle2::EKLMChannelDataImporter::loadHighVoltage
void loadHighVoltage(const char *highVoltageData)
Load high voltage from ROOT file.
Definition: EKLMChannelDataImporter.cc:133
Belle2::EKLMChannelDataImporter::m_ExperimentLow
int m_ExperimentLow
Low experiment.
Definition: EKLMChannelDataImporter.h:109