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 pt() const final
transverse momentum
virtual double eta() const final
momentum pseudorapidity
Sin< T >::type sin(const T &t)
FWViewEnergyScale * getEnergyScale() const
void updateScale(const FWViewContext *, const fireworks::Context &)
virtual double phi() const final
momentum azimuthal angle
virtual double et() const final
transverse energy
float getScaleFactorLego() const
Cos< T >::type cos(const T &t)
virtual double energy() const final
energy
base
Make Sure CMSSW is Setup ##.
FWLegoEvePFCandidate(const reco::PFCandidate &pfc, const FWViewContext *, const fireworks::Context &)
Particle reconstructed by the particle flow algorithm.