ATLAS Offline Software
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) { };
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 
30 template<class PERS>
32 { };
33 
34 #endif
JetConverterTypes::momentum::eta
dtype eta() const
Definition: JetConverterBase.h:21
x
#define x
JetConverterTypes::momentum::momentum
momentum()
Definition: JetConverterBase.h:17
JetConverterTypes::momentum::m_m
dtype m_m
Definition: JetConverterBase.h:19
JetConverterTypes::momentum::m_px
dtype m_px
Definition: JetConverterBase.h:18
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
z
#define z
JetConverterBase
Definition: JetConverterBase.h:32
JetConverterTypes
Definition: JetConverterBase.h:11
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
JetConverterTypes::momentum::m_py
dtype m_py
Definition: JetConverterBase.h:19
y
#define y
JetConverterTypes::signalState_pers_t
std::vector< unsigned short > signalState_pers_t
Definition: JetConverterBase.h:12
JetConverterTypes::momentum::momentum
momentum(dtype x, dtype y, dtype z, dtype mm)
Definition: JetConverterBase.h:18
JetConverterTypes::momentum::dtype
float dtype
Definition: JetConverterBase.h:16
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
JetConverterTypes::momentum
Definition: JetConverterBase.h:15
JetConverterTypes::momentum::m_pz
dtype m_pz
Definition: JetConverterBase.h:19