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