61 for (
Int_t i=0; i<npoints; ++i)
62 ps->SetNextPoint(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s));
64 ps->SetMarkerColor(color);
65 ps->SetMarkerSize(3+
r.Uniform(1, 7));
66 ps->SetMarkerStyle(4);
77 ps1->SetName(
"Points_1");
78 ps1->SetTitle(
"Points_1 title");
80 pntHolder->AddElement(ps1);
83 ps2->SetName(
"Points_2");
84 ps2->SetTitle(
"Points_2 title");
85 pntHolder->AddElement(ps2);
87 event->AddElement(pntHolder);
106 int N_Tracks = 10 +
r.Integer(20);
107 for (
int i = 0; i < N_Tracks; i++)
111 int pdg = 11 * (
r.Integer(2) > 0 ? 1 : -1);
118 if (i % 4 == 3) track->SetLineStyle(2);
119 track->SetMainColor(
kBlue);
120 track->SetName(
Form(
"RandomTrack_%d", i));
121 track->SetTitle(
Form(
"RandomTrack_%d title", i));
122 trackHolder->AddElement(track);
125 event->AddElement(trackHolder);
135 int N_Jets = 5 +
r.Integer(5);
136 for (
int i = 0; i < N_Jets; i++)
139 jet->SetTitle(
Form(
"Jet_%d title", i));
141 jet->AddEllipticCone(
r.Uniform(-3.5, 3.5),
r.Uniform(0,
TMath::TwoPi()),
142 r.Uniform(0.02, 0.2),
r.Uniform(0.02, 0.3));
143 jet->SetFillColor(
kPink - 8);
144 jet->SetLineColor(
kViolet - 7);
146 jetHolder->AddElement(jet);
148 event->AddElement(jetHolder);
153 float pos[3] = {1.46589e-06,-1.30522e-05,-1.98267e-05};
157 double a[16] = {1.46589e-01,-1.30522e-02,-1.98267e-02, 0,
158 -1.30522e-02, 4.22955e-02,-5.86628e-03, 0,
159 -1.98267e-02,-5.86628e-03, 2.12836e-01, 0,
165 for(
int i = 0; i < 3; i++)
166 for(
int j = 0; j < 3; j++)
168 xxx(i,j) = t(i+1,j+1);
173 xxxEig = xxxEig.
Sqrt();
177 for (
int i = 0; i < 3; ++i)
179 v[i].Set(vecEig(0,i), vecEig(1,i), vecEig(2,i));
194 ps->SetNextPoint(pos[0], pos[1], pos[2]);
195 ps->SetMarkerStyle(4);
196 ps->SetMarkerSize(4);
197 event->AddElement(
ps);
213 b1->SetMainColor(
kCyan);
218 b1->SetNSegments(40);
279 EventManager() =
default;
281 virtual ~EventManager() {}
283 virtual void NextEvent()
289 for (
auto &ie : scene->RefChildren())
300 virtual void QuitRoot()
302 printf(
"Quit ROOT\n");
317 auto eventMng =
new EventManager();
318 eventMng->SetName(
"EventManager");
R__EXTERN TApplication * gApplication
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
virtual void AddElement(REveElement *el)
Add el to the list of children.
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
virtual void DestroyElements()
Destroy all children of this element.
virtual void SetMainColor(Color_t color)
Set main color of the element.
void SetBaseVectors(REveVector &v0, REveVector &v1, REveVector &v3)
Three defining base vectors of ellipse.
virtual void Outline()
Draw archade around base vectors.
REveMagFieldDuo Interface to magnetic field with two different values depending on radius.
REveScene * GetEventScene() const
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
REveScene * GetGlobalScene() const
void DoRedraw3D()
Perform 3D redraw of scenes and viewers whose contents has changed.
REveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
REveViewer * SpawnNewViewer(const char *name, const char *title="")
Create a new GL viewer.
REveScene * GetWorld() const
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
REveProjectionManager Manager class for steering of projections and managing projected objects.
virtual REveElement * ImportElements(REveElement *el, REveElement *ext_list=nullptr)
Recursively import elements and apply projection to the newly imported objects.
void AddCommand(const std::string &name, const std::string &icon, const REveElement *element, const std::string &action)
REveTrackPropagator Calculates path of a particle taking into account special path-marks and imposed ...
REveTrack Track with given vertex, momentum and optional referece-points (path-marks) along its path.
void SetFrom(Double_t *carr)
REveViewer Reve representation of TGLViewer.
virtual void AddScene(REveScene *scene)
Add 'scene' to the list of scenes.
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
const TMatrixD & GetEigenVectors() const
const TMatrixD GetEigenValues() const
Computes the block diagonal eigenvalue matrix.
Description of the dynamic properties of a particle.
void SetMomentum(Double_t px, Double_t py, Double_t pz, Double_t e)
void SetPdgCode(Int_t pdg)
Change the PDG code for this particle.
void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz, Double_t t)
This is the base class for the ROOT Random number generators.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
TVectorT< Element > & Sqrt()
Take square root of all elements.
REX::REveScene * rPhiGeomScene
REX::REveScene * rPhiEventScene
REX::REveProjectionManager * mngRhoZ
REX::REveManager * eveMng
REX::REveViewer * rhoZView
REX::REveScene * rhoZEventScene
void createProjectionStuff()
REX::REveViewer * rphiView
REX::REveProjectionManager * mngRhoPhi
REX::REveScene * rhoZGeomScene
void projectScenes(bool geomp, bool eventp)
REX::REvePointSet * getPointSet(int npoints=2, float s=2, int color=28)
static constexpr double s
static constexpr double ps
constexpr Double_t TwoPi()