1 #include "TEveCaloData.h"
33 const unsigned int nLineSegments = 20;
34 float circleScalingFactor = 50;
35 const double jetRadius = iData.
pt()/circleScalingFactor;
37 for (
unsigned int iphi = 0; iphi < nLineSegments; ++iphi ) {
38 AddLine(iData.
eta()+jetRadius*
cos(2*
M_PI/nLineSegments*iphi),
39 iData.
phi()+jetRadius*
sin(2*
M_PI/nLineSegments*iphi),
41 iData.
eta()+jetRadius*
cos(2*
M_PI/nLineSegments*(iphi+1)),
42 iData.
phi()+jetRadius*
sin(2*
M_PI/nLineSegments*(iphi+1)),
56 TEveChunkManager::iterator li(GetLinePlex());
58 TEveStraightLineSet::Line_t&
l = * (TEveStraightLineSet::Line_t*) li();
59 l.fV2[2] = l.fV1[2] + val*scaleFac;
62 TEveChunkManager::iterator mi(GetMarkerPlex());
64 TEveStraightLineSet::Marker_t&
m = * (TEveStraightLineSet::Marker_t*) mi();
virtual double energy() const final
energy
Sin< T >::type sin(const T &t)
FWViewEnergyScale * getEnergyScale() const
virtual double phi() const final
momentum azimuthal angle
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.
virtual double et() const final
transverse energy
virtual double eta() const final
momentum pseudorapidity
virtual double pt() const final
transverse momentum