#include "AliFstream.h"
#include "AliITSFOSignalsSPD.h"
+using std::ofstream;
+using std::ios;
+using std::endl;
ClassImp(AliITSDDLRawData)
////////////////////////////////////////////////////////////////////////////////////////
AliITSDDLRawData& AliITSDDLRawData::operator=(const AliITSDDLRawData &source){
//Assigment operator
- this->fIndex=source.fIndex;
- this->fHalfStaveModule=source.fHalfStaveModule;
- this->fVerbose=source.fVerbose;
- this->fSDDRawFormat=source.fSDDRawFormat;
+ if(this==&source) return *this;
+ fIndex=source.fIndex;
+ fHalfStaveModule=source.fHalfStaveModule;
+ fVerbose=source.fVerbose;
+ fSDDRawFormat=source.fSDDRawFormat;
return *this;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-Int_t AliITSDDLRawData::RawDataSDD(TBranch* branch, AliITSDDLModuleMapSDD* ddlsdd){
+Int_t AliITSDDLRawData::RawDataSDD(TBranch* branch, const AliITSDDLModuleMapSDD* ddlsdd){
//This method creates the Raw data files for SDD detectors
const Int_t kSize=131072; //256*512
UInt_t buf[kSize];
for(Int_t ibit=0; ibit<5; ibit++) header.SetAttribute(ibit);
for(Int_t ibit=5; ibit<8; ibit++) header.ResetAttribute(ibit);
}
- UInt_t skippedword, carlosFooterWord,fifoFooterWord,jitterWord;
+ UInt_t skippedword=0;
+ UInt_t carlosFooterWord=0;
+ UInt_t fifoFooterWord=0;
+ UInt_t jitterWord=0;
Bool_t retcode;
retcode = AliBitPacking::PackWord(0x3FFFFFFF,carlosFooterWord,0,31);
+ if(!retcode)AliError("AliBitPacking error\n");
retcode = AliBitPacking::PackWord(0x3F1F1F1F,fifoFooterWord,0,31);
if(fSDDRawFormat!=0) retcode = AliBitPacking::PackWord(0x7F000000,jitterWord,0,31);
else retcode = AliBitPacking::PackWord(0x80000000,jitterWord,0,31);