10#ifndef __RUN_PYTHIA_DISPLAY__
15 dir.ReplaceAll(
"pythia_display.C",
"");
16 dir.ReplaceAll(
"/./",
"/");
17 gROOT->LoadMacro(
dir +
"MultiView.C+");
22 Error(
"pythia_display()",
23 "Could not load 'libPythia6', make sure it is available!");
29 gROOT->ProcessLine(
"#define __RUN_PYTHIA_DISPLAY__ 1");
30 gROOT->ProcessLine(
"#include \"pythia_display.C\"");
31 gROOT->ProcessLine(
"run_pythia_display()");
32 gROOT->ProcessLine(
"#undef __RUN_PYTHIA_DISPLAY__");
62#include "TMCParticle.h"
87 Warning(
"pythia_display()",
"Already initialized.");
103 P.SetPMAS(6, 1, 175);
104 P.SetPMAS(25, 1, 180);
117 for (
Int_t i = 210; i <= 288; ++i)
119 P.SetMDME(225, 1, 1);
122 for (
Int_t i = 174; i <= 189; ++i)
124 P.SetMDME(184, 1, 1);
127 P.Initialize(
"cms",
"p",
"p", 14000);
142 b->SetMainTransparency(80);
148 b->SetMainTransparency(80);
195 int nh = P.GetMSTU(72);
203 for (
Int_t i = 0; i < 7; ++i)
207 p.GetFirstChild()-
nh-1,
p.GetLastChild()-
nh-1,
208 p.GetPx(),
p.GetPy(),
p.GetPz(),
p.GetEnergy(),
209 p.GetVx(),
p.GetVy(),
p.GetVz(),
p.GetTime());
213 track->SetStdTitle();
216 track->SetLineColor(kColors[0]);
218 track->SetLineColor(kColors[1]);
271 frmMain->SetWindowName(
"XX GUI");
283 b->SetToolTipText(
"Go to previous event - not supported.");
285 b->Connect(
"Clicked()",
"EvNavHandler", fh,
"Bck()");
288 b->SetToolTipText(
"Generate new event.");
290 b->Connect(
"Clicked()",
"EvNavHandler", fh,
"Fwd()");
299 browser->SetTabTitle(
"Event Control", 0);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
R__EXTERN TEveManager * gEve
winID h TVirtualViewer3D TVirtualGLPainter p
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
An array of clone (identical) objects.
Specialization of TRootBrowser for Eve.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.
void AddGlobalElement(TEveElement *element, TEveElement *parent=nullptr)
Add a global element, i.e.
TEveBrowser * GetBrowser() const
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
TEveEventManager * GetCurrentEvent() const
A list of tracks supporting change of common attributes and selection based on track parameters.
Holding structure for a number of track rendering parameters.
Visual representation of a track.
A composite frame that layout their children in horizontal way.
Defines top level windows that interact with the system Window Manager.
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
Description of the dynamic properties of a particle.
TGTab * GetTabRight() const
virtual const char * Getenv(const char *env)
Get environment variable.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.