Belle II Software  release-08-01-10
CDCTriggerPlane.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 #include <TObject.h>
11 #include <TVector3.h>
12 
13 namespace Belle2 {
22  class CDCTriggerPlane: public TObject {
23  public:
24 
29 
33  const TVector3& getTriggerPosition() const
34  {
35  return m_position;
36  }
40  const TVector3& getTriggerDirection() const
41  {
42  return m_direction;
43  }
44 
48  const TVector3& getPmtPosition() const
49  {
50  return m_pmtPosition;
51  }
52 
56  double getLightPropSpeed() const
57  {
58  return m_lightPropSpeed;
59  }
60 
61  private:
62  TVector3 m_position;
63  TVector3 m_direction;
64  TVector3 m_pmtPosition;
65  double m_lightPropSpeed = 12.9925;
67  };
68 
70 } // end namespace Belle2
71 
Database object for timing offset (t0).
const TVector3 & getTriggerPosition() const
Getter for the center posotion of the trigger plane.
double getLightPropSpeed() const
Getter for the light speed in the scintillator.
TVector3 m_position
center position of the trigger plane.
TVector3 m_pmtPosition
edge position of the pmt.
double m_lightPropSpeed
light of speed in the trigger counter.
const TVector3 & getTriggerDirection() const
Getter for the normal vector to the trigger plane.
ClassDef(CDCTriggerPlane, 1)
ClassDef.
TVector3 m_direction
normal direction to the trigger plane.
CDCTriggerPlane()
Default constructor.
const TVector3 & getPmtPosition() const
Getter for the pmt position.
Abstract base class for different kinds of events.