Ignore:
Timestamp:
06/26/03 17:00:06 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc

    r2230 r2237  
    3939#include "MHillasCalc.h"         // MHillasCalc
    4040#include "MHillasSrcCalc.h"      // MHillasSrcCalc
     41#include "MPedestalPix.h"        // MPedestalPix
    4142#include "MPedestalCam.h"        // MPedestalCam
    42 #include "MCerPhotCalc.h"        // MCerPhotCalc
     43#include "MCerPhotEvt.h"         // MCerPhotEvt::GetPixById
     44#include "MCerPhotCalc.h"       // MCerPhotCalc
    4345#include "MMcPedestalCopy.h"     // MMcPedestalCopy
    4446#include "MMcPedestalNSBAdd.h"   // MMcPedestalNSBAdd
     
    166168
    167169    fCanvas2[0] = fCanvas;
    168     fCanvas2[1] = AddTab("Errors");
    169     fCanvas2[2] = AddTab("Phot/Err");
     170    fCanvas2[1] = AddTab("PedRMS");
     171    fCanvas2[2] = AddTab("Phot/PedRMS");
    170172    fCanvas2[3] = AddTab("Levels");
    171173    fCanvas2[4] = AddTab("Pedestals");
     
    184186    }
    185187
    186     fDisplay[0]->SetNameTitle("photons",   "Number of Photons");
    187     fDisplay[1]->SetNameTitle("errors",    "Error of Photons");
    188     fDisplay[2]->SetNameTitle("photerr",   "Number of Photons / Error");
    189     fDisplay[3]->SetNameTitle("levels",    "Cleaning Levels");
    190     fDisplay[4]->SetNameTitle("pedestals", "Pedestals");
     188    fDisplay[0]->SetNameTitle("photons",    "Number of Photons");
     189    fDisplay[1]->SetNameTitle("pedrms",     "Pedestal RMS");
     190    fDisplay[2]->SetNameTitle("photpedrms", "Number of Photons / Pedestal RMS");
     191    fDisplay[3]->SetNameTitle("levels",     "Cleaning Levels");
     192    fDisplay[4]->SetNameTitle("pedestals",  "Pedestals");
    191193
    192194    ReadFirstEvent();
     
    247249    const MPedestalCam *ped   = (MPedestalCam*)plist->FindObject("MPedestalCam");
    248250
    249     fDisplay[0]->SetCamContent((MCamEvent&)*evt, 0);
    250     fDisplay[1]->SetCamContent((MCamEvent&)*evt, 1);
    251     fDisplay[2]->SetCamContent((MCamEvent&)*evt, 2);
     251    // FIXME: Make this publicly available
     252    TArrayD val(577);
     253    TArrayC use(577);
     254    for (int i=0; i<577;i++)
     255    {
     256        // FIXME: photon event first!
     257        MCerPhotPix *pix = evt->GetPixById(i);
     258        if (!pix)
     259            continue;
     260        MPedestalPix &ppix = (*ped)[i];
     261        if (ppix.GetPedestalRms()<0)
     262            continue;
     263        val[i] = pix->GetNumPhotons()/ppix.GetPedestalRms();
     264        use[i] = 1;
     265    }
     266
     267    fDisplay[0]->SetCamContent(*evt, 0);
     268    fDisplay[1]->SetCamContent(*ped, 1);
     269    fDisplay[2]->SetCamContent(val, &use);
    252270    fDisplay[3]->FillLevels(*evt, *clean);
    253     fDisplay[4]->SetCamContent((MCamEvent&)*ped);
     271    fDisplay[4]->SetCamContent(*ped, 0);
    254272
    255273    if (fDisplayHillas)
Note: See TracChangeset for help on using the changeset viewer.