1 #include "TEveCaloData.h"
13 : m_energy(0.
f), m_et(0.
f) {
30 const unsigned int nLineSegments = 20;
31 float circleScalingFactor = 50;
32 const double jetRadius = iData.
pt() / circleScalingFactor;
34 for (
unsigned int iphi = 0; iphi < nLineSegments; ++iphi) {
35 AddLine(iData.
eta() + jetRadius *
cos(2 *
M_PI / nLineSegments * iphi),
36 iData.
phi() + jetRadius *
sin(2 *
M_PI / nLineSegments * iphi),
38 iData.
eta() + jetRadius *
cos(2 *
M_PI / nLineSegments * (iphi + 1)),
39 iData.
phi() + jetRadius *
sin(2 *
M_PI / nLineSegments * (iphi + 1)),
51 TEveChunkManager::iterator li(GetLinePlex());
53 TEveStraightLineSet::Line_t&
l = *(TEveStraightLineSet::Line_t*)li();
54 l.fV2[2] = l.fV1[2] + val * scaleFac;
57 TEveChunkManager::iterator mi(GetMarkerPlex());
59 TEveStraightLineSet::Marker_t&
m = *(TEveStraightLineSet::Marker_t*)mi();
double pt() const final
transverse momentum
Sin< T >::type sin(const T &t)
FWViewEnergyScale * getEnergyScale() const
void updateScale(const FWViewContext *, const fireworks::Context &)
float getScaleFactorLego() const
Cos< T >::type cos(const T &t)
FWLegoEvePFCandidate(const reco::PFCandidate &pfc, const FWViewContext *, const fireworks::Context &)
Particle reconstructed by the particle flow algorithm.
double et() const final
transverse energy
double phi() const final
momentum azimuthal angle
double energy() const final
energy
double eta() const final
momentum pseudorapidity