ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ExampleHit Class Reference

This class provides a dummy hit data object for AthenaPool. More...

#include <ExampleHit.h>

Inheritance diagram for ExampleHit:
Collaboration diagram for ExampleHit:

Public Member Functions

 ExampleHit ()
 Default Constructor. More...
 
virtual ~ExampleHit ()
 Destructor. More...
 
double getX () const
 
double getY () const
 
double getZ () const
 
const std::string & getDetector () const
 
void setX (double x)
 Set the X coordinate. More...
 
void setY (double y)
 Set the Y coordinate. More...
 
void setZ (double z)
 Set the Z coordinate. More...
 
void setDetector (const std::string &detector)
 Set the detector string. More...
 
virtual void fillToken (INavigationToken &) const
 
virtual void fillToken (INavigationToken &, const std::any &) const
 

Private Attributes

HepGeom::Vector3D< double > m_vec
 
std::string m_detector
 

Detailed Description

This class provides a dummy hit data object for AthenaPool.

The new ExampleHit after schema evolution: 3 doubles were replaced by CLHEP::Vector3D<double>

Definition at line 24 of file ExampleHit.h.

Constructor & Destructor Documentation

◆ ExampleHit()

ExampleHit::ExampleHit ( )
inline

Default Constructor.

Definition at line 28 of file ExampleHit.h.

28 : m_vec(0.0, 0.0, 0.0), m_detector("") {}

◆ ~ExampleHit()

virtual ExampleHit::~ExampleHit ( )
inlinevirtual

Destructor.

Definition at line 30 of file ExampleHit.h.

30 {}

Member Function Documentation

◆ fillToken() [1/2]

virtual void NavigableTerminalNode::fillToken ( INavigationToken ) const
inlinevirtualinherited

Implements INavigable.

Definition at line 31 of file NavigableTerminalNode.h.

31 { };

◆ fillToken() [2/2]

virtual void NavigableTerminalNode::fillToken ( INavigationToken ,
const std::any &   
) const
inlinevirtualinherited

Implements INavigable.

Definition at line 32 of file NavigableTerminalNode.h.

32 { };

◆ getDetector()

const std::string& ExampleHit::getDetector ( ) const
inline
Returns
the detector string.

Definition at line 43 of file ExampleHit.h.

43 { return(m_detector); }

◆ getX()

double ExampleHit::getX ( ) const
inline
Returns
the X coordinate.

Definition at line 34 of file ExampleHit.h.

34 { return(m_vec.x()); }

◆ getY()

double ExampleHit::getY ( ) const
inline
Returns
the Y coordinate.

Definition at line 37 of file ExampleHit.h.

37 { return(m_vec.y()); }

◆ getZ()

double ExampleHit::getZ ( ) const
inline
Returns
the Z coordinate.

Definition at line 40 of file ExampleHit.h.

40 { return(m_vec.z()); }

◆ setDetector()

void ExampleHit::setDetector ( const std::string &  detector)
inline

Set the detector string.

Parameters
detector[IN] detector string.

Definition at line 59 of file ExampleHit.h.

59 { m_detector = detector; }

◆ setX()

void ExampleHit::setX ( double  x)
inline

Set the X coordinate.

Parameters
x[IN] X coordinate.

Definition at line 47 of file ExampleHit.h.

47 { m_vec.setX(x); }

◆ setY()

void ExampleHit::setY ( double  y)
inline

Set the Y coordinate.

Parameters
y[IN] Y coordinate.

Definition at line 51 of file ExampleHit.h.

51 { m_vec.setY(y); }

◆ setZ()

void ExampleHit::setZ ( double  z)
inline

Set the Z coordinate.

Parameters
z[IN] Z coordinate.

Definition at line 55 of file ExampleHit.h.

55 { m_vec.setZ(z); }

Member Data Documentation

◆ m_detector

std::string ExampleHit::m_detector
private

Definition at line 63 of file ExampleHit.h.

◆ m_vec

HepGeom::Vector3D<double> ExampleHit::m_vec
private

Definition at line 62 of file ExampleHit.h.


The documentation for this class was generated from the following file:
ExampleHit::m_vec
HepGeom::Vector3D< double > m_vec
Definition: ExampleHit.h:62
x
#define x
TRT::Hit::detector
@ detector
Definition: HitInfo.h:78
ExampleHit::m_detector
std::string m_detector
Definition: ExampleHit.h:63
z
#define z
y
#define y