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 **************************************************************************/
10 void tof_digits_sector(Int_t sector=0)
13 TGeoManager *localGeoManager = gEve->GetGeometry("./geometry.root");// gGeoManager = gEve->GetDefaultGeometry();
14 if (!localGeoManager) {
15 printf("ERROR: no TGeo\n");
18 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
19 rl->LoadDigits("TOF");
20 TTree* dt = rl->GetTreeD("TOF", false);
22 AliEveTOFDigitsInfo* di = new AliEveTOFDigitsInfo();
26 AliTOFGeometry* g = di->GetTOFgeometry();
28 gStyle->SetPalette(1, 0);
29 gEve->DisableRedraw();
31 Char_t sectorName[100];
32 Char_t sectorTitle[200];
34 TEveElementList* ll = new TEveElementList("TOF");
35 ll->SetTitle("TOF detector");
39 AliEveTOFSector* m = new AliEveTOFSector(localGeoManager, sector, dt);
41 m->SetAutoTrans(kFALSE);
43 gEve->AddElement(m, ll);