Belle II Software  release-08-01-10
ARICHAeroTilesAlignment.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 <arich/dbobjects/ARICHGeoBase.h>
12 #include <arich/dbobjects/ARICHPositionElement.h>
13 
14 namespace Belle2 {
24  public:
25 
30  {}
31 
37  void setAlignmentElement(int id, const ARICHPositionElement& pars)
38  {
39  m_elements[id - 1] = pars;
40  }
41 
46  const ARICHPositionElement& getAlignmentElement(int mirrorID) const
47  {
48  return m_elements[mirrorID - 1];
49  }
50 
54  void print(const std::string& title = "Aerogel tilesAlignment Parameters") const
55  {
56  ARICHGeoBase::print(title);
57  int i = 1;
58  for (auto el : m_elements) { std::cout << "Aerogel tile slot " << i++ << std::endl; el.print(); std::cout << std::endl;}
59  }
60 
61 
62  private:
63 
64  std::vector<ARICHPositionElement> m_elements{std::vector<ARICHPositionElement>(124)};
67  };
68 
70 } // end namespace Belle2
Alignment parameters for aerogel tiles.
void print(const std::string &title="Aerogel tilesAlignment Parameters") const
Prints parameters of aerogel tiles alignment.
ARICHAeroTilesAlignment()
Default constructor.
ClassDef(ARICHAeroTilesAlignment, 1)
ClassDef.
const ARICHPositionElement & getAlignmentElement(int mirrorID) const
Returns alignment parameters for given aerogel tile.
void setAlignmentElement(int id, const ARICHPositionElement &pars)
Sets Alignment parameters (element) for aerogel tile.
std::vector< ARICHPositionElement > m_elements
vector of position elements for alignment
Base class for geometry parameters.
Definition: ARICHGeoBase.h:24
virtual void print(const std::string &title) const
Print the content of the class.
Definition: ARICHGeoBase.cc:20
Position element for ARICH.
Abstract base class for different kinds of events.