ATLAS Offline Software
Loading...
Searching...
No Matches
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
 Default Constructor.
virtual ~ExampleHit ()=default
 Destructor.
double getX () const
double getY () const
double getZ () const
const std::string & getDetector () const
void setX (double x)
 Set the X coordinate.
void setY (double y)
 Set the Y coordinate.
void setZ (double z)
 Set the Z coordinate.
void setDetector (const std::string &detector)
 Set the detector string.
virtual void fillToken (INavigationToken &) const
virtual void fillToken (INavigationToken &, const std::any &) const

Private Attributes

HepGeom::Vector3D< double > m_vec {0.0, 0.0, 0.0}
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 ( )
default

Default Constructor.

◆ ~ExampleHit()

virtual ExampleHit::~ExampleHit ( )
virtualdefault

Destructor.

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); }
std::string m_detector
Definition ExampleHit.h:63

◆ getX()

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

Definition at line 34 of file ExampleHit.h.

34{ return(m_vec.x()); }
HepGeom::Vector3D< double > m_vec
Definition ExampleHit.h:62

◆ 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.

◆ 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); }
#define 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); }
#define 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); }
#define 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 {0.0, 0.0, 0.0}
private

Definition at line 62 of file ExampleHit.h.

62{0.0, 0.0, 0.0};

The documentation for this class was generated from the following file: