Ignore:
Timestamp:
07/13/05 19:06:26 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedestalCam.cc

    r5558 r7188  
    276276}
    277277
     278void MPedestalCam::PrintArr(const TCollection &list) const
     279{
     280    Int_t id = 0;
     281
     282    TIter Next(&list);
     283    MPedestalPix *pix = 0;
     284
     285    while ((pix=(MPedestalPix*)Next()))
     286        *fLog << Form("Nr.: %4i  Pedestal: %5.2f    RMS: %5.2f    ABOffset: %5.2f ",
     287                      id++, pix->GetPedestal(), pix->GetPedestalRms(), pix->GetPedestalABoffset()) << endl;
     288}
     289
    278290void MPedestalCam::Print(Option_t *o) const
    279291{
    280292    *fLog << all << GetDescriptor() << ":" << endl;
    281     int id = 0;
    282 
    283     TIter Next(fArray);
    284     MPedestalPix *pix;
    285     while ((pix=(MPedestalPix*)Next()))
    286     {
    287         id++;
    288 
    289         if (!pix->IsValid())
    290             continue;
    291 
    292         *fLog << id-1 << ": ";
    293         *fLog << pix->GetPedestal() << " " << pix->GetPedestalRms() << endl;
    294     }
     293    *fLog << "Pixels:" << endl;   
     294    *fLog << endl;
     295
     296    PrintArr(*fArray);
     297
     298    *fLog << endl;
     299    *fLog << "Event-by-event averaged areas:" << endl;   
     300    *fLog << endl;
     301
     302    PrintArr(*fAverageAreas);
     303
     304    *fLog << endl;
     305    *fLog << "Event-by-event averaged sectors:" << endl;
     306    *fLog << endl;
     307
     308    PrintArr(*fAverageSectors);
    295309}
    296310
Note: See TracChangeset for help on using the changeset viewer.