X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPCseed.cxx;h=b52f020b4302f3b21d4caf830f6a7917e9165421;hb=eb02f63acfc5937b8216f9569b7a7b2bd192ceac;hp=77b7b39fa9ae59c9bb541c188479657120459584;hpb=6c23ffeda23cbfdabd4e870e0591de923b08a9a0;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPCseed.cxx b/TPC/AliTPCseed.cxx index 77b7b39fa9a..b52f020b430 100644 --- a/TPC/AliTPCseed.cxx +++ b/TPC/AliTPCseed.cxx @@ -68,8 +68,11 @@ AliTPCseed::AliTPCseed(): fNCDEDX[i] = 0; } for (Int_t i=0;i<12;i++) fOverlapLabels[i] = -1; - for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE; - for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE; + // for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE; + //for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE; + fClusterMap.ResetAllBits(kFALSE); + fSharedMap.ResetAllBits(kFALSE); + } AliTPCseed::AliTPCseed(const AliTPCseed &s, Bool_t clusterOwner): @@ -174,8 +177,12 @@ AliTPCseed::AliTPCseed(const AliTPCtrack &t): fNCDEDX[i] = 0; } for (Int_t i=0;i<12;i++) fOverlapLabels[i] = -1; - for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE; - for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE; + + //for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE; + //for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE; + fClusterMap.ResetAllBits(kFALSE); + fSharedMap.ResetAllBits(kFALSE); + } AliTPCseed::AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5], @@ -235,16 +242,54 @@ AliTPCseed::~AliTPCseed(){ delete fClusterPointer[icluster]; } } - for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE; - for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE; + } //_________________________________________________ -AliTPCseed & AliTPCseed::operator =(const AliTPCseed & param) +AliTPCseed & AliTPCseed::operator=(const AliTPCseed ¶m) { // - // assignment operator - dummy + // assignment operator // - fRow=param.fRow; + if(this!=¶m){ + AliTPCtrack::operator=(param); + fEsd =param.fEsd; + for(Int_t i = 0;i<160;++i)fClusterPointer[i] = param.fClusterPointer[i]; // this is not allocated by AliTPCSeed + fClusterOwner = param.fClusterOwner; + // leave out fPoint, they are also not copied in the copy ctor... + // but deleted in the dtor... strange... + // fPoints = + // fEPoints = + fRow = param.fRow; + fSector = param.fSector; + fRelativeSector = param.fRelativeSector; + fCurrentSigmaY2 = param.fCurrentSigmaY2; + fCurrentSigmaZ2 = param.fCurrentSigmaZ2; + fErrorY2 = param.fErrorY2; + fErrorZ2 = param.fErrorZ2; + fCurrentCluster = param.fCurrentCluster; // this is not allocated by AliTPCSeed + fCurrentClusterIndex1 = param.fCurrentClusterIndex1; + fInDead = param.fInDead; + fIsSeeding = param.fIsSeeding; + fNoCluster = param.fNoCluster; + fSort = param.fSort; + fBSigned = param.fBSigned; + for(Int_t i = 0;i<4;++i){ + fDEDX[i] = param.fDEDX[i]; + fSDEDX[i] = param.fSDEDX[i]; + fNCDEDX[i] = param.fNCDEDX[i]; + } + for(Int_t i = 0;iGetSigmaY()); + Float_t rsigmaz = TMath::Sqrt(point->GetSigmaZ()); + Float_t rsigma = (rsigmay+rsigmaz)*0.5; + if (type==0) means+=rsigma; + if (type==1) means+=rsigmay; + if (type==2) means+=rsigmaz; + meanc++; + } + Float_t mean = (meanc>0)? means/meanc:0; + return mean; +}