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"
14 #include "TEveGeoShapeExtract.h"
15 #include "TEveGeoNode.h"
16 #include "TEveManager.h"
17 #include "TEveEventManager.h"
18 #include "TEveElement.h"
23 TEveGeoShape* geom_hlt()
25 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
26 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
27 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse, 0);
30 TEveElement* elTRD = gsre->FindChild("TRD+TOF");
31 elTRD->SetRnrState(kFALSE);
33 TEveElement* elPHOS = gsre->FindChild("PHOS");
34 elPHOS->SetRnrState(kFALSE);
36 TEveElement* elHMPID = gsre->FindChild("HMPID");
37 elHMPID->SetRnrState(kFALSE);
48 AliEveMUONChamber* mucha[14];
51 AliEveMUONData * g_muon_data = new AliEveMUONData;
53 gStyle->SetPalette(1, 0);
55 gEve->DisableRedraw();
57 TEveElementList* mul = new TEveElementList("MUONChambers");
58 TEveElementList* muChData = new TEveElementList("MUONChamberData");
59 mul->SetTitle("MUON chambers");
61 gEve->AddGlobalElement(mul);
62 gEve->AddElement(muChData);
64 for (Int_t ic = 0; ic < 14; ic++){
66 mucha[ic] = new AliEveMUONChamber(ic);
68 mucha[ic]->SetFrameColor(3);
69 mucha[ic]->SetChamberID(ic);
71 mucha[ic]->SetDataSource(g_muon_data);
73 gEve->AddElement(mucha[ic], mul);
77 gEve->Redraw3D(kTRUE);