44MultiView* gMultiView = 0;
74 TVSDReader(
const char* file_name) :
75 fFile(0), fDirectory(0), fEvDirKeys(0),
78 fMaxEv(-1), fCurEv(-1),
81 fITSClusters(0), fTPCClusters(0), fTRDClusters(0), fTOFClusters(0)
86 Error(
"VSD_Reader",
"Can not open file '%s' ... terminating.",
104 Error(
"VSD_Reader",
"No events to show ... terminating.");
111 virtual ~TVSDReader()
154 GotoEvent(fCurEv + 1);
159 GotoEvent(fCurEv - 1);
164 if (ev < 0 || ev >= fMaxEv)
166 Warning(
"GotoEvent",
"Invalid event id %d.", ev);
182 LoadClusters(fITSClusters,
"ITS", 0);
183 LoadClusters(fTPCClusters,
"TPC", 1);
184 LoadClusters(fTRDClusters,
"TRD", 2);
185 LoadClusters(fTOFClusters,
"TOF", 3);
193 gMultiView->DestroyEventRPhi();
194 gMultiView->ImportEventRPhi(top);
196 gMultiView->DestroyEventRhoZ();
197 gMultiView->ImportEventRhoZ(top);
214 ps->SetMarkerSize(0.5);
215 ps->SetMarkerStyle(2);
216 ps->IncDenyDestroy();
236 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
237 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
238 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
239 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
259 if (fTrackList == 0) {
278 for (
Int_t n = 0;
n < nTracks; ++
n) {
296TVSDReader* gVSDReader = 0;
303void alice_vsd(
const char* vsd_file_name=
304 "http://mtadel.home.cern.ch/mtadel/root/AliVSD.root")
319 gVSDReader =
new TVSDReader(vsd_file_name);
327 TFile::Open(
"http://mtadel.home.cern.ch/mtadel/root/alice_mini_geom.root",
342 gMultiView =
new MultiView;
345 gMultiView->SetDepth(-10);
346 gMultiView->ImportGeomRPhi(gentle_geom);
347 gMultiView->ImportGeomRhoZ(gentle_geom);
348 gMultiView->SetDepth(0);
363 gVSDReader->GotoEvent(0);
378 frmMain->SetWindowName(
"XX GUI");
388 b->Connect(
"Clicked()",
"TVSDReader", gVSDReader,
"PrevEvent()");
392 b->Connect(
"Clicked()",
"TVSDReader", gVSDReader,
"NextEvent()");
394 frmMain->AddFrame(hf);
396 frmMain->MapSubwindows();
398 frmMain->MapWindow();
400 browser->StopEmbedding();
401 browser->SetTabTitle(
"Event Control", 0);
Multi-view (3d, rphi, rhoz) service class using EVE Window Manager.
#define ClassDef(name, id)
void Error(const char *location, const char *msgfmt,...)
void Warning(const char *location, const char *msgfmt,...)
R__EXTERN TEveManager * gEve
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
TList * GetListOfKeys() const override
Describe directory structure in memory.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
void IncDenyDestroy()
Increases the deny-destroy count of the element.
virtual void DestroyElements()
Destroy all children of this element.
Base class for event management and navigation.
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=0)
Import a shape extract 'gse' under element 'parent'.
TEveViewerList * GetViewers() const
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
TEveBrowser * GetBrowser() const
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
TGListTreeItem * AddEvent(TEveEventManager *event)
Add a new event and make it the current event.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
TEveEventManager * GetCurrentEvent() const
TEvePointSelector is a sub-class of TSelectorDraw for direct extraction of point-like data from a Tre...
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
A list of tracks supporting change of common attributes and selection based on track parameters.
virtual void SetMarkerStyle(Style_t s)
Set marker style for the list and the elements.
virtual void SetMarkerColor(Color_t c)
Set marker color for the list and the elements.
void MakeTracks(Bool_t recurse=kTRUE)
Regenerate the visual representations of tracks.
virtual void SetMainColor(Color_t c)
Set main (line) color for the list and the elements.
TEveTrackPropagator * GetPropagator()
virtual void SetMarkerSize(Size_t s)
Set marker size for the list and the elements.
void SetMagField(Double_t bX, Double_t bY, Double_t bZ)
Set constant magnetic field and rebuild tracks.
Visual representation of a track.
void SetAttLineAttMarker(TEveTrackList *tl)
Set line and marker attributes from TEveTrackList.
virtual void SetStdTitle()
Set standard track title based on most data-member values.
Visualization Summary Data - a collection of trees holding standard event data in experiment independ...
static void DisableTObjectStreamersForVSDStruct()
Disable TObject streamers for those VSD structs that inherit from TObject directly.
virtual void SetBranchAddresses()
Set branche addresses of internal trees.
virtual void DeleteTrees()
Delete internal trees.
virtual void SetDirectory(TDirectory *dir)
Set directory in which the trees are (or will be) created.
virtual void LoadTrees()
Load internal trees from directory.
void SwitchColorSet()
Switch background color.
void DeleteAnnotations()
Delete annotations from all viewers.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void Close(Option_t *option="") override
Close a file.
void SetStyle(Short_t st)
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...
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual TObjLink * FirstLink() const
Int_t GetEntriesFast() const
TObject * At(Int_t idx) const
Wrapper around a TObject so it can be stored in a TList.
TObject * GetObject() const
virtual const char * GetName() const
Returns name of object.
Wrapper for PCRE library (Perl Compatible Regular Expressions).
virtual void SetName(const char *name)
Change (i.e.
virtual void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1)
Start embedding external frame in the tab "pos" and tab element "subpos".
TGTab * GetTabRight() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual const char * Getenv(const char *env)
Get environment variable.
virtual void Exit(int code, Bool_t mode=kTRUE)
Exit the application.
virtual Long64_t GetEntries() const
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
static constexpr double ps