Belle II Software  release-05-01-25
VXDGeoSensorPlacementPar.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 
13 #include <TObject.h>
14 #include <string>
15 
16 
17 namespace Belle2 {
29  class VXDGeoSensorPlacementPar: public TObject {
30 
31  public:
33  VXDGeoSensorPlacementPar(int sensorID = 0, const std::string& sensorTypeID = "", double z = 0,
34  bool flipU = false, bool flipV = false, bool flipW = false):
35  m_sensorID(sensorID), m_sensorTypeID(sensorTypeID), m_z(z), m_flipU(flipU), m_flipV(flipV), m_flipW(flipW) {}
39  int getSensorID() const { return m_sensorID; }
41  void setSensorID(int sensorID) { m_sensorID = sensorID; }
43  const std::string& getSensorTypeID() const { return m_sensorTypeID; }
45  void setSensorTypeID(const std::string& sensorTypeID) { m_sensorTypeID = sensorTypeID; }
47  double getZ() const { return m_z; }
49  void setZ(double z) { m_z = z; }
51  bool getFlipU() const { return m_flipU; }
53  void setFlipU(bool flipU) { m_flipU = flipU; }
55  bool getFlipV() const { return m_flipV; }
57  void setFlipV(bool flipV) { m_flipV = flipV; }
59  bool getFlipW() const { return m_flipW; }
61  void setFlipW(bool flipW) { m_flipW = flipW; }
62 
63  private:
64 
66  int m_sensorID;
68  std::string m_sensorTypeID;
70  double m_z;
72  bool m_flipU;
74  bool m_flipV;
76  bool m_flipW;
77 
80  };
82 } // end of namespace Belle2
83 
Belle2::VXDGeoSensorPlacementPar::getSensorTypeID
const std::string & getSensorTypeID() const
get the sensor type id, internal id only needed for construction
Definition: VXDGeoSensorPlacementPar.h:51
Belle2::VXDGeoSensorPlacementPar::setZ
void setZ(double z)
set the z position of the sensor
Definition: VXDGeoSensorPlacementPar.h:57
Belle2::VXDGeoSensorPlacementPar::m_flipW
bool m_flipW
flip sensor along w?
Definition: VXDGeoSensorPlacementPar.h:84
Belle2::VXDGeoSensorPlacementPar::ClassDef
ClassDef(VXDGeoSensorPlacementPar, 5)
ClassDef, must be the last term before the closing {}.
Belle2::VXDGeoSensorPlacementPar::getFlipU
bool getFlipU() const
return whether or not the sensor should be flipped around the U coordinate
Definition: VXDGeoSensorPlacementPar.h:59
Belle2::VXDGeoSensorPlacementPar::setSensorID
void setSensorID(int sensorID)
set the sensor id inside the ladder
Definition: VXDGeoSensorPlacementPar.h:49
Belle2::VXDGeoSensorPlacementPar::m_flipU
bool m_flipU
flip sensor along u?
Definition: VXDGeoSensorPlacementPar.h:80
Belle2::VXDGeoSensorPlacementPar::m_sensorTypeID
std::string m_sensorTypeID
Type of the sensor to be used.
Definition: VXDGeoSensorPlacementPar.h:76
Belle2::VXDGeoSensorPlacementPar::getFlipV
bool getFlipV() const
return whether or not the sensor should be flipped around the V coordinate
Definition: VXDGeoSensorPlacementPar.h:63
Belle2::VXDGeoSensorPlacementPar::getSensorID
int getSensorID() const
get the sensor id inside the ladder
Definition: VXDGeoSensorPlacementPar.h:47
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::VXDGeoSensorPlacementPar::setFlipU
void setFlipU(bool flipU)
set whether or not the sensor should be flipped around the U coordinate
Definition: VXDGeoSensorPlacementPar.h:61
Belle2::VXDGeoSensorPlacementPar::VXDGeoSensorPlacementPar
VXDGeoSensorPlacementPar(int sensorID=0, const std::string &sensorTypeID="", double z=0, bool flipU=false, bool flipV=false, bool flipW=false)
Constructor.
Definition: VXDGeoSensorPlacementPar.h:41
Belle2::VXDGeoSensorPlacementPar::setSensorTypeID
void setSensorTypeID(const std::string &sensorTypeID)
set the sensor type id, internal id only needed for construction
Definition: VXDGeoSensorPlacementPar.h:53
Belle2::VXDGeoSensorPlacementPar::getZ
double getZ() const
get the z position of the sensor
Definition: VXDGeoSensorPlacementPar.h:55
Belle2::VXDGeoSensorPlacementPar::setFlipW
void setFlipW(bool flipW)
set whether or not the sensor should be flipped around the W coordinate
Definition: VXDGeoSensorPlacementPar.h:69
Belle2::VXDGeoSensorPlacementPar
The Class for VXD Sensor Placement payload.
Definition: VXDGeoSensorPlacementPar.h:37
Belle2::VXDGeoSensorPlacementPar::m_sensorID
int m_sensorID
ID of the sensor inside the ladder.
Definition: VXDGeoSensorPlacementPar.h:74
Belle2::VXDGeoSensorPlacementPar::getFlipW
bool getFlipW() const
return whether or not the sensor should be flipped around the W coordinate
Definition: VXDGeoSensorPlacementPar.h:67
Belle2::VXDGeoSensorPlacementPar::m_z
double m_z
global z position of the center of the sensor
Definition: VXDGeoSensorPlacementPar.h:78
Belle2::VXDGeoSensorPlacementPar::setFlipV
void setFlipV(bool flipV)
set whether or not the sensor should be flipped around the V coordinate
Definition: VXDGeoSensorPlacementPar.h:65
Belle2::VXDGeoSensorPlacementPar::~VXDGeoSensorPlacementPar
~VXDGeoSensorPlacementPar()
Destructor.
Definition: VXDGeoSensorPlacementPar.h:45
Belle2::VXDGeoSensorPlacementPar::m_flipV
bool m_flipV
flip sensor along v?
Definition: VXDGeoSensorPlacementPar.h:82