ATLAS Offline Software
Loading...
Searching...
No Matches
FourMomFillerTool.cxx File Reference

Block filler tool for a four-momentum. More...

#include "FourMomFillerTool.h"
#include "EventKernel/INavigable4Momentum.h"
#include "EventKernel/I4Momentum.h"
#include "AthenaKernel/errorcheck.h"
#include "CLHEP/Vector/LorentzVector.h"
#include "TLorentzVector.h"
#include <typeinfo>
#include <cmath>
Include dependency graph for FourMomFillerTool.cxx:

Go to the source code of this file.

Namespaces

namespace  D3PD
 Block filler tool for noisy FEB information.

Macros

#define FILL_BODY(P, PT, TANTH)

Detailed Description

Block filler tool for a four-momentum.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Aug, 2009

Definition in file FourMomFillerTool.cxx.

Macro Definition Documentation

◆ FILL_BODY

#define FILL_BODY ( P,
PT,
TANTH )
Value:
do { \
if (m_do_E) *m_E = static_cast<float> (p.e()); \
if (m_do_p) *m_p = static_cast<float> (P); \
if (m_do_Et) *m_Et = static_cast<float> (p.et()); \
if (m_do_pt) *m_pt = static_cast<float> (PT); \
if (m_do_m) *m_m = static_cast<float> (p.m()); \
if (m_do_rapidity) *m_y = static_cast<float> (p.rapidity()); \
if (m_do_tanth) *m_tanth = static_cast<float> (TANTH); \
\
if (m_do_etaphi) { \
*m_eta = static_cast<float> (p.eta()); \
*m_phi = static_cast<float> (p.phi()); \
} \
\
if (m_do_rect) { \
*m_px = static_cast<float> (p.px()); \
*m_py = static_cast<float> (p.py()); \
*m_pz = static_cast<float> (p.pz()); \
} \
} while(0)
static Double_t P(Double_t *tt, Double_t *par)

Definition at line 88 of file FourMomFillerTool.cxx.

88#define FILL_BODY(P, PT, TANTH) \
89 do { \
90 if (m_do_E) *m_E = static_cast<float> (p.e()); \
91 if (m_do_p) *m_p = static_cast<float> (P); \
92 if (m_do_Et) *m_Et = static_cast<float> (p.et()); \
93 if (m_do_pt) *m_pt = static_cast<float> (PT); \
94 if (m_do_m) *m_m = static_cast<float> (p.m()); \
95 if (m_do_rapidity) *m_y = static_cast<float> (p.rapidity()); \
96 if (m_do_tanth) *m_tanth = static_cast<float> (TANTH); \
97 \
98 if (m_do_etaphi) { \
99 *m_eta = static_cast<float> (p.eta()); \
100 *m_phi = static_cast<float> (p.phi()); \
101 } \
102 \
103 if (m_do_rect) { \
104 *m_px = static_cast<float> (p.px()); \
105 *m_py = static_cast<float> (p.py()); \
106 *m_pz = static_cast<float> (p.pz()); \
107 } \
108 } while(0)