Changeset 249 in Idarraga


Ignore:
Timestamp:
Nov 1, 2011, 11:38:14 PM (13 years ago)
Author:
idarraga
Message:
 
Location:
mafalda/ShallowAngleFEIX
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mafalda/ShallowAngleFEIX/ShallowAngleFEIX.cpp

    r240 r249  
    3939        getMyTree()->Branch("totPerSegment", &m_totPerSegment);
    4040        getMyTree()->Branch("chargeWeights", &m_chargeWeights);
     41        getMyTree()->Branch("frameId", &m_frameId , "frameId/I");
    4142
    4243        getMyTree()->Branch("segmentedTrack", &m_segmentedTrack, "segmentedTrack/I");
     
    7879        for( ; blobsItr != blobsVector.end() ; blobsItr++)
    7980        {
     81
     82                // frame Id
     83                m_frameId = GetFrameId();
    8084
    8185                // Limit all this to clusters with a minimum size.
     
    147151                        m_mipThetaAngle = (*blobsItr).GetBlobProperties().rotAngle;
    148152
    149                         // check discontinuities if any
     153                        // Check discontinuities if any
    150154                        // For this I will run the clustering again with discontinuity tolerance = 0;
    151155                        int nInnerClusters = CheckDiscontinuity(*blobsItr, 0);
     
    355359int ShallowAngleFEIX::CheckDiscontinuity(blob bl, int discontinuityTolerance){
    356360
    357         // new object containing all the blobs, ready to go to StoreGate when's ready
     361        // New object containing all the blobs
    358362        AllBlobsContainer * reclusteringContainer = new AllBlobsContainer((MediPixAlgo *) this);
    359363        Log << MSG::INFO << "Reclustering container --> " << reclusteringContainer << endreq;
     
    364368        Log << MSG::INFO << "Reclustering ... found " << reclusteringContainer->GetBlobsVector().size() << " clusters in the blob" << endreq;
    365369
    366         return reclusteringContainer->GetBlobsVector().size();
     370        int nSubClusters = reclusteringContainer->GetBlobsVector().size();
     371        delete reclusteringContainer;
     372
     373        return nSubClusters;
    367374}
    368375
  • mafalda/ShallowAngleFEIX/ShallowAngleFEIX.h

    r240 r249  
    5454        Double_t m_mipThetaAngle;
    5555        Int_t m_segmentedTrack;
     56        Int_t m_frameId;
    5657
    5758        // Container for reclustering if needed
Note: See TracChangeset for help on using the changeset viewer.