Belle II Software  release-05-01-25
ARICHCableInfo.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 
13 #include <TObject.h>
14 #include <string>
15 
16 namespace Belle2 {
26  class ARICHCableInfo: public TObject {
27  public:
31  ARICHCableInfo(): m_id(0), m_type(0), m_length(0), m_comment("") {};
32 
36  ARICHCableInfo(int id, int type, float length): m_id(id), m_type(type), m_length(length), m_comment("") {};
37 
41  ARICHCableInfo(int id, int type, float length, const std::string& comment): m_id(id), m_type(type), m_length(length),
42  m_comment(comment) {};
43 
47  ~ARICHCableInfo() {};
48 
52  int getCableID() const {return m_id; }
53 
57  void setCableID(int id) {m_id = id; }
58 
62  int getCableType() const {return m_type; }
63 
67  void setCableType(int type) {m_type = type; }
68 
72  float getCableLength() const {return m_length; }
73 
77  void setCableLength(float length) {m_length = length; }
78 
82  std::string getCableComment() const {return m_comment; }
83 
87  void setCableComment(const std::string& comment) {m_comment = comment; }
88 
89 
90  private:
91  int m_id;
92  int m_type;
93  float m_length;
94  std::string m_comment;
97  };
99 } // end namespace Belle2
Belle2::ARICHCableInfo::getCableType
int getCableType() const
Return Cable Type.
Definition: ARICHCableInfo.h:70
Belle2::ARICHCableInfo::ARICHCableInfo
ARICHCableInfo()
Default constructor.
Definition: ARICHCableInfo.h:39
Belle2::ARICHCableInfo::getCableComment
std::string getCableComment() const
Return comment.
Definition: ARICHCableInfo.h:90
Belle2::ARICHCableInfo::getCableID
int getCableID() const
Return Cable Identifier.
Definition: ARICHCableInfo.h:60
Belle2::ARICHCableInfo::m_length
float m_length
Length of the Cable.
Definition: ARICHCableInfo.h:101
Belle2::ARICHCableInfo::setCableID
void setCableID(int id)
Set Cable Identifier.
Definition: ARICHCableInfo.h:65
Belle2::ARICHCableInfo::setCableLength
void setCableLength(float length)
Set Cable Length.
Definition: ARICHCableInfo.h:85
Belle2::ARICHCableInfo::getCableLength
float getCableLength() const
Return Cable Type.
Definition: ARICHCableInfo.h:80
Belle2::ARICHCableInfo::setCableType
void setCableType(int type)
Set Cable Type.
Definition: ARICHCableInfo.h:75
Belle2::ARICHCableInfo::m_id
int m_id
Cable Identifier.
Definition: ARICHCableInfo.h:99
Belle2::ARICHCableInfo::m_comment
std::string m_comment
comment
Definition: ARICHCableInfo.h:102
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHCableInfo
List of Cables.
Definition: ARICHCableInfo.h:34
Belle2::ARICHCableInfo::m_type
int m_type
Cable Type.
Definition: ARICHCableInfo.h:100
Belle2::ARICHCableInfo::setCableComment
void setCableComment(const std::string &comment)
Set comment.
Definition: ARICHCableInfo.h:95
Belle2::ARICHCableInfo::~ARICHCableInfo
~ARICHCableInfo()
Destructor.
Definition: ARICHCableInfo.h:55
Belle2::ARICHCableInfo::ClassDef
ClassDef(ARICHCableInfo, 1)
ClassDef.