Belle II Software  release-05-01-25
ARICHB2LinkInfo.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Manca Mrvar *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <TObject.h>
13 
14 namespace Belle2 {
22  class ARICHB2LinkInfo: public TObject {
23  public:
24 
28  ARICHB2LinkInfo(): m_id(0), m_address(0), m_port(0) {};
29 
33  ARICHB2LinkInfo(int id, int address, int port): m_id(id), m_address(address), m_port(port) {};
34 
38  ~ARICHB2LinkInfo() {};
39 
43  int getB2LinkID() const {return m_id; }
44 
48  void setB2LinkID(int id) {m_id = id; }
49 
53  int getB2LinkAddress() const {return m_address; }
54 
58  void setB2LinkAddress(int address) {m_address = address; }
59 
63  int getB2LinkPort() const {return m_port; }
64 
68  void setB2LinkPort(int port) {m_port = port; }
69 
70 
71  private:
72 
73  int m_id;
74  int m_address;
75  int m_port;
78  };
80 } // end namespace Belle2
Belle2::ARICHB2LinkInfo::~ARICHB2LinkInfo
~ARICHB2LinkInfo()
Destructor.
Definition: ARICHB2LinkInfo.h:46
Belle2::ARICHB2LinkInfo::setB2LinkAddress
void setB2LinkAddress(int address)
Set Belle2 Link Address.
Definition: ARICHB2LinkInfo.h:66
Belle2::ARICHB2LinkInfo::getB2LinkID
int getB2LinkID() const
Return Belle2 Link Identifier.
Definition: ARICHB2LinkInfo.h:51
Belle2::ARICHB2LinkInfo::m_id
int m_id
Belle2Link Identifier.
Definition: ARICHB2LinkInfo.h:81
Belle2::ARICHB2LinkInfo::getB2LinkPort
int getB2LinkPort() const
Return Belle2 Link port.
Definition: ARICHB2LinkInfo.h:71
Belle2::ARICHB2LinkInfo::setB2LinkPort
void setB2LinkPort(int port)
Set Belle2 Link port.
Definition: ARICHB2LinkInfo.h:76
Belle2::ARICHB2LinkInfo::m_address
int m_address
Belle2Link address.
Definition: ARICHB2LinkInfo.h:82
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHB2LinkInfo::setB2LinkID
void setB2LinkID(int id)
Set Belle2 Link Identifier.
Definition: ARICHB2LinkInfo.h:56
Belle2::ARICHB2LinkInfo::ARICHB2LinkInfo
ARICHB2LinkInfo()
Default constructor.
Definition: ARICHB2LinkInfo.h:36
Belle2::ARICHB2LinkInfo::m_port
int m_port
integer Belle2Link port
Definition: ARICHB2LinkInfo.h:83
Belle2::ARICHB2LinkInfo::getB2LinkAddress
int getB2LinkAddress() const
Return Belle2 Link Address.
Definition: ARICHB2LinkInfo.h:61
Belle2::ARICHB2LinkInfo::ClassDef
ClassDef(ARICHB2LinkInfo, 1)
ClassDef.
Belle2::ARICHB2LinkInfo
List of Belle2Link Boards.
Definition: ARICHB2LinkInfo.h:30