X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FTPCLib%2FAliHLTTPCConfMapper.cxx;h=5d56c20651c701cd7a9681b6a95ad7630da7c960;hb=fdd3cdda1d23f26da77d5b3f117708c19543c759;hp=6f53c360b228efa054a5382c1b7ea83cdd8671cb;hpb=0ba35c533a3f42462b34c57d590e82a74efe01ec;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/TPCLib/AliHLTTPCConfMapper.cxx b/HLT/TPCLib/AliHLTTPCConfMapper.cxx index 6f53c360b22..5d56c20651c 100644 --- a/HLT/TPCLib/AliHLTTPCConfMapper.cxx +++ b/HLT/TPCLib/AliHLTTPCConfMapper.cxx @@ -75,12 +75,21 @@ AliHLTTPCConfMapper::AliHLTTPCConfMapper() fMaxPhi(0.0), fMaxEta(0.0), fMainVertexTracks(0), - fClustersUnused(0) - + fClustersUnused(0), + fClusterCutZ(-1) { //Default constructor - fParamSet[0]=0; - fParamSet[1]=0; + memset(fParamSet, 0, sizeof(fParamSet)); + memset(fTrackletLength, 0, sizeof(fTrackletLength)); + memset(fRowScopeTracklet, 0, sizeof(fRowScopeTracklet)); + memset(fRowScopeTrack, 0, sizeof(fRowScopeTrack)); + memset(fMinPoints, 0, sizeof(fMinPoints)); + + memset(fMaxAngleTracklet, 0, sizeof(fMaxAngleTracklet)); + memset(fMaxDist, 0, sizeof(fMaxDist)); + memset(fHitChi2Cut, 0, sizeof(fHitChi2Cut)); + memset(fGoodHitChi2, 0, sizeof(fGoodHitChi2)); + memset(fTrackChi2Cut, 0, sizeof(fTrackChi2Cut)); } AliHLTTPCConfMapper::~AliHLTTPCConfMapper() @@ -172,16 +181,52 @@ void AliHLTTPCConfMapper::InitSector(Int_t sector,Int_t *rowrange,Float_t *etara } Bool_t AliHLTTPCConfMapper::ReadHits(UInt_t count, AliHLTTPCSpacePointData* hits ) +{ + //read hits with ReadHitsChecked + return ReadHitsChecked(count,hits,0); +} + +Bool_t AliHLTTPCConfMapper::ReadHitsChecked(UInt_t count, AliHLTTPCSpacePointData* hits, unsigned int sizeInByte ) { //read hits - if (fHit.size()=fClustersUnused+count); - for (Int_t i=0;(UInt_t)i=fClustersUnused+count); + for (Int_t i=0;(UInt_t)i0 && ((AliHLTUInt8_t*)hit)+sizeof(AliHLTTPCSpacePointData)>((AliHLTUInt8_t*)hits)+sizeInByte) { + LOG(AliHLTTPCLog::kWarning,"AliHLTTPCConfMapper::ReadHits","")<<"Wrong size of data (" << sizeInByte << " byte), skipping array of AliHLTTPCSpacePointData" <=fClustersUnused+count); + for (Int_t i=0;(UInt_t)i0 && ((AliHLTUInt8_t*)hit)+sizeof(AliHLTTPCSpacePointData)>((AliHLTUInt8_t*)hits)+sizeInByte) { + LOG(AliHLTTPCLog::kWarning,"AliHLTTPCConfMapper::ReadHits","")<<"Wrong size of data (" << sizeInByte << " byte), skipping array of AliHLTTPCSpacePointData" < fClusterCutZ || hits[i].fZ < -1*fClusterCutZ){ + ++skipped; + continue; + } + fHit[i+fClustersUnused-skipped].Reset(); + fHit[i+fClustersUnused-skipped].Read(hits[i]); + } + fClustersUnused += count - skipped; + fHit.resize(fClustersUnused); + } LOG(AliHLTTPCLog::kDebug,"AliHLTTPCConfMapper::ReadHits","#hits") <0 && localcounter==0) - LOG(AliHLTTPCLog::kError,"AliHLTTPCConfMapper::SetPointers","Parameters") + LOG(AliHLTTPCLog::kDebug,"AliHLTTPCConfMapper::SetPointers","Parameters") <