ATLAS Offline Software
Loading...
Searching...
No Matches
ExampleTrack.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAPOOLEXAMPLEDATA_EXAMPLETRACK_H
6#define ATHENAPOOLEXAMPLEDATA_EXAMPLETRACK_H
7
13
14#include "AthLinks/ElementLink.h"
15#include "AthLinks/ElementLinkVector.h"
18
19#include <string>
20
25
26public: // Constructor and Destructor
28 ExampleTrack() = default;
30 virtual ~ExampleTrack() = default;
31
32public: // 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
87private:
88 double m_pt{0.0};
89 double m_eta{0.0};
90 double m_phi{0.0};
91 std::string m_detector;
92
97};
98#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
This file contains the class definition for the ExampleHitContainer class.
ElementLinkVector implementation for standalone ROOT.
This class provides a dummy hit data object for AthenaPool.
Definition ExampleHit.h:24
const ElementLink< ExampleHitContainer > * getElementLink2() const
const ElementLink< ExampleHitContainer > * getElementLink1() const
const std::string & getDetector() const
ElementLink< ExampleHitContainer > * getElementLink2()
Navigable< ExampleHitContainer, double > * getWeightedNavigable()
ElementLink< ExampleHitContainer > m_elementlink2
Navigable< ExampleHitContainer > m_navigable
Navigable< ExampleHitContainer > * getNavigable()
const ElementLinkVector< ExampleHitContainer > * getElementLinkVector() const
double getPT() const
double getEta() const
void setDetector(const std::string &detector)
Set the detector string.
double getPhi() const
void setEta(double eta)
Set the eta value.
const ExampleHit * getElement1() const
Navigable< ExampleHitContainer, double > m_weightednavigable
ElementLink< ExampleHitContainer > m_elementlink1
const Navigable< ExampleHitContainer > * getNavigable() const
virtual ~ExampleTrack()=default
Destructor.
const ExampleHit * getElement2() const
ElementLinkVector< ExampleHitContainer > m_elementlinkvector
ElementLinkVector< ExampleHitContainer > * getElementLinkVector()
std::string m_detector
const Navigable< ExampleHitContainer, double > * getWeightedNavigable() const
void setPhi(double phi)
Set the phi value.
ElementLink< ExampleHitContainer > * getElementLink1()
void setPT(double pt)
Set the transverse momentum value.
ExampleTrack()=default
Default Constructor.
Navigable template generalization to handle navigation.
Definition Navigable.h:93