Demonstrates usage of TEveBox class.
{
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);
}
float Float_t
Float 4 bytes (float).
double Double_t
Double 8 bytes.
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
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()