]> jspc29.x-matter.uni-frankfurt.de Git - mvd_soft.git/commitdiff
unpacker can handle big clusters
authorSamir Amar-Youcef <samir@ikf>
Thu, 11 Jun 2015 13:10:48 +0000 (15:10 +0200)
committerSamir Amar-Youcef <samir@ikf>
Thu, 11 Jun 2015 13:10:48 +0000 (15:10 +0200)
normalmode/analysis_gui/ANA/Mi26Ana.cpp
normalmode/unpacker/unpack.C

index 894a06e66b4303069f6b1f25295c8246d3389ae4..9d1575f7f425664b790a67e3f798f49f6b9b4d29 100644 (file)
@@ -277,7 +277,10 @@ void Mi26Ana::pixeloccH3() {
                        
                        for(UInt_t j=0; j<fClusters; j++)
                        {
+                               if( fPixelsPerCluster[j]>1 )
+                               {
                                        plot[sensor]->Fill(fColumn_cg[j], fRow_cg[j]);
+                               }
                        }
                }
                
index 936c74dcbdfe063d686d46b749f018920e6935ff..f132201113af5ec65c12e5d81686b11b77f85b31 100755 (executable)
@@ -992,7 +992,14 @@ void unpacker::getClusters( UInt_t NrSensors, frameInfo*& FrameInfo, TTree** Fra
                                code = code*16+dX;
                        }
                        else
+                       {
+                               for(UInt_t mm=0;mm<numActivePixels;mm++)
+                               {
+                                       sumX = sumX + xVector[mm];
+                                       sumY = sumY + yVector[mm];
+                               }
                                code = 0;
+                       }
                        FrameInfo[i].column_cg[num1] = (Float_t)sumX/numActivePixels;
                        FrameInfo[i].row_cg[num1] = (Float_t)sumY/numActivePixels;
                        FrameInfo[i].statesPerCluster[num1] = (clusterSize-1);