/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
- * full copyright notice. *
+ * full copyright notice. *
**************************************************************************/
#ifdef __CINT__
-namespace TEveUtil
-{
class TEveElement;
class TEvePointSet;
-}
#else
#include <TEveManager.h>
#include <TEvePointSet.h>
-#include <Alieve/AliEveEventManager.h>
+#include <EveBase/AliEveEventManager.h>
#include <AliRunLoader.h>
#include <AliCluster.h>
rl->LoadRecPoints("ITS");
TTree *cTree = rl->GetTreeR("ITS", false);
-
- TEvePointSet* clusters = new TEvePointSet(10000);
- clusters->SetOwnIds(kTRUE);
+ if (cTree == 0)
+ return 0;
TClonesArray *cl = NULL;
TBranch *branch = cTree->GetBranch("ITSRecPoints");
branch->SetAddress(&cl);
+ TEvePointSet* clusters = new TEvePointSet(10000);
+ clusters->SetOwnIds(kTRUE);
+
Int_t nentr=(Int_t)cTree->GetEntries();
for (Int_t i=0; i<nentr; i++) {
if (!cTree->GetEvent(i)) continue;
}
if (clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
- Warning("its_clusters", "No ITS clusters");
+ Warning("its_clusters.C", "No ITS clusters");
delete clusters;
return 0;
}