Belle II Software  release-08-01-10
ARICHMirrorMap.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 
10 #pragma once
11 #include <TObject.h>
12 #include <TTimeStamp.h>
13 #include <string>
14 #include <arich/dbobjects/ARICHMirrorInfo.h>
15 
16 namespace Belle2 {
24  class ARICHMirrorMap: public TObject {
25  public:
30 
34  ARICHMirrorMap(ARICHMirrorInfo* mirror, int column, TTimeStamp timeStamp): m_mirror(mirror), m_column(column),
35  m_timeStamp(timeStamp), m_comment("") {};
36 
40  ARICHMirrorMap(ARICHMirrorInfo* mirror, int column, TTimeStamp timeStamp, const std::string& comment): m_mirror(mirror),
41  m_column(column),
42  m_timeStamp(timeStamp), m_comment(comment) {};
43 
48 
52  ARICHMirrorInfo* getMirrorID() const {return m_mirror; }
53 
57  void setMirrorID(ARICHMirrorInfo* mirror) {m_mirror = mirror; }
58 
62  int getMirrorPosition() const {return m_column; }
63 
67  void setMirrorPosition(int column) {m_column = column; }
68 
72  TTimeStamp getMirrorTimeStamp() const {return m_timeStamp; }
73 
77  void setMirrorTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
78 
82  std::string getMirrorComment() const {return m_comment; }
83 
87  void setMirrorComment(const std::string& comment) {m_comment = comment; }
88 
89 
90  private:
91 
93  int m_column;
94  TTimeStamp m_timeStamp;
95  std::string m_comment;
98  };
100 } // end namespace Belle2
101 
102 
103 
List of MergerBoards.
Mapping of the mirrors on the detector.
std::string m_comment
optional comment
TTimeStamp m_timeStamp
Installation Date.
TTimeStamp getMirrorTimeStamp() const
Return Installation date.
int m_column
Position on the detector.
ARICHMirrorInfo * getMirrorID() const
Return Mirror Identifier.
std::string getMirrorComment() const
Return comment.
void setMirrorPosition(int column)
Set Position on the detector.
ARICHMirrorInfo * m_mirror
Mirror identifier.
void setMirrorTimeStamp(TTimeStamp timeStamp)
Set Installation date.
void setMirrorComment(const std::string &comment)
Set comment.
void setMirrorID(ARICHMirrorInfo *mirror)
Set Mirror Identifier.
int getMirrorPosition() const
Return Position on the detector.
ARICHMirrorMap(ARICHMirrorInfo *mirror, int column, TTimeStamp timeStamp, const std::string &comment)
Constructor.
ARICHMirrorMap()
Default constructor.
~ARICHMirrorMap()
Destructor.
ARICHMirrorMap(ARICHMirrorInfo *mirror, int column, TTimeStamp timeStamp)
Constructor.
ClassDef(ARICHMirrorMap, 1)
ClassDef.
Abstract base class for different kinds of events.