Belle II Software  release-08-01-10
VXDGeoSensorPlacementPar.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 #pragma once
9 
10 
11 #include <TObject.h>
12 #include <string>
13 
14 
15 namespace Belle2 {
27  class VXDGeoSensorPlacementPar: public TObject {
28 
29  public:
31  VXDGeoSensorPlacementPar(int sensorID = 0, const std::string& sensorTypeID = "", double z = 0,
32  bool flipU = false, bool flipV = false, bool flipW = false):
33  m_sensorID(sensorID), m_sensorTypeID(sensorTypeID), m_z(z), m_flipU(flipU), m_flipV(flipV), m_flipW(flipW) {}
37  int getSensorID() const { return m_sensorID; }
39  void setSensorID(int sensorID) { m_sensorID = sensorID; }
41  const std::string& getSensorTypeID() const { return m_sensorTypeID; }
43  void setSensorTypeID(const std::string& sensorTypeID) { m_sensorTypeID = sensorTypeID; }
45  double getZ() const { return m_z; }
47  void setZ(double z) { m_z = z; }
49  bool getFlipU() const { return m_flipU; }
51  void setFlipU(bool flipU) { m_flipU = flipU; }
53  bool getFlipV() const { return m_flipV; }
55  void setFlipV(bool flipV) { m_flipV = flipV; }
57  bool getFlipW() const { return m_flipW; }
59  void setFlipW(bool flipW) { m_flipW = flipW; }
60 
61  private:
62 
66  std::string m_sensorTypeID;
68  double m_z;
70  bool m_flipU;
72  bool m_flipV;
74  bool m_flipW;
75 
78  };
80 } // end of namespace Belle2
81 
The Class for VXD Sensor Placement payload.
void setFlipW(bool flipW)
set whether or not the sensor should be flipped around the W coordinate
void setFlipU(bool flipU)
set whether or not the sensor should be flipped around the U coordinate
bool getFlipV() const
return whether or not the sensor should be flipped around the V coordinate
ClassDef(VXDGeoSensorPlacementPar, 5)
ClassDef, must be the last term before the closing {}.
int getSensorID() const
get the sensor id inside the ladder
void setSensorID(int sensorID)
set the sensor id inside the ladder
void setSensorTypeID(const std::string &sensorTypeID)
set the sensor type id, internal id only needed for construction
void setZ(double z)
set the z position of the sensor
const std::string & getSensorTypeID() const
get the sensor type id, internal id only needed for construction
std::string m_sensorTypeID
Type of the sensor to be used.
bool getFlipU() const
return whether or not the sensor should be flipped around the U coordinate
void setFlipV(bool flipV)
set whether or not the sensor should be flipped around the V coordinate
double getZ() const
get the z position of the sensor
int m_sensorID
ID of the sensor inside the ladder.
bool getFlipW() const
return whether or not the sensor should be flipped around the W coordinate
VXDGeoSensorPlacementPar(int sensorID=0, const std::string &sensorTypeID="", double z=0, bool flipU=false, bool flipV=false, bool flipW=false)
Constructor.
double m_z
global z position of the center of the sensor
Abstract base class for different kinds of events.