ATLAS Offline Software
ExampleTrack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAPOOLEXAMPLEDATA_EXAMPLETRACK_H
6 #define ATHENAPOOLEXAMPLEDATA_EXAMPLETRACK_H
7 
14 #include "AthLinks/ElementLink.h"
15 #include "AthLinks/ElementLinkVector.h"
16 #include "Navigation/Navigable.h"
18 
19 #include <string>
20 
24 class ExampleTrack {
25 
26 public: // Constructor and Destructor
30  virtual ~ExampleTrack() {}
31 
32 public: // Non-static members
34  double getPT() const { return(m_pt); }
35 
37  double getEta() const { return(m_eta); }
38 
40  double getPhi() const { return(m_phi); }
41 
43  const std::string& getDetector() const { return(m_detector); }
44 
47  void setPT(double pt) { m_pt = pt; }
48 
51  void setEta(double eta) { m_eta = eta; }
52 
55  void setPhi(double phi) { m_phi = phi; }
56 
59  void setDetector(const std::string& detector) { m_detector = detector; }
60 
65  const ExampleHit* getElement1() const { return(*m_elementlink1); }
70  const ExampleHit* getElement2() const { return(*m_elementlink2); }
71 
76 
81 
86 
87 private:
88  double m_pt;
89  double m_eta;
90  double m_phi;
91  std::string m_detector;
92 
97 };
98 #endif
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ExampleTrack::getNavigable
Navigable< ExampleHitContainer > * getNavigable()
Definition: ExampleTrack.h:78
ExampleTrack::getElement2
const ExampleHit * getElement2() const
Definition: ExampleTrack.h:70
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
TRTCalib_cfilter.detector
detector
Definition: TRTCalib_cfilter.py:241
ExampleTrack::m_pt
double m_pt
Definition: ExampleTrack.h:88
test_pyathena.pt
pt
Definition: test_pyathena.py:11
ExampleTrack
This class provides a dummy track data object for AthenaPool.
Definition: ExampleTrack.h:24
ExampleTrack::m_weightednavigable
Navigable< ExampleHitContainer, double > m_weightednavigable
Definition: ExampleTrack.h:96
ExampleTrack::m_elementlink2
ElementLink< ExampleHitContainer > m_elementlink2
Definition: ExampleTrack.h:93
ExampleTrack::getElementLink2
const ElementLink< ExampleHitContainer > * getElementLink2() const
Definition: ExampleTrack.h:68
ExampleTrack::getWeightedNavigable
Navigable< ExampleHitContainer, double > * getWeightedNavigable()
Definition: ExampleTrack.h:83
ExampleTrack::m_phi
double m_phi
Definition: ExampleTrack.h:90
ExampleTrack::getElementLink2
ElementLink< ExampleHitContainer > * getElementLink2()
Definition: ExampleTrack.h:67
ExampleTrack::getPhi
double getPhi() const
Definition: ExampleTrack.h:40
ExampleTrack::getElementLinkVector
const ElementLinkVector< ExampleHitContainer > * getElementLinkVector() const
Definition: ExampleTrack.h:75
ExampleTrack::getElement1
const ExampleHit * getElement1() const
Definition: ExampleTrack.h:65
ExampleTrack::getNavigable
const Navigable< ExampleHitContainer > * getNavigable() const
Definition: ExampleTrack.h:80
ExampleTrack::getPT
double getPT() const
Definition: ExampleTrack.h:34
ExampleTrack::getElementLink1
ElementLink< ExampleHitContainer > * getElementLink1()
Definition: ExampleTrack.h:62
ExampleTrack::setPhi
void setPhi(double phi)
Set the phi value.
Definition: ExampleTrack.h:55
ExampleTrack::m_eta
double m_eta
Definition: ExampleTrack.h:89
ExampleTrack::setEta
void setEta(double eta)
Set the eta value.
Definition: ExampleTrack.h:51
ExampleTrack::m_elementlink1
ElementLink< ExampleHitContainer > m_elementlink1
Definition: ExampleTrack.h:93
ExampleHit
This class provides a dummy hit data object for AthenaPool.
Definition: ExampleHit.h:24
ExampleTrack::setDetector
void setDetector(const std::string &detector)
Set the detector string.
Definition: ExampleTrack.h:59
ElementLinkVector< ExampleHitContainer >
ExampleTrack::getEta
double getEta() const
Definition: ExampleTrack.h:37
ExampleTrack::ExampleTrack
ExampleTrack()
Default Constructor.
Definition: ExampleTrack.h:28
Navigable< ExampleHitContainer >
Navigable.h
ExampleTrack::setPT
void setPT(double pt)
Set the transverse momentum value.
Definition: ExampleTrack.h:47
ExampleTrack::m_elementlinkvector
ElementLinkVector< ExampleHitContainer > m_elementlinkvector
Definition: ExampleTrack.h:94
ExampleTrack::m_navigable
Navigable< ExampleHitContainer > m_navigable
Definition: ExampleTrack.h:95
ExampleTrack::m_detector
std::string m_detector
Definition: ExampleTrack.h:91
ExampleTrack::getElementLinkVector
ElementLinkVector< ExampleHitContainer > * getElementLinkVector()
Definition: ExampleTrack.h:73
ExampleTrack::getWeightedNavigable
const Navigable< ExampleHitContainer, double > * getWeightedNavigable() const
Definition: ExampleTrack.h:85
ExampleTrack::~ExampleTrack
virtual ~ExampleTrack()
Destructor.
Definition: ExampleTrack.h:30
ExampleHitContainer.h
This file contains the class definition for the ExampleHitContainer class.
ExampleTrack::getElementLink1
const ElementLink< ExampleHitContainer > * getElementLink1() const
Definition: ExampleTrack.h:63
ExampleTrack::getDetector
const std::string & getDetector() const
Definition: ExampleTrack.h:43