From: masera Date: Mon, 21 Jul 2003 14:26:50 +0000 (+0000) Subject: Fix in AliITS::MakeBranchR since fRecPoints is no longer persistent X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=8a92b3ef410aa9a177b2e63f0af0865f7cf8b4cc Fix in AliITS::MakeBranchR since fRecPoints is no longer persistent --- diff --git a/ITS/AliITS.cxx b/ITS/AliITS.cxx index 612d69c307a..5704522f241 100644 --- a/ITS/AliITS.cxx +++ b/ITS/AliITS.cxx @@ -1520,8 +1520,8 @@ void AliITS::MakeBranchR(const char *file, Option_t *opt){ } - - if (fRecPoints && fLoader->TreeR()) { + if(!fRecPoints)fRecPoints = new TClonesArray("AliITSRecPoint",1000); + if (fLoader->TreeR()) { if (fRecPoints == 0x0) fRecPoints = new TClonesArray("AliITSRecPoint",1000); MakeBranchInTree(fLoader->TreeR(),branchname,&fRecPoints,buffsz,file); } // end if @@ -1589,6 +1589,7 @@ void AliITS::HitsToFastRecPoints(Int_t evNumber,Int_t bgrev,Int_t size, // none. if(!GetITSgeom()) return; + AliITSLoader *pITSloader = (AliITSLoader*)fLoader; AliITSgeom *geom = GetITSgeom(); const char *all = strstr(opt1,"All"); @@ -1622,8 +1623,9 @@ void AliITS::HitsToFastRecPoints(Int_t evNumber,Int_t bgrev,Int_t size, mod = (AliITSmodule *)fITSmodules->At(module); sim->CreateFastRecPoints(mod,module,gRandom); cout<TreeR()->Fill(); - TBranch *br=fLoader->TreeR()->GetBranch("ITSRecPointsF"); + //gAlice->TreeR()->Fill(); + TTree *TR = pITSloader->TreeR(); + TBranch *br=TR->GetBranch("ITSRecPointsF"); br->Fill(); ResetRecPoints(); } // end for module