Changeset 5170 for trunk


Ignore:
Timestamp:
10/05/04 08:44:08 (20 years ago)
Author:
aliu
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae/library
Files:
6 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MControlPlots.cc

    r4413 r5170  
    3636#include "MControlPlots.h"
    3737#include "MIslands.h"
     38#include "MImgIsland.h"
    3839#include "MHCamera.h"
    3940#include "MGeomCamMagic.h"
     
    9394  else
    9495    fCameraHisto[fMode] = new MHCamera(*fGeomCam,"Survive","Pixels surviving Image Cleaning");
    95 
    9696  return kTRUE;
    9797}
     
    101101//
    102102Int_t MControlPlots::Process()
    103 {  
     103{
    104104  if(!fIslands) return kTRUE;
    105105
    106   for (UInt_t i=0;i<fGeomCam->GetNumPixels();i++)
     106  MImgIsland *imgIsl = new MImgIsland;
     107  TIter Next(fIslands->GetList());
     108 
     109  Int_t pixNum = 0; 
     110  Int_t idPix = -1;
     111 
     112  while ((imgIsl=(MImgIsland*)Next())) {
     113
     114    pixNum = imgIsl->GetPixNum();
     115   
     116    for(Int_t k = 0; k<pixNum; k++)
     117      {
     118        idPix = imgIsl->GetPixList(k);
     119        fCameraHisto[fMode]->Fill(idPix,1);
     120        fCameraHisto[fMode]->SetUsed(idPix);
     121      }
     122  }
     123
     124  /*  for (UInt_t i=0;i<fGeomCam->GetNumPixels();i++)
    107125    {
    108126      //      cout << fIslands->GetIslId(i) << " ";
     
    112130          fCameraHisto[fMode]->SetUsed(i);
    113131        }
    114     }
     132        }*/
     133
    115134  //  cout << endl;
    116135  return kTRUE;
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MControlPlots.h

    r4364 r5170  
    88class TString;
    99class MIslands;
     10class MImgIsland;
    1011class MGeomCam;
    1112class MHCamera;
Note: See TracChangeset for help on using the changeset viewer.