ATLAS Offline Software
Loading...
Searching...
No Matches
JetConverterBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETEVENTTPCNV_JETCONVERTERBASE_H
6#define JETEVENTTPCNV_JETCONVERTERBASE_H
7
8#include <cmath>
9
11{
12 typedef std::vector<unsigned short> signalState_pers_t;
13
14 struct momentum
15 {
16 typedef float dtype;
17 momentum() : m_px(0), m_py(0), m_pz(0), m_m(0) { };
18 momentum(dtype x, dtype y, dtype z, dtype mm) : m_px(x), m_py(y), m_pz(z), m_m(mm) { };
20
21 dtype eta() const
22 {
23 dtype p = std::sqrt( m_px * m_px + m_py * m_py + m_pz * m_pz );
24 return 0.5*std::log( ( p + m_pz ) / ( p - m_pz ) );
25 };
26 };
27}
28
29
30template<class PERS>
32{ };
33
34#endif
#define y
#define x
#define z
std::vector< unsigned short > signalState_pers_t
momentum(dtype x, dtype y, dtype z, dtype mm)