28 int pdg = 11 * (
r.Integer(2) > 0 ? 1 : -1);
30 p->SetProductionVertex(
r.Uniform(-
v,
v) + pos[0],
r.Uniform(-
v,
v) + pos[1],
r.Uniform(-
v,
v) + pos[2], 1);
31 p->SetMomentum(
r.Uniform(-
m,
m),
r.Uniform(-
m,
m),
r.Uniform(-
m,
m) *
r.Uniform(1, 3), 1);
45 mng->SetProjection(t);
48 view->SetCameraType(REveViewer::kCameraOrthoXOY);
54 auto eveMng = REveManager::Create();
55 float pos[3] = {1.46589e-06, -1.30522e-05, -1.98267e-05};
58 double a[16] = {1.46589e-01,
78 for (
int i = 0; i < 3; i++)
79 for (
int j = 0;
j < 3;
j++) {
80 xxx(i,
j) = t(i + 1,
j + 1);
90 for (
int i = 0; i < 3; ++i) {
108 sph->SetMainTransparency(80);
109 sph->SetNSegments(80);
111 float m0 =
v[0].Mag();
113 float m1 =
v[1].Mag();
115 float m2 =
v[2].Mag();
118 sph->InitMainTrans();
119 sph->RefMainTrans().SetBaseVec(1,
v[0].fX,
v[0].fY,
v[0].fZ);
120 sph->RefMainTrans().SetBaseVec(2,
v[1].fX,
v[1].fY,
v[1].fZ);
121 sph->RefMainTrans().SetBaseVec(3,
v[2].fX,
v[2].fY,
v[2].fZ);
122 sph->RefMainTrans().SetScale(m0, m1, m2);
123 event->AddElement(
sph);
127 ps->SetNextPoint(pos[0], pos[1], pos[2]);
128 ps->SetMarkerStyle(4);
129 ps->SetMarkerSize(4);
131 for (
int i = 0; i < 6; ++i)
132 ps->SetNextPoint(i * (
rng / 3) -
rng, 0, 0);
133 event->AddElement(ps);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
Implements constant magnetic filed that switches on given axial radius fR2 from vector fBIn to fBOut.
REvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
Manager class for steering of projections and managing projected objects.
Holding structure for a number of track rendering parameters.
Visual representation of a track.
REveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
TGeoSphere are not just balls having internal and external radii, but sectors of a sphere having defi...
Description of the dynamic properties of a particle.
This is the base class for the ROOT Random number generators.
Namespace for ROOT features in testing.
R__EXTERN REveManager * gEve