ATLAS Offline Software
Loading...
Searching...
No Matches
ExampleTrack Class Reference

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

#include <ExampleTrack.h>

Collaboration diagram for ExampleTrack:

Public Member Functions

 ExampleTrack ()=default
 Default Constructor.
virtual ~ExampleTrack ()=default
 Destructor.
double getPT () const
double getEta () const
double getPhi () const
const std::string & getDetector () const
void setPT (double pt)
 Set the transverse momentum value.
void setEta (double eta)
 Set the eta value.
void setPhi (double phi)
 Set the phi value.
void setDetector (const std::string &detector)
 Set the detector string.
ElementLink< ExampleHitContainer > * getElementLink1 ()
const ElementLink< ExampleHitContainer > * getElementLink1 () const
const ExampleHitgetElement1 () const
ElementLink< ExampleHitContainer > * getElementLink2 ()
const ElementLink< ExampleHitContainer > * getElementLink2 () const
const ExampleHitgetElement2 () const
ElementLinkVector< ExampleHitContainer > * getElementLinkVector ()
const ElementLinkVector< ExampleHitContainer > * getElementLinkVector () const
Navigable< ExampleHitContainer > * getNavigable ()
const Navigable< ExampleHitContainer > * getNavigable () const
Navigable< ExampleHitContainer, double > * getWeightedNavigable ()
const Navigable< ExampleHitContainer, double > * getWeightedNavigable () const

Private Attributes

double m_pt {0.0}
double m_eta {0.0}
double m_phi {0.0}
std::string m_detector
ElementLink< ExampleHitContainerm_elementlink1
ElementLink< ExampleHitContainerm_elementlink2
ElementLinkVector< ExampleHitContainerm_elementlinkvector
Navigable< ExampleHitContainerm_navigable
Navigable< ExampleHitContainer, double > m_weightednavigable

Detailed Description

This class provides a dummy track data object for AthenaPool.

Definition at line 24 of file ExampleTrack.h.

Constructor & Destructor Documentation

◆ ExampleTrack()

ExampleTrack::ExampleTrack ( )
default

Default Constructor.

◆ ~ExampleTrack()

virtual ExampleTrack::~ExampleTrack ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getDetector()

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

Definition at line 43 of file ExampleTrack.h.

43{ return(m_detector); }
std::string m_detector

◆ getElement1()

const ExampleHit * ExampleTrack::getElement1 ( ) const
inline
Returns
a constant pointer to the first linked object.

Definition at line 65 of file ExampleTrack.h.

65{ return(*m_elementlink1); }
ElementLink< ExampleHitContainer > m_elementlink1

◆ getElement2()

const ExampleHit * ExampleTrack::getElement2 ( ) const
inline
Returns
a constant pointer to the second linked object.

Definition at line 70 of file ExampleTrack.h.

70{ return(*m_elementlink2); }
ElementLink< ExampleHitContainer > m_elementlink2

◆ getElementLink1() [1/2]

ElementLink< ExampleHitContainer > * ExampleTrack::getElementLink1 ( )
inline
Returns
a pointer to the first element link.

Definition at line 62 of file ExampleTrack.h.

62{ return(&m_elementlink1); }

◆ getElementLink1() [2/2]

const ElementLink< ExampleHitContainer > * ExampleTrack::getElementLink1 ( ) const
inline

Definition at line 63 of file ExampleTrack.h.

63{ return(&m_elementlink1); }

◆ getElementLink2() [1/2]

ElementLink< ExampleHitContainer > * ExampleTrack::getElementLink2 ( )
inline
Returns
a pointer to the second element link.

Definition at line 67 of file ExampleTrack.h.

67{ return(&m_elementlink2); }

◆ getElementLink2() [2/2]

const ElementLink< ExampleHitContainer > * ExampleTrack::getElementLink2 ( ) const
inline

Definition at line 68 of file ExampleTrack.h.

68{ return(&m_elementlink2); }

◆ getElementLinkVector() [1/2]

ElementLinkVector< ExampleHitContainer > * ExampleTrack::getElementLinkVector ( )
inline
Returns
a pointer to the element link vector.

Definition at line 73 of file ExampleTrack.h.

73{ return(&m_elementlinkvector); }
ElementLinkVector< ExampleHitContainer > m_elementlinkvector

◆ getElementLinkVector() [2/2]

const ElementLinkVector< ExampleHitContainer > * ExampleTrack::getElementLinkVector ( ) const
inline
Returns
a constant pointer to the element link vector.

Definition at line 75 of file ExampleTrack.h.

75{ return(&m_elementlinkvector); }

◆ getEta()

double ExampleTrack::getEta ( ) const
inline
Returns
the eta value.

Definition at line 37 of file ExampleTrack.h.

37{ return(m_eta); }

◆ getNavigable() [1/2]

Navigable< ExampleHitContainer > * ExampleTrack::getNavigable ( )
inline
Returns
a pointer to the navigable.

Definition at line 78 of file ExampleTrack.h.

78{ return(&m_navigable); }
Navigable< ExampleHitContainer > m_navigable

◆ getNavigable() [2/2]

const Navigable< ExampleHitContainer > * ExampleTrack::getNavigable ( ) const
inline
Returns
a const pointer to the navigable.

Definition at line 80 of file ExampleTrack.h.

80{ return(&m_navigable); }

◆ getPhi()

double ExampleTrack::getPhi ( ) const
inline
Returns
the phi value.

Definition at line 40 of file ExampleTrack.h.

40{ return(m_phi); }

◆ getPT()

double ExampleTrack::getPT ( ) const
inline
Returns
the transverse momentum value.

Definition at line 34 of file ExampleTrack.h.

34{ return(m_pt); }

◆ getWeightedNavigable() [1/2]

Navigable< ExampleHitContainer, double > * ExampleTrack::getWeightedNavigable ( )
inline
Returns
a pointer to the weighted navigable.

Definition at line 83 of file ExampleTrack.h.

83{ return(&m_weightednavigable); }
Navigable< ExampleHitContainer, double > m_weightednavigable

◆ getWeightedNavigable() [2/2]

const Navigable< ExampleHitContainer, double > * ExampleTrack::getWeightedNavigable ( ) const
inline
Returns
a const pointer to the weighted navigable.

Definition at line 85 of file ExampleTrack.h.

85{ return(&m_weightednavigable); }

◆ setDetector()

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

Set the detector string.

Parameters
detector[IN] detector string.

Definition at line 59 of file ExampleTrack.h.

◆ setEta()

void ExampleTrack::setEta ( double eta)
inline

Set the eta value.

Parameters
eta[IN] eta value.

Definition at line 51 of file ExampleTrack.h.

51{ m_eta = eta; }
Scalar eta() const
pseudorapidity method

◆ setPhi()

void ExampleTrack::setPhi ( double phi)
inline

Set the phi value.

Parameters
phi[IN] phi value.

Definition at line 55 of file ExampleTrack.h.

55{ m_phi = phi; }
Scalar phi() const
phi method

◆ setPT()

void ExampleTrack::setPT ( double pt)
inline

Set the transverse momentum value.

Parameters
pt[IN] transverse momentum value.

Definition at line 47 of file ExampleTrack.h.

Member Data Documentation

◆ m_detector

std::string ExampleTrack::m_detector
private

Definition at line 91 of file ExampleTrack.h.

◆ m_elementlink1

ElementLink<ExampleHitContainer> ExampleTrack::m_elementlink1
private

Definition at line 93 of file ExampleTrack.h.

◆ m_elementlink2

ElementLink<ExampleHitContainer> ExampleTrack::m_elementlink2
private

Definition at line 93 of file ExampleTrack.h.

◆ m_elementlinkvector

ElementLinkVector<ExampleHitContainer> ExampleTrack::m_elementlinkvector
private

Definition at line 94 of file ExampleTrack.h.

◆ m_eta

double ExampleTrack::m_eta {0.0}
private

Definition at line 89 of file ExampleTrack.h.

89{0.0};

◆ m_navigable

Navigable<ExampleHitContainer> ExampleTrack::m_navigable
private

Definition at line 95 of file ExampleTrack.h.

◆ m_phi

double ExampleTrack::m_phi {0.0}
private

Definition at line 90 of file ExampleTrack.h.

90{0.0};

◆ m_pt

double ExampleTrack::m_pt {0.0}
private

Definition at line 88 of file ExampleTrack.h.

88{0.0};

◆ m_weightednavigable

Navigable<ExampleHitContainer, double> ExampleTrack::m_weightednavigable
private

Definition at line 96 of file ExampleTrack.h.


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