Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
REveJetCone Class Reference

Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.

If Apex is not set, default is (0.,0.,0.) In case of cylinder was set, cone is cut at the cylinder edges.

Example :

Float_t coneEta = r.Uniform(-0.9, 0.9);
Float_t conePhi = r.Uniform(0.0, TwoPi() );
Float_t coneRadius = 0.4;
REveJetCone* jetCone = new REveJetCone("JetCone");
jetCone->SetCylinder(250, 250);
if (jetCone->AddCone(coneEta, conePhi, coneRadius) != -1)
gEve->AddElement(jetCone);
float Float_t
Float 4 bytes (float)
Definition RtypesCore.h:72
R__EXTERN TEveManager * gEve
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.

Implementation notes

REveVector fLimits encodes the following information:

  • fY, fZ: barrel radius and endcap z-position; if both are 0, fX encodes the spherical radius
  • fX : scaling for length of the cone

The render data is one entry, pos, f32 x 3: the apex, then fNDiv points on the base, starting at the maximum eta and going round in steps of 2 pi / fNDiv, primitive triangles. The client draws the triangles of a fan from the apex, the base rim as a line loop and every fourth base point joined to the apex.


The documentation for this class was generated from the following file: