22 #if defined(__CINT__) && !defined(__MAKECINT__)
25 "Has to be run in compiled mode ... doing this for you.");
53 MultiView* gMultiView = 0;
83 TVSDReader(
const char* file_name) :
84 fFile(0), fDirectory(0), fEvDirKeys(0),
87 fMaxEv(-1), fCurEv(-1),
90 fITSClusters(0), fTPCClusters(0), fTRDClusters(0), fTOFClusters(0)
95 Error(
"VSD_Reader",
"Can not open file '%s' ... terminating.",
102 TObjLink* lnk = fFile->GetListOfKeys()->FirstLink();
112 fMaxEv = fEvDirKeys->GetEntriesFast();
115 Error(
"VSD_Reader",
"No events to show ... terminating.");
122 virtual ~TVSDReader()
140 fVSD->SetBranchAddresses();
165 GotoEvent(fCurEv + 1);
170 GotoEvent(fCurEv - 1);
175 if (ev < 0 || ev >= fMaxEv)
177 Warning(
"GotoEvent",
"Invalid event id %d.", ev);
186 fDirectory = (
TDirectory*) ((
TKey*) fEvDirKeys->At(fCurEv))->ReadObj();
187 fVSD->SetDirectory(fDirectory);
193 LoadClusters(fITSClusters,
"ITS", 0);
194 LoadClusters(fTPCClusters,
"TPC", 1);
195 LoadClusters(fTRDClusters,
"TRD", 2);
196 LoadClusters(fTOFClusters,
"TOF", 3);
204 gMultiView->DestroyEventRPhi();
205 gMultiView->ImportEventRPhi(top);
207 gMultiView->DestroyEventRhoZ();
208 gMultiView->ImportEventRhoZ(top);
250 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
251 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
252 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
253 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
276 fTrackList->SetMainColor(6);
277 fTrackList->SetMarkerColor(
kYellow);
278 fTrackList->SetMarkerStyle(4);
279 fTrackList->SetMarkerSize(0.5);
281 fTrackList->IncDenyDestroy();
285 fTrackList->DestroyElements();
294 Int_t nTracks = fVSD->fTreeR->GetEntries();
297 fVSD->fTreeR->GetEntry(
n);
300 track->
SetName(
Form(
"ESD Track %d", fVSD->fR.fIndex));
303 fTrackList->AddElement(track);
306 fTrackList->MakeTracks();
314 TVSDReader* gVSDReader = 0;
321 void alice_vsd(
const char* vsd_file_name=
322 "http://mtadel.home.cern.ch/mtadel/root/AliVSD.root")
337 gVSDReader =
new TVSDReader(vsd_file_name);
345 TFile::Open(
"http://mtadel.home.cern.ch/mtadel/root/alice_mini_geom.root",
360 gMultiView =
new MultiView;
363 gMultiView->SetDepth(-10);
364 gMultiView->ImportGeomRPhi(gentle_geom);
365 gMultiView->ImportGeomRhoZ(gentle_geom);
366 gMultiView->SetDepth(0);
381 gVSDReader->GotoEvent(0);
406 b->
Connect(
"Clicked()",
"TVSDReader", gVSDReader,
"PrevEvent()");
410 b->
Connect(
"Clicked()",
"TVSDReader", gVSDReader,
"NextEvent()");
TEveViewerList * GetViewers() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
Base class for event management and navigation.
static void DisableTObjectStreamersForVSDStruct()
Disable TObject streamers for those VSD structs that inherit from TObject directly.
virtual void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1)
Start embedding external frame in the tab "pos" and tab element "subpos".
virtual void SetName(const char *name)
Change (i.e.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
virtual Int_t Size() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
void IncDenyDestroy()
Increases the deny-destroy count of the element.
Specialization of TRootBrowser for Eve.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set marker style, propagate to projecteds.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
virtual void SetTitle(const char *t)
void SwitchColorSet()
Switch background color.
TEveEventManager * GetCurrentEvent() const
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
void SetStepper(EStepper_e s)
#define ClassDef(name, id)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Multi-view (3d, rphi, rhoz) service class using EVE Window Manager.
A list of tracks supporting change of common attributes and selection based on track parameters...
virtual int CompileMacro(const char *filename, Option_t *opt="", const char *library_name="", const char *build_dir="", UInt_t dirmode=0)
This method compiles and loads a shared library containing the code from the file "filename"...
virtual const char * Getenv(const char *env)
Get environment variable.
void Info(const char *location, const char *msgfmt,...)
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void SetMarkerSize(Size_t msize=1)
Set marker size, propagate to projecteds.
virtual void DestroyElements()
Destroy all children of this element.
void Error(const char *location, const char *msgfmt,...)
TGListTreeItem * AddEvent(TEveEventManager *event)
Add a new event and make it the current event.
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...
virtual Int_t Select(Int_t interest=kRead, Long_t timeout=-1)
Waits for this socket to change status.
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
TObject * GetObject() const
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,...)
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
Holding structure for a number of track rendering parameters.
Visual representation of a track.
void Warning(const char *location, const char *msgfmt,...)
virtual void SetMainColor(Color_t color)
Set main color of the element.
void DeleteAnnotations()
Delete annotations from all viewers.
virtual const char * GetName() const
Returns name of object.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
Describe directory structure in memory.
Wrapper around a TObject so it can be stored in a TList.
TEveBrowser * GetBrowser() const
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
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 Reset(Int_t n_points=0, Int_t n_int_ids=0)
Drop all data and set-up the data structures to recive new data.
Visualization Summary Data - a collection of trees holding standard event data in experiment independ...
void SetMagField(Double_t bX, Double_t bY, Double_t bZ)
Set constant magnetic field and rebuild tracks.
static Bool_t SetCacheFileDir(const char *cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
Wrapper for PCRE library (Perl Compatible Regular Expressions).
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
virtual void Exit(int code, Bool_t mode=kTRUE)
Exit the application.
virtual void SetStdTitle()
Set standard track title based on most data-member values.
void SetAttLineAttMarker(TEveTrackList *tl)
Set line and marker attributes from TEveTrackList.
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=0)
Import a shape extract 'gse' under element 'parent'.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
TGTab * GetTabRight() const
void SetStyle(Short_t st)
TEvePointSelector is a sub-class of TSelectorDraw for direct extraction of point-like data from a Tre...
virtual void Close(Option_t *option="")
Close a file.