ATLAS Offline Software
Loading...
Searching...
No Matches
L1MuonTrack.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 L1MUONEMULATION_L1MUONTRACK_H
5#define L1MUONEMULATION_L1MUONTRACK_H
6
7#include <iostream>
8
9namespace L1Muon {
10
12 public:
13 L1MuonTrack() = default;
14 ~L1MuonTrack() = 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 L1MuonTrack::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 L1Muon::L1MuonTrack& t) {
37 s << "L1MuonTrack Candidate: q/pt=" << t.invpt() * 1000.<< " (1/GeV) eta=" << t.eta() << " phi=" << t.phi() << "\n";
38 return s;
39}
40
41
42#endif // L1MUONEMULATION_L1MUONTRACK_H
43
std::ostream & operator<<(std::ostream &s, const L1Muon::L1MuonTrack &t)
Definition L1MuonTrack.h:36
~L1MuonTrack()=default
void setTrack(const double invpt, const float eta, const float phi)
Definition L1MuonTrack.h:28
double invpt() const
Definition L1MuonTrack.h:18
float eta() const
Definition L1MuonTrack.h:19
float phi() const
Definition L1MuonTrack.h:20