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 float pt() const
transverse momentum
virtual double et() const
transverse energy
virtual float phi() const
momentum azimuthal angle
Sin< T >::type sin(const T &t)
FWViewEnergyScale * getEnergyScale() const
void updateScale(const FWViewContext *, const fireworks::Context &)
virtual double energy() const
energy
virtual float eta() const
momentum pseudorapidity
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.