ATLAS Offline Software
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 
9 namespace L0Muon {
10 
11 class L0MuonTrack {
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 
28 inline 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 
36 inline 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 
L0Muon::L0MuonTrack
Definition: L0MuonTrack.h:11
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
L0Muon::L0MuonTrack::m_invpt
double m_invpt
Definition: L0MuonTrack.h:23
L0Muon::L0MuonTrack::setTrack
void setTrack(const double invpt, const float eta, const float phi)
Definition: L0MuonTrack.h:28
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
L0Muon
Definition: L0MuonSmearingAlg.cxx:13
L0Muon::L0MuonTrack::m_phi
float m_phi
Definition: L0MuonTrack.h:25
L0Muon::L0MuonTrack::m_eta
float m_eta
Definition: L0MuonTrack.h:24
operator<<
std::ostream & operator<<(std::ostream &s, const L0Muon::L0MuonTrack &t)
Definition: L0MuonTrack.h:36
L0Muon::L0MuonTrack::~L0MuonTrack
~L0MuonTrack()=default
L0Muon::L0MuonTrack::eta
float eta() const
Definition: L0MuonTrack.h:19
L0Muon::L0MuonTrack::L0MuonTrack
L0MuonTrack()=default
L0Muon::L0MuonTrack::invpt
double invpt() const
Definition: L0MuonTrack.h:18
L0Muon::L0MuonTrack::phi
float phi() const
Definition: L0MuonTrack.h:20