X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=EVE%2Ftest-macros%2Ftpc_gui.C;h=b7c42b6118a547154f6ca2d60157eb1392650450;hp=88a84a253b05a8e3c74b01662a9e707096b1af89;hb=af13c843e2866a95a09415e2757b7eb23e1c8a8d;hpb=5b96ea20f4e3991ad5e23cf89c15a294d2c0011b diff --git a/EVE/test-macros/tpc_gui.C b/EVE/test-macros/tpc_gui.C index 88a84a253b0..b7c42b6118a 100644 --- a/EVE/test-macros/tpc_gui.C +++ b/EVE/test-macros/tpc_gui.C @@ -1,24 +1,36 @@ -// $Header$ +// $Id$ +// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 + +/************************************************************************** + * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * + * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * + * full copyright notice. * + **************************************************************************/ // Function to spawn a gui for reading rootified raw-data from TPC sector test. +// +// To use: +// a) select AliEveTPCLoader entry in the list-tree view; +// you'll get a dialog to steer the data-loading process in an adjacent window +// b) to select a ROOT file containing the raw-data double-click on 'File:' +// text entry to spawn a file-dialog or type in the name +// c) click open to actually open the file and load an event #ifdef __CINT__ class AliRawReaderRoot; -namespace Alieve { -class TPCData; -class TPCSector2D; -class TPCSector3D; -} +class AliEveTPCData; +class AliEveTPCSector2D; +class AliEveTPCSector3D; #else -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -29,25 +41,23 @@ class TPCSector3D; #endif -using namespace Alieve; +AliEveTPCLoader* tpc_loader = 0; void tpc_gui(const char *file=0, Int_t ievent=0) { gStyle->SetPalette(1, 0); - TPCLoader* l = new TPCLoader; - TPCData* d = new TPCData; + AliEveTPCLoader* l = tpc_loader = new AliEveTPCLoader; + AliEveTPCData* d = new AliEveTPCData; // d->SetLoadPedestal(5); d->SetLoadThreshold(5); d->SetAutoPedestal(kTRUE); l->SetData(d); l->SetDoubleSR(kTRUE); - // l->SetInitParams(40, 980, 10); // min-time, max-time, threshold + l->SetInitParams(40, 980, 10); // min-time, max-time, threshold // l->SetTPCEquipementMap("EquipmentIdMap.data"); - gReve->AddRenderElement(l); - gReve->NotifyBrowser(l); - gReve->DrawRenderElement(l); + gEve->AddElement(l); if(file != 0) { l->SetFile(file);