Belle II Software  release-08-01-10
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 
12 namespace Belle2 {
20  class ARICHFirmware: public TObject {
21  public:
26 
30  explicit ARICHFirmware(int version): m_comment(""), m_version(version), m_firmware("") {};
31 
35  ARICHFirmware(const std::string& comment, int version, const std::string& firmware): m_comment(comment), m_version(version),
36  m_firmware(firmware) {};
37 
42 
46  std::string getFirmwareComment() const {return m_comment; }
47 
51  void setFirmwareComment(const std::string& comment) {m_comment = comment; }
52 
56  unsigned int getFirmwareVersion() const {return m_version; }
57 
61  void setFirmwareVersion(unsigned int version) {m_version = version; }
62 
66  std::string getFPGA() const {return m_firmware; }
67 
71  void setFPGA(const std::string& firmware) {m_firmware = firmware; }
72 
73 
74  private:
75  std::string m_comment;
76  unsigned int m_version;
77  std::string m_firmware;
80  };
82 } // end namespace Belle2
83 
ARICH firmware.
Definition: ARICHFirmware.h:20
std::string m_comment
comment
Definition: ARICHFirmware.h:75
void setFirmwareComment(const std::string &comment)
Set comment.
Definition: ARICHFirmware.h:51
unsigned int getFirmwareVersion() const
Return Version Number.
Definition: ARICHFirmware.h:56
ClassDef(ARICHFirmware, 1)
ClassDef.
std::string getFPGA() const
Return FPGA bitfile.
Definition: ARICHFirmware.h:66
ARICHFirmware()
Default constructor.
Definition: ARICHFirmware.h:25
std::string getFirmwareComment() const
Return comment.
Definition: ARICHFirmware.h:46
std::string m_firmware
FPGA bitfile.
Definition: ARICHFirmware.h:77
void setFirmwareVersion(unsigned int version)
Set Version Number.
Definition: ARICHFirmware.h:61
ARICHFirmware(int version)
Constructor.
Definition: ARICHFirmware.h:30
unsigned int m_version
version number
Definition: ARICHFirmware.h:76
ARICHFirmware(const std::string &comment, int version, const std::string &firmware)
Constructor.
Definition: ARICHFirmware.h:35
~ARICHFirmware()
Destructor.
Definition: ARICHFirmware.h:41
void setFPGA(const std::string &firmware)
Set FPGA bitfile.
Definition: ARICHFirmware.h:71
Abstract base class for different kinds of events.