10 #ifndef __RUN_PYTHIA_DISPLAY__ 17 gROOT->LoadMacro(dir +
"MultiView.C+");
19 #ifndef G__WIN32 // libPythia6 is a static library on Windoze 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__");
63 MultiView* gMultiView = 0;
71 void pythia_next_event();
72 void pythia_make_gui();
78 void run_pythia_display()
82 Warning(
"pythia_display()",
"Already initialized.");
112 for (
Int_t i = 210; i <= 288; ++i)
117 for (
Int_t i = 174; i <= 189; ++i)
149 gMultiView =
new MultiView;
151 gMultiView->ImportGeomRPhi(fake_geom);
152 gMultiView->ImportGeomRhoZ(fake_geom);
182 void pythia_next_event()
198 for (
Int_t i = 0; i < 7; ++i)
207 track->SetName(
Form(
"%s [%d]", pb.GetName(), i));
208 track->SetStdTitle();
209 track->SetAttLineAttMarker(gTrackList);
211 track->SetLineColor(kColors[0]);
213 track->SetLineColor(kColors[1]);
233 gMultiView->DestroyEventRPhi();
234 gMultiView->ImportEventRPhi(top);
236 gMultiView->DestroyEventRhoZ();
237 gMultiView->ImportEventRhoZ(top);
258 void pythia_make_gui()
274 EvNavHandler *fh =
new EvNavHandler;
280 b->
Connect(
"Clicked()",
"EvNavHandler", fh,
"Bck()");
285 b->
Connect(
"Clicked()",
"EvNavHandler", fh,
"Fwd()");
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void SetCKIN(int i, double c)
virtual void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1)
Start embedding external frame in the tab "pos" and tab element "subpos".
void SetMSUB(int i, int m)
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
TEveBrowser * GetBrowser() const
TString & ReplaceAll(const TString &s1, const TString &s2)
void SetMDME(int i, int j, int m)
Description of the dynamic properties of a particle.
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
Specialization of TRootBrowser for Eve.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
void GenerateEvent()
generate event and copy the information from /HEPEVT/ to fPrimaries
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
virtual void SetMarkerColor(Color_t c)
Set marker color for the list and the elements.
Int_t GetFirstChild() const
TPythia is an interface class to F77 version of Pythia 6.2.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
void SetMaxR(Double_t x)
Set maximum radius and rebuild tracks.
This class serves as a data storage for description of one particle.
void Initialize(const char *frame, const char *beam, const char *target, float win)
Calls PyInit with the same parameters after performing some checking, sets correct title...
virtual void SetMarkerStyle(Style_t s)
Set marker style for the list and the elements.
void SetMSTP(int i, int m)
A list of tracks supporting change of common attributes and selection based on track parameters...
virtual const char * Getenv(const char *env)
Get environment variable.
virtual void SetMainColor(Color_t c)
Set main (line) color for the list and the elements.
void SetShape(TGeoShape *s)
Set TGeoShape shown by this object.
virtual void SetMainColor(Color_t color)
Set main color.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
virtual void DestroyElements()
Destroy all children of this element.
void SetPMAS(int ip, int i, double m)
void Error(const char *location, const char *msgfmt,...)
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
R__EXTERN TSystem * gSystem
void SetTabTitle(const char *title, Int_t pos=kRight, Int_t subpos=-1)
Set text "title" of Tab "subpos" in TGTab "pos".
R__EXTERN TEveManager * gEve
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...
char * Form(const char *fmt,...)
TEveTrackPropagator * GetPropagator()
virtual void AddElement(TEveElement *el)
Add el to the list of children.
Holding structure for a number of track rendering parameters.
void SetMaxZ(Double_t x)
Set maximum z and rebuild tracks.
Visual representation of a track.
void Warning(const char *location, const char *msgfmt,...)
TGTab * GetTabRight() const
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
Int_t GetLastChild() const
virtual void SetMarkerSize(Size_t s)
Set marker size for the list and the elements.
virtual void StopEmbedding(const char *name=0)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
void SetMagField(Double_t bX, Double_t bY, Double_t bZ)
Set constant magnetic field and rebuild tracks.
An array of clone (identical) objects.
TEveEventManager * GetCurrentEvent() const
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void MakeTracks(Bool_t recurse=kTRUE)
Regenerate the visual representations of tracks.
Float_t GetEnergy() const
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual TObjArray * GetListOfParticles() const