Skip to content

Commit

Permalink
Fix for side-dependence of shift
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovanleeuwen authored and dberzano committed Aug 25, 2016
1 parent d6d99e7 commit 1fccdff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 7 additions & 4 deletions ITS/ITSbase/AliITSClusterFinderV2SSD.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,14 @@ void AliITSClusterFinderV2SSD::FindClustersSSD(AliITSRawStreamSSD* input, UInt_t
Bool_t snFlag = 0;

Float_t dLorentz = 0;
Float_t dStripSide = 0;
if (side==0) { // P-side is neg clust
dLorentz = fLorentzShiftN;
dStripSide = dStrip;
}
else { // N-side is pos clust
dLorentz = fLorentzShiftP;
dStripSide = -dStrip;
}

Int_t n = nStrips[adc][side];
Expand Down Expand Up @@ -591,20 +594,20 @@ void AliITSClusterFinderV2SSD::FindClustersSSD(AliITSRawStreamSSD* input, UInt_t
}else {

Ali1Dcluster &cluster = clusters1D[side][nClusters1D[side]++];
cluster.SetY( y / q + dStrip + dLorentz);
cluster.SetY( y / q + dStripSide + dLorentz);
cluster.SetQ(q);
cluster.SetNd(nDigits);
cluster.SetLabels(lab);
//cout<<"cluster 1D side "<<side<<": y= "<<y<<" q= "<<q<<" d="<<dStrip<<" Y="<<cluster.GetY()<<endl;
//cout<<"cluster 1D side "<<side<<": y= "<<y<<" q= "<<q<<" d="<<dStripSide<<" Y="<<cluster.GetY()<<endl;
//Split suspiciously big cluster

if( repa->GetUseUnfoldingInClusterFinderSSD()
&& nDigits > 4 && nDigits < 25
){
cluster.SetY(y/q + dStrip - 0.25*nDigits + dLorentz);
cluster.SetY(y/q + dStripSide - 0.25*nDigits + dLorentz);
cluster.SetQ(0.5*q);
Ali1Dcluster& cluster2 = clusters1D[side][nClusters1D[side]++];
cluster2.SetY(y/q + dStrip + 0.25*nDigits + dLorentz);
cluster2.SetY(y/q + dStripSide + 0.25*nDigits + dLorentz);
cluster2.SetQ(0.5*q);
cluster2.SetNd(nDigits);
cluster2.SetLabels(lab);
Expand Down
7 changes: 5 additions & 2 deletions ITS/ITSbase/AliITSDDLRawData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@ void AliITSDDLRawData::GetDigitsSSD(TClonesArray *ITSdigits,Int_t mod,Int_t modR
// due to a single event upset in the FEROMS
// Apply shift here and undo it in the raw data reading.
if (ddl==3 && runno >=258391 && runno < 260025) {
ix -= 2;
if (ix < 0 || ix > 1535) // remove hits that are out of range
if (iz == 0)
ix -= 2;
else
ix += 2;
if (ix < 0 || ix > 767) // remove hits that are out of range
continue;
}

Expand Down

0 comments on commit 1fccdff

Please sign in to comment.