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;
}
if (clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE)
{
- Warning("tpc_clusters", "No TPC clusters");
+ Warning("tpc_clusters.C", "No TPC clusters");
delete clusters;
return 0;
}
TEvePointSet* trd_clusters(TEveElement *cont = 0)
{
const Int_t kMaxClusters = 18 * 6 * 24 *10;
- AliEveEventManager::AssertGeometry();
- TEvePointSet *clusters = new TEvePointSet(kMaxClusters);
- clusters->SetOwnIds(kTRUE);
+ AliEveEventManager::AssertGeometry();
AliRunLoader *rl = AliEveEventManager::AssertRunLoader();
rl->LoadRecPoints("TRD");
- TObjArray *TRDcluster = 0x0;
TTree *recPoints = rl->GetTreeR("TRD", kFALSE);
+ if (recPoints == 0)
+ return 0;
+
+ TObjArray *TRDcluster = 0x0;
recPoints->SetBranchAddress("TRDcluster", &TRDcluster);
+ TEvePointSet *clusters = new TEvePointSet(kMaxClusters);
+ clusters->SetOwnIds(kTRUE);
+
+
Int_t nentr=(Int_t)recPoints->GetEntries();
for (Int_t i=0; i<nentr; i++) {
if (!recPoints->GetEvent(i)) continue;
}
if(clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
- Warning("trd_clusters", "No TRD clusters");
+ Warning("trd_clusters.C", "No TRD clusters");
delete clusters;
return 0;
}