Belle II Software development
ARICHFirmware.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#include <TObject.h>
11
12namespace Belle2 {
21 class ARICHFirmware: public TObject {
22
23 public:
24
29
33 explicit ARICHFirmware(int version): m_comment(""), m_version(version), m_firmware("") {};
34
38 ARICHFirmware(const std::string& comment, int version, const std::string& firmware): m_comment(comment), m_version(version),
39 m_firmware(firmware) {};
40
45
50 std::string getFirmwareComment() const {return m_comment; }
51
56 void setFirmwareComment(const std::string& comment) {m_comment = comment; }
57
62 unsigned int getFirmwareVersion() const {return m_version; }
63
68 void setFirmwareVersion(unsigned int version) {m_version = version; }
69
74 std::string getFPGA() const {return m_firmware; }
75
80 void setFPGA(const std::string& firmware) {m_firmware = firmware; }
81
82
83 private:
84 std::string m_comment;
85 unsigned int m_version;
86 std::string m_firmware;
89 };
91} // end namespace Belle2
92
ARICH firmware.
Definition: ARICHFirmware.h:21
std::string m_comment
comment
Definition: ARICHFirmware.h:84
void setFirmwareComment(const std::string &comment)
Set comment.
Definition: ARICHFirmware.h:56
unsigned int getFirmwareVersion() const
Get version number.
Definition: ARICHFirmware.h:62
ClassDef(ARICHFirmware, 1)
ClassDef.
std::string getFPGA() const
Get FPGA bitfile.
Definition: ARICHFirmware.h:74
ARICHFirmware()
Default constructor.
Definition: ARICHFirmware.h:28
std::string getFirmwareComment() const
Get comment.
Definition: ARICHFirmware.h:50
std::string m_firmware
FPGA bitfile.
Definition: ARICHFirmware.h:86
void setFirmwareVersion(unsigned int version)
Set version number.
Definition: ARICHFirmware.h:68
ARICHFirmware(int version)
Constructor.
Definition: ARICHFirmware.h:33
unsigned int m_version
version number
Definition: ARICHFirmware.h:85
ARICHFirmware(const std::string &comment, int version, const std::string &firmware)
Constructor.
Definition: ARICHFirmware.h:38
~ARICHFirmware()
Destructor.
Definition: ARICHFirmware.h:44
void setFPGA(const std::string &firmware)
Set FPGA bitfile.
Definition: ARICHFirmware.h:80
Abstract base class for different kinds of events.