1 /**************************************************************************
2 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
3 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
4 * full copyright notice. *
5 **************************************************************************/
8 * Geometry as used for HLT
11 #include "AliEveMUONData.h"
12 #include "AliEveMUONChamber.h"
13 #include "AliCDBManager.h"
15 #include "TEveGeoShapeExtract.h"
16 #include "TEveGeoNode.h"
17 #include "TEveManager.h"
18 #include "TEveEventManager.h"
19 #include "TEveElement.h"
24 TEveGeoShape* geom_hlt()
26 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
27 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
28 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse, 0);
29 gEve->AddGlobalElement(gsre);
32 TEveElement* elTRD = gsre->FindChild("TRD+TOF");
33 elTRD->SetRnrState(kFALSE);
35 TEveElement* elPHOS = gsre->FindChild("PHOS");
36 elPHOS->SetRnrState(kFALSE);
38 TEveElement* elHMPID = gsre->FindChild("HMPID");
39 elHMPID->SetRnrState(kFALSE);
51 gStyle->SetPalette(1, 0);
52 gEve->DisableRedraw();
54 AliCDBManager *cdb = AliCDBManager::Instance();
55 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
58 AliEveMUONData *g_muon_data = new AliEveMUONData;
60 TEveElementList* l = new TEveElementList("MUONChambers");
61 l->SetTitle("MUON chambers");
63 gEve->AddGlobalElement(l);
65 for (Int_t ic = 0; ic < 14; ic++)
67 AliEveMUONChamber* mucha = new AliEveMUONChamber(ic);
69 mucha->SetFrameColor(2);
70 mucha->SetChamberID(ic);
72 mucha->SetDataSource(g_muon_data);
74 gEve->AddElement(mucha, l);
77 gEve->Redraw3D(kTRUE);