Belle II Software  release-05-01-25
BKLMSimHitPosition.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Leo Piilonen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* Belle 2 headers. */
14 #include <framework/datastore/RelationsObject.h>
15 
16 /* ROOT headers. */
17 #include <TVector3.h>
18 
19 namespace Belle2 {
25  class BKLMSimHitPosition : public RelationsObject {
27 
28  public:
29 
32  {
33  }
34 
39  BKLMSimHitPosition(double x, double y, double z) : RelationsObject()
40  {
41  m_Position.SetX(x); m_Position.SetY(y); m_Position.SetZ(z);
42  }
43 
45  virtual ~BKLMSimHitPosition()
46  {
47  }
48 
51  {
52  }
53 
56  {
57  m_Position = p.m_Position; return *this;
58  }
59 
62  const TVector3& getPosition()
63  {
64  return m_Position;
65  }
66 
67  private:
68 
70  TVector3 m_Position;
71 
74 
75  };
76 
78 } // end of namespace Belle2
Belle2::BKLMSimHitPosition::getPosition
const TVector3 & getPosition()
Get the BKLMSimHit's global position.
Definition: BKLMSimHitPosition.h:70
Belle2::BKLMSimHitPosition::m_Position
TVector3 m_Position
BKLMSimHit's global position (cm)
Definition: BKLMSimHitPosition.h:78
Belle2::BKLMSimHitPosition::ClassDef
ClassDef(BKLMSimHitPosition, 1)
Needed to make the ROOT object storable.
Belle2::BKLMSimHitPosition::operator=
BKLMSimHitPosition & operator=(const BKLMSimHitPosition &p)
Assignment operator.
Definition: BKLMSimHitPosition.h:63
Belle2::BKLMSimHitPosition
Store one simulation hit's global position as a ROOT object.
Definition: BKLMSimHitPosition.h:34
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BKLMSimHitPosition::~BKLMSimHitPosition
virtual ~BKLMSimHitPosition()
Destructor.
Definition: BKLMSimHitPosition.h:53
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::BKLMSimHitPosition::BKLMSimHitPosition
BKLMSimHitPosition()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: BKLMSimHitPosition.h:39
Belle2::RelationsInterface
Defines interface for accessing relations of objects in StoreArray.
Definition: RelationsObject.h:102