Demonstrates usage of TEveBox class.
{
prop->SetMaxR(300);
prop->SetMaxZ(600);
prop->SetMaxOrbs(6);
for (int i = 0; i < N_Tracks; i++) {
int pdg = 11 * (
r.Integer(2) > 0 ? 1 : -1);
p->SetPdgCode(pdg);
p->SetProductionVertex(
r.Uniform(-
v,
v),
r.Uniform(-
v,
v),
r.Uniform(-
v,
v), 1);
p->SetMomentum(
r.Uniform(-
m,
m),
r.Uniform(-
m,
m),
r.Uniform(-
m,
m) *
r.Uniform(1, 3), 1);
track->MakeTrack();
track->SetMainColor(
kBlue);
track->SetName(
Form(
"RandomTrack_%d", i));
track->SetLineWidth(3);
trackHolder->AddElement(track);
}
}
{
b->SetMainTransparency(0);
#define RND_BOX(x) r.Uniform(-(x), (x))
#undef RND_BOX
}
{
for (int i = 0; i < N_Jets; i++) {
jet->AddEllipticCone(
r.Uniform(-0.5, 0.5),
r.Uniform(0,
TMath::TwoPi()), 0.1, 0.2);
jetHolder->AddElement(jet);
}
}
{
{
textHolder->AddElement(
text);
}
}
void overlay_test()
{
REveScene *os =
gEve->SpawnNewScene(
"Overly scene",
"OverlayTitle");
os->SetIsOverlay(true);
makeTexts(os);
gEve->GetEventScene()->AddElement(jetHolder);
gEve->GetEventScene()->AddElement(trackHolder);
}
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
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.
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
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, REveElement *jetHolder)
Namespace for ROOT features in testing.
REveVectorT< Float_t > REveVector
constexpr Double_t TwoPi()