Ignore:
Timestamp:
06/17/04 20:13:02 (20 years ago)
Author:
reyes
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r4128 r4304  
    138138#include "MExtractedSignalPix.h"
    139139
     140#include <TPad.h>
     141#include <TVirtualPad.h>
     142#include <TCanvas.h>
     143
    140144ClassImp(MHCalibrationChargeCam);
    141145
     
    794798}
    795799
     800
     801// -----------------------------------------------------------------------------
     802//
     803// Default draw:
     804//
     805// Displays the averaged areas, both High Gain and Low Gain
     806//
     807// Calls the Draw of the fAverageHiGainAreas and fAverageLoGainAreas objects with options
     808//
     809void MHCalibrationChargeCam::Draw(const Option_t *opt)
     810{
     811
     812  const Int_t nareas = fAverageHiGainAreas->GetEntries();
     813  if (nareas == 0)
     814    return;
     815
     816  TString option(opt);
     817  option.ToLower();
     818
     819  if (!option.Contains("datacheck"))
     820    {
     821      MHCalibrationCam::Draw(opt);
     822      return;
     823    }
     824
     825  TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 
     826  pad->SetBorderMode(0);
     827
     828  pad->Divide(2,nareas);
     829
     830  for (Int_t i=0; i<nareas;i++)
     831    {
     832
     833      pad->cd(2*(i+1)-1);
     834      GetAverageHiGainArea(i).Draw("datacheck");
     835      pad->cd(2*(i+1));
     836      GetAverageLoGainArea(i).Draw("datacheck");
     837    }     
     838}
Note: See TracChangeset for help on using the changeset viewer.