]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/hlt-macros/geom_hlt.C
Custom streamer in AliITSCalibrationSPD for backward compatibility (H. Tydesjo)
[u/mrichter/AliRoot.git] / EVE / hlt-macros / geom_hlt.C
CommitLineData
46eadbb4 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 **************************************************************************/
6
7/*
8 * Geometry as used for HLT
9 */
10
11#include "AliEveMUONData.h"
12#include "AliEveMUONChamber.h"
13
14#include "TEveGeoShapeExtract.h"
15#include "TEveGeoNode.h"
16#include "TEveManager.h"
17#include "TEveEventManager.h"
18#include "TEveElement.h"
19
20#include "TFile.h"
21#include "TStyle.h"
22
23TEveGeoShape* geom_hlt()
24{
25 TFile f("$REVESYS/alice-data/gentle_geo.root");
26 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
27 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse, 0);
28 f.Close();
29
30 TEveElement* elTRD = gsre->FindChild("TRD+TOF");
31 elTRD->SetRnrState(kFALSE);
32
33 TEveElement* elPHOS = gsre->FindChild("PHOS");
34 elPHOS->SetRnrState(kFALSE);
35
36 TEveElement* elHMPID = gsre->FindChild("HMPID");
37 elHMPID->SetRnrState(kFALSE);
38
39 Int_t MUON_geom();
40 MUON_geom();
41
42 return gsre;
43}
44
45Int_t MUON_geom()
46{
47
48 AliEveMUONChamber* mucha[14];
49
50
51 AliEveMUONData * g_muon_data = new AliEveMUONData;
52
53 gStyle->SetPalette(1, 0);
54
55 gEve->DisableRedraw();
56
57 TEveElementList* mul = new TEveElementList("MUONChambers");
58 TEveElementList* muChData = new TEveElementList("MUONChamberData");
59 mul->SetTitle("MUON chambers");
fbc350a3 60 mul->SetMainColor(3);
46eadbb4 61 gEve->AddGlobalElement(mul);
62 gEve->AddElement(muChData);
63
64 for (Int_t ic = 0; ic < 14; ic++){
65
66 mucha[ic] = new AliEveMUONChamber(ic);
67
68 mucha[ic]->SetFrameColor(3);
69 mucha[ic]->SetChamberID(ic);
70
71 mucha[ic]->SetDataSource(g_muon_data);
72
73 gEve->AddElement(mucha[ic], mul);
74
75 }
76
77 gEve->Redraw3D(kTRUE);
78 gEve->EnableRedraw();
79
80
81 return true;
82}