]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/lego.C
coverity fix for 18249
[u/mrichter/AliRoot.git] / EVE / alice-macros / lego.C
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  **************************************************************************/
8
9 AliEveLego* lego(){
10
11    AliEveEventManager *mng = AliEveEventManager::GetMaster();
12    AliEveLego *lego = mng->FindGlobal("LegoHisto2D");
13
14    if ( lego == 0) {
15       lego = new AliEveLego();
16       mng->InsertGlobal("LegoHisto2D",lego);
17    } else {
18       lego->Update();
19    } 
20
21    return lego;
22 }