Belle II Software  release-06-02-00
BKLMSimHitPosition.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 /* Belle 2 headers. */
12 #include <framework/datastore/RelationsObject.h>
13 
14 /* ROOT headers. */
15 #include <TVector3.h>
16 
17 namespace Belle2 {
25 
26  public:
27 
30  {
31  }
32 
37  BKLMSimHitPosition(double x, double y, double z) : RelationsObject()
38  {
39  m_Position.SetX(x); m_Position.SetY(y); m_Position.SetZ(z);
40  }
41 
44  {
45  }
46 
49  {
50  }
51 
54  {
55  m_Position = p.m_Position; return *this;
56  }
57 
60  const TVector3& getPosition()
61  {
62  return m_Position;
63  }
64 
65  private:
66 
68  TVector3 m_Position;
69 
72 
73  };
74 
76 } // end of namespace Belle2
Store one simulation hit's global position as a ROOT object.
TVector3 m_Position
BKLMSimHit's global position (cm)
BKLMSimHitPosition()
Empty constructor for ROOT IO (needed to make the class storable)
BKLMSimHitPosition & operator=(const BKLMSimHitPosition &p)
Assignment operator.
BKLMSimHitPosition(const BKLMSimHitPosition &p)
Copy constructor.
const TVector3 & getPosition()
Get the BKLMSimHit's global position.
ClassDef(BKLMSimHitPosition, 1)
Needed to make the ROOT object storable.
BKLMSimHitPosition(double x, double y, double z)
Constructor with initial values (from simulation step)
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.