10#include <ROOT/REveElement.hxx>
11#include <ROOT/REveScene.hxx>
12#include <ROOT/REveManager.hxx>
13#include <ROOT/REveTrack.hxx>
14#include <ROOT/REveTrackPropagator.hxx>
21 auto prop =
new REX::REveTrackPropagator();
22 prop->SetMagFieldObj(
new REX::REveMagFieldDuo(350, -3.5, 2.0));
34 int pdg = 11* (
r.Integer(2) -1);
39 auto track =
new REX::REveTrack(p, 1, prop);
41 track->SetMainColor(
kBlue);
42 track->SetElementName(
Form(
"RandomTrack_%d",i ));
43 trackHolder->AddElement(track);
49 auto eveMng = REX::REveManager::Create();
51 REX::REveElement* trackHolder =
new REX::REveElementList(
"Tracks");
52 eveMng->GetEventScene()->AddElement(trackHolder);
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
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.
REX::REveManager * eveMng
void makeTracks(int N_Tracks, REX::REveElement *trackHolder)