ATLAS Offline Software
Loading...
Searching...
No Matches
MyVec2.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef D3PDMAKERTEST_MYVEC2_H
17#define D3PDMAKERTEST_MYVEC2_H
18
19
20namespace D3PDTest {
21
22
23class MyVec2
24{
25public:
26 MyVec2() : m_pt(0), m_eta(0), m_phi(0), m_m(0) {}
27 float Pt() const { return m_pt; }
28 float Eta() const { return m_eta; }
29 float Phi() const { return m_phi; }
30 float M() const { return m_m; }
31 void SetPtEtaPhiM (float pt, float eta, float phi, float m)
32 {
33 m_pt = pt;
34 m_eta = eta;
35 m_phi = phi;
36 m_m = m;
37 }
38
39private:
40 float m_pt;
41 float m_eta;
42 float m_phi;
43 float m_m;
44};
45
46
47} // namespace D3PDTest
48
49
50#endif // not D3PDMAKERTEST_MYVEC2_H
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
float Phi() const
Definition MyVec2.h:29
float M() const
Definition MyVec2.h:30
void SetPtEtaPhiM(float pt, float eta, float phi, float m)
Definition MyVec2.h:31
float Eta() const
Definition MyVec2.h:28
float Pt() const
Definition MyVec2.h:27