2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
13 TClonesArray *array = 0x0;
15 TGeoManager *localGeoManager = gEve->GetGeometry("./geometry.root");// gGeoManager = gEve->GetDefaultGeometry();
16 if (!localGeoManager) {
17 printf("ERROR: no TGeo\n");
20 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
21 rl->LoadDigits("TOF");
22 TTree* dt = rl->GetTreeD("TOF", false);
24 AliEveTOFDigitsInfo* di = new AliEveTOFDigitsInfo();
29 AliTOFGeometry* g = di->GetTOFgeometry();
31 gStyle->SetPalette(1, 0);
32 gEve->DisableRedraw();
34 TEveElementList* ll = new TEveElementList("TOF");
35 ll->SetTitle("TOF detector");
39 for(Int_t iSector=0; iSector<g->NSectors(); iSector++) {
41 array = di->GetDigits(iSector);
43 AliEveTOFSector* m = new AliEveTOFSector(localGeoManager,iSector,array);
45 gEve->AddElement(m, ll);