37 for (
int i = 0; i < N_Tracks; i++)
41 int pdg = 11 * (
r.Integer(2) > 0 ? 1 : -1);
44 p->SetProductionVertex(
r.Uniform(-
v,
v),
r.Uniform(-
v,
v),
r.Uniform(-
v,
v), 1);
45 p->SetMomentum(
r.Uniform(-
m,
m),
r.Uniform(-
m,
m),
r.Uniform(-
m,
m)*
r.Uniform(1, 3), 1);
48 track->SetMainColor(
kBlue);
49 track->SetName(
Form(
"RandomTrack_%d", i));
50 track->SetLineWidth(3);
51 trackHolder->AddElement(track);
61 b->SetMainTransparency(0);
63#define RND_BOX(x) r.Uniform(-(x), (x))
82 for (
int i = 0; i < N_Jets; i++)
86 jet->AddEllipticCone(
r.Uniform(-0.5, 0.5),
r.Uniform(0,
TMath::TwoPi()),
88 jet->SetFillColor(
kRed);
89 jet->SetLineColor(
kRed);
91 jetHolder->AddElement(jet);
101 text -> SetPosition(pos);
102 text -> SetFontSize(0.1);
105 textHolder->AddElement(
text);
112 auto gEve = REveManager::Create();
119 os->SetIsOverlay(
true);
R__EXTERN TEveManager * gEve
winID h TVirtualViewer3D TVirtualGLPainter p
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
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 Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h prop
Option_t Option_t TPoint TPoint const char text
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
3D box with arbitrary vertices (cuboid).
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
Implements constant magnetic filed that switches on given axial radius fR2 from vector fBIn to fBOut.
Eve representation of TGLScene.
Holding structure for a number of track rendering parameters.
Visual representation of a track.
Eve representation of a GL view.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
TEveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
TEveViewerList * GetViewers() const
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
TEveScene * GetEventScene() const
Description of the dynamic properties of a particle.
This is the base class for the ROOT Random number generators.
void makeTracks(int N_Tracks, REveElement *trackHolder, float *pos)
void makeJets(int N_Jets, REX::REveElement *jetHolder)
constexpr Double_t TwoPi()
void makeTexts(int N_Texts, REX::REveElement *textHolder)