From 177b002e56fb0a451864a45e793ae71ffd4ccd52 Mon Sep 17 00:00:00 2001 From: decaro Date: Tue, 10 Feb 2009 11:19:19 +0000 Subject: [PATCH] Removed two global variables in the AliTOFDDLRawData class, called fTOFRawStream and fCableLengthMap --- TOF/AliTOFDDLRawData.cxx | 34 ++++++++++++++++++++-------------- TOF/AliTOFDDLRawData.h | 10 +++++----- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/TOF/AliTOFDDLRawData.cxx b/TOF/AliTOFDDLRawData.cxx index c7146946c29..fe4fc5bb602 100644 --- a/TOF/AliTOFDDLRawData.cxx +++ b/TOF/AliTOFDDLRawData.cxx @@ -102,9 +102,9 @@ AliTOFDDLRawData::AliTOFDDLRawData(): fFakeOrphaneProduction(kFALSE), fMatchingWindow(8192), fTOFdigitMap(new AliTOFDigitMap()), - fTOFdigitArray(0x0), - fTOFrawStream(new AliTOFRawStream()), - fTOFCableLengthMap(new AliTOFCableLengthMap()) + fTOFdigitArray(0x0) + //fTOFrawStream(AliTOFRawStream()), + //fTOFCableLengthMap(new AliTOFCableLengthMap()) { //Default constructor } @@ -117,9 +117,9 @@ AliTOFDDLRawData::AliTOFDDLRawData(const AliTOFDDLRawData &source) : fFakeOrphaneProduction(source.fFakeOrphaneProduction), fMatchingWindow(source.fMatchingWindow), fTOFdigitMap(source.fTOFdigitMap), - fTOFdigitArray(source.fTOFdigitArray), - fTOFrawStream(source.fTOFrawStream), - fTOFCableLengthMap(source.fTOFCableLengthMap) + fTOFdigitArray(source.fTOFdigitArray) + //fTOFrawStream(source.fTOFrawStream), + //fTOFCableLengthMap(source.fTOFCableLengthMap) { //Copy Constructor return; @@ -140,8 +140,8 @@ AliTOFDDLRawData& AliTOFDDLRawData::operator=(const AliTOFDDLRawData &source) { fMatchingWindow=source.fMatchingWindow; fTOFdigitMap=source.fTOFdigitMap; fTOFdigitArray=source.fTOFdigitArray; - fTOFrawStream=source.fTOFrawStream; - fTOFCableLengthMap=source.fTOFCableLengthMap; + //fTOFrawStream=source.fTOFrawStream; + //fTOFCableLengthMap=source.fTOFCableLengthMap; return *this; } @@ -149,8 +149,8 @@ AliTOFDDLRawData& AliTOFDDLRawData::operator=(const AliTOFDDLRawData &source) { AliTOFDDLRawData::~AliTOFDDLRawData() { delete fTOFdigitMap; - delete fTOFrawStream; - delete fTOFCableLengthMap; + //delete fTOFrawStream; + //delete fTOFCableLengthMap; } //---------------------------------------------------------------------------- Int_t AliTOFDDLRawData::RawDataTOF(TBranch* branch) @@ -166,6 +166,8 @@ Int_t AliTOFDDLRawData::RawDataTOF(TBranch* branch) // To clear the digit indices map for each event fTOFdigitMap->Clear(); + //fTOFrawStream->Clear(); + fIndex = -1; fTOFdigitArray = * (TClonesArray**) branch->GetAddress(); @@ -198,7 +200,8 @@ Int_t AliTOFDDLRawData::RawDataTOF(TBranch* branch) strcpy(fileName,AliDAQ::DdlFileName("TOF",nDDL)); //The name of the output file outfile = new AliFstream(fileName); - iDDL = fTOFrawStream->GetDDLnumberPerSector(nDDL); + //iDDL = fTOFrawStream->GetDDLnumberPerSector(nDDL); + iDDL = AliTOFRawStream::GetDDLnumberPerSector(nDDL); // write Dummy DATA HEADER UInt_t dataHeaderPosition = outfile->Tellp(); @@ -313,9 +316,11 @@ void AliTOFDDLRawData::MakeDRMheader(Int_t nDDL, UInt_t *buf) // DRM global header // - Int_t iDDL = fTOFrawStream->GetDDLnumberPerSector(nDDL); + //Int_t iDDL = fTOFrawStream->GetDDLnumberPerSector(nDDL); + Int_t iDDL = AliTOFRawStream::GetDDLnumberPerSector(nDDL); - Int_t iSector = fTOFrawStream->GetSectorNumber(nDDL); + //Int_t iSector = fTOFrawStream->GetSectorNumber(nDDL); + Int_t iSector = AliTOFRawStream::GetSectorNumber(nDDL); UInt_t baseWord=0; UInt_t word; @@ -962,7 +967,8 @@ void AliTOFDDLRawData::MakeTDCdigits(Int_t nDDL, Int_t nTRM, Int_t iChain, //numberOfMeasuresPerChannel = 0; - fTOFrawStream->EquipmentId2VolumeId(nDDL, nTRM, iChain, nTDC, iCH, volume); + //fTOFrawStream->EquipmentId2VolumeId(nDDL, nTRM, iChain, nTDC, iCH, volume); + AliTOFRawStream::EquipmentId2VolumeId(nDDL, nTRM, iChain, nTDC, iCH, volume); if (volume[0]==-1 || volume[1]==-1 || volume[2]==-1 || volume[3]==-1 || volume[4]==-1) continue; diff --git a/TOF/AliTOFDDLRawData.h b/TOF/AliTOFDDLRawData.h index 50771706d2a..cf84c72b707 100644 --- a/TOF/AliTOFDDLRawData.h +++ b/TOF/AliTOFDDLRawData.h @@ -12,13 +12,13 @@ //////////////////////////////////////////////////////////////////////////// #include "TObject.h" -#include "AliTOFCableLengthMap.h" +//#include "AliTOFCableLengthMap.h" class TBranch; class TClonesArray; class AliTOFDigitMap; -class AliTOFRawStream; +//class AliTOFRawStream; class AliTOFDDLRawData:public TObject { @@ -77,11 +77,11 @@ class AliTOFDDLRawData:public TObject { TClonesArray *fTOFdigitArray; //Pointer to the TOF digits - AliTOFRawStream *fTOFrawStream; //Pointer to the AliTOFRawStream class + //AliTOFRawStream *fTOFrawStream; //Pointer to the AliTOFRawStream class - AliTOFCableLengthMap *fTOFCableLengthMap; // Pointer to the map of Amphenol cable length + //AliTOFCableLengthMap *fTOFCableLengthMap; // Pointer to the map of Amphenol cable length - ClassDef(AliTOFDDLRawData,2) + ClassDef(AliTOFDDLRawData,3) }; -- 2.39.3