X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PHOS%2FAliPHOSv0.cxx;h=a6ef72fa3f96d088558ab75d9be0e56b407e8975;hp=088b990b438c7cdf0b34722da7c87a1ccecf4d1b;hb=5ea56127508821292ee9402d0530de3d0b68b6e1;hpb=cfa586acb450a6a4bff2a8c130f52225214be3d2 diff --git a/PHOS/AliPHOSv0.cxx b/PHOS/AliPHOSv0.cxx index 088b990b438..a6ef72fa3f9 100644 --- a/PHOS/AliPHOSv0.cxx +++ b/PHOS/AliPHOSv0.cxx @@ -1165,12 +1165,15 @@ void AliPHOSv0::FinishEvent() // Save the cumulated hits instead of raw hits (need to create the branch myself) // It is put in the Digit Tree because the TreeH is filled after each primary // and the TreeD at the end of the event. - if ( fTmpHits && gAlice->TreeD() ) { - char branchname[10] ; - sprintf(branchname, "%sCH", GetName()) ; - gAlice->TreeD()->Branch(branchname, &fTmpHits, fBufferSize) ; - } else - cout << "AliPHOSv0::AliPHOSv0: Failed to create branch PHOSCH in TreeD " << endl ; + + if ( ! (gAlice->IsLegoRun()) ) { // only when not in lego plot mode + if ( fTmpHits && gAlice->TreeD() ) { + char branchname[10] ; + sprintf(branchname, "%sCH", GetName()) ; + gAlice->TreeD()->Branch(branchname, &fTmpHits, fBufferSize) ; + } else + cout << "AliPHOSv0::AliPHOSv0: Failed to create branch PHOSCH in TreeD " << endl ; + } Int_t i ; Int_t relid[4];