ATLAS Offline Software
Loading...
Searching...
No Matches
L0MuonTrack.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef L0MUONEMULATION_L0MUONTRACK_H
5#define L0MUONEMULATION_L0MUONTRACK_H
6
7#include <iostream>
8
9namespace L0Muon {
10
12 public:
13 L0MuonTrack() = default;
14 ~L0MuonTrack() = default;
15
16 void setTrack(const double invpt, const float eta, const float phi);
17
18 double invpt() const {return m_invpt;}
19 float eta() const {return m_eta;}
20 float phi() const {return m_phi;}
21
22 protected:
23 double m_invpt{std::numeric_limits<double>::lowest()};
24 float m_eta{0.};
25 float m_phi{0.};
26};
27
28inline void L0MuonTrack::setTrack(const double invpt, const float eta, const float phi) {
29 m_invpt = invpt;
30 m_eta = eta;
31 m_phi = phi;
32}
33
34}
35
36inline std::ostream& operator << (std::ostream& s, const L0Muon::L0MuonTrack& t) {
37 s << "L0MuonTrack Candidate: q/pt=" << t.invpt() * 1000.<< " (1/GeV) eta=" << t.eta() << " phi=" << t.phi() << "\n";
38 return s;
39}
40
41
42#endif // L0MUONEMULATION_L0MUONTRACK_H
43
std::ostream & operator<<(std::ostream &s, const L0Muon::L0MuonTrack &t)
Definition L0MuonTrack.h:36
float phi() const
Definition L0MuonTrack.h:20
double invpt() const
Definition L0MuonTrack.h:18
void setTrack(const double invpt, const float eta, const float phi)
Definition L0MuonTrack.h:28
~L0MuonTrack()=default
float eta() const
Definition L0MuonTrack.h:19