]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
avoid reconstruction of unmatchable hits (trigger OR signals) for the time being
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Oct 2009 14:55:02 +0000 (14:55 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Oct 2009 14:55:02 +0000 (14:55 +0000)
TOF/AliTOFClusterFinder.cxx
TOF/AliTOFClusterFinderV1.cxx

index 2a108acbb9e3e861f8c4656a5c9c2b91d777bd2c..7d281b8ec5b43ac11bff11deef1f98866162a342 100644 (file)
@@ -294,6 +294,9 @@ void AliTOFClusterFinder::Digits2RecPoints(Int_t iEvent)
     dig[3]=d->GetPadz();
     dig[4]=d->GetPadx();
 
+    /* check valid index */
+    if (dig[0]==-1||dig[1]==-1||dig[2]==-1||dig[3]==-1||dig[4]==-1) continue;
+
     // Do not reconstruct anything in the holes
     if (dig[0]==13 || dig[0]==14 || dig[0]==15 ) { // sectors with holes
       if (dig[1]==2) { // plate with holes
@@ -388,6 +391,9 @@ void AliTOFClusterFinder::Digits2RecPoints(TTree* digitsTree, TTree* clusterTree
     dig[3]=d->GetPadz();
     dig[4]=d->GetPadx();
 
+    /* check valid index */
+    if (dig[0]==-1||dig[1]==-1||dig[2]==-1||dig[3]==-1||dig[4]==-1) continue;
+
     // Do not reconstruct anything in the holes
     if (dig[0]==13 || dig[0]==14 || dig[0]==15 ) { // sectors with holes
       if (dig[1]==2) { // plate with holes
@@ -508,6 +514,9 @@ void AliTOFClusterFinder::Digits2RecPoints(AliRawReader *rawReader,
        else              ftxt << " " << detectorIndex[4];
       }
 
+    /* check valid index */
+    if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
       // Do not reconstruct anything in the holes
       if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
        if (detectorIndex[1]==2) { // plate with holes
@@ -651,6 +660,9 @@ void AliTOFClusterFinder::Digits2RecPoints(Int_t iEvent, AliRawReader *rawReader
        else              ftxt << " " << detectorIndex[4];
       }
 
+    /* check valid index */
+    if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
       // Do not reconstruct anything in the holes
       if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
        if (detectorIndex[1]==2) { // plate with holes
index 70dda36e33925f0f8ac77cd37f512565e6d07bb6..3d9d41fa78cd79affb7f042912a4d654982afba7 100644 (file)
@@ -425,6 +425,9 @@ void AliTOFClusterFinderV1::Raw2Digits(AliRawReader *rawReader, TTree* digitsTre
       detectorIndex[3] = detectorIndex[4];//padx
       detectorIndex[4] = dummy;//padz
 
+    /* check valid index */
+    if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
       // Do not reconstruct anything in the holes
       if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
        if (detectorIndex[1]==2) { // plate with holes