Belle II Software  release-08-01-10
ARICHCableInfo.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 #include <TObject.h>
12 #include <string>
13 
14 namespace Belle2 {
24  class ARICHCableInfo: public TObject {
25  public:
29  ARICHCableInfo(): m_id(0), m_type(0), m_length(0), m_comment("") {};
30 
34  ARICHCableInfo(int id, int type, float length): m_id(id), m_type(type), m_length(length), m_comment("") {};
35 
39  ARICHCableInfo(int id, int type, float length, const std::string& comment): m_id(id), m_type(type), m_length(length),
40  m_comment(comment) {};
41 
46 
50  int getCableID() const {return m_id; }
51 
55  void setCableID(int id) {m_id = id; }
56 
60  int getCableType() const {return m_type; }
61 
65  void setCableType(int type) {m_type = type; }
66 
70  float getCableLength() const {return m_length; }
71 
75  void setCableLength(float length) {m_length = length; }
76 
80  std::string getCableComment() const {return m_comment; }
81 
85  void setCableComment(const std::string& comment) {m_comment = comment; }
86 
87 
88  private:
89  int m_id;
90  int m_type;
91  float m_length;
92  std::string m_comment;
95  };
97 } // end namespace Belle2
std::string m_comment
comment
void setCableID(int id)
Set Cable Identifier.
int getCableType() const
Return Cable Type.
void setCableComment(const std::string &comment)
Set comment.
void setCableLength(float length)
Set Cable Length.
ARICHCableInfo(int id, int type, float length)
Constructor.
std::string getCableComment() const
Return comment.
void setCableType(int type)
Set Cable Type.
ARICHCableInfo()
Default constructor.
int m_type
Cable Type.
int m_id
Cable Identifier.
float getCableLength() const
Return Cable Type.
ClassDef(ARICHCableInfo, 1)
ClassDef.
ARICHCableInfo(int id, int type, float length, const std::string &comment)
Constructor.
float m_length
Length of the Cable.
~ARICHCableInfo()
Destructor.
int getCableID() const
Return Cable Identifier.
Abstract base class for different kinds of events.