From 231e66cdff7efb37618b6cd6bbef13b085c054de Mon Sep 17 00:00:00 2001 From: cvetan Date: Fri, 23 Mar 2007 12:18:26 +0000 Subject: [PATCH] Bug fix affecting the size of the raw-data stored in the CDH --- HMPID/AliHMPIDDigit.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/HMPID/AliHMPIDDigit.cxx b/HMPID/AliHMPIDDigit.cxx index ba2353b29af..d9afb0c3b27 100644 --- a/HMPID/AliHMPIDDigit.cxx +++ b/HMPID/AliHMPIDDigit.cxx @@ -145,20 +145,21 @@ void AliHMPIDDigit::WriteRaw(TObjArray *pDigAll) // Write a list of digits for a given chamber in raw data stream // Arguments: pDigAll- list of digits // Returns: none - ofstream ddlL,ddlR; //output streams, 2 per chamber - Int_t cntL=0,cntR=0; //data words counters for DDLs - AliRawDataHeader header; header.SetAttribute(0); //empty DDL header - - UInt_t w32=0; Int_t ddl,r,d,a; //32 bits data word for(Int_t iCh=kMinCh;iCh<=kMaxCh;iCh++){//chambers loop + ofstream ddlL,ddlR; //output streams, 2 per chamber + Int_t cntL=0,cntR=0; //data words counters for DDLs + AliRawDataHeader header; header.SetAttribute(0); //empty DDL header + ddlL.open(AliDAQ::DdlFileName("HMPID",2*iCh)); ddlR.open(AliDAQ::DdlFileName("HMPID",2*iCh+1)); //open both DDL of this chamber in parallel ddlL.write((char*)&header,sizeof(header)); //write dummy header as place holder, actual ddlR.write((char*)&header,sizeof(header)); //will be rewritten later when total size of DDL is known + UInt_t w32=0; //32 bits data word TClonesArray *pDigCh=(TClonesArray *)pDigAll->At(iCh); //list of digits for current chamber for(Int_t iDig=0;iDigGetEntriesFast();iDig++){//digits loop AliHMPIDDigit *pDig=(AliHMPIDDigit*)pDigCh->At(iDig); + Int_t ddl,r,d,a; //32 bits data word pDig->Raw(w32,ddl,r,d,a); if(ddl%2){ ddlL.write((char*)&w32,sizeof(w32)); cntL++; -- 2.39.3