]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/lego.C
Modified macros to be compilable by ACLiC
[u/mrichter/AliRoot.git] / EVE / alice-macros / lego.C
CommitLineData
3d94b490 1// Author: Stefano Carrazza 2010
2
3/**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
ba978640 8#if !defined(__CINT__) || defined(__MAKECINT__)
9#include <TEveElement.h>
10
11#include <EVE/EveBase/AliEveEventManager.h>
12#include <EVE/EveBase/AliEveLego.h>
13#endif
3d94b490 14
15AliEveLego* lego(){
16
17 AliEveEventManager *mng = AliEveEventManager::GetMaster();
ba978640 18 AliEveLego *lego = dynamic_cast<AliEveLego*>(mng->FindGlobal("LegoHisto2D"));
3d94b490 19
20 if ( lego == 0) {
21 lego = new AliEveLego();
22 mng->InsertGlobal("LegoHisto2D",lego);
23 } else {
24 lego->Update();
25 }
26
27 return lego;
28}