Ignore:
Timestamp:
06/17/04 20:13:02 (21 years ago)
Author:
reyes
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 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}
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h

    r4128 r4304  
    4949  void   DrawPixelContent( Int_t num )  const;   
    5050
     51  // Draw
     52  void   Draw(const Option_t *opt);
     53
    5154  ClassDef(MHCalibrationChargeCam, 1)   // Histogram class for Charge Camera Calibration
    5255};
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc

    r4249 r4304  
    263263      pad->cd(1);
    264264  }
    265   else
     265  else if (option.Contains("datacheck"))
     266    {
     267      MHGausEvents::Draw("events");
     268      return;
     269    }
     270  else
    266271  {
    267272      pad = oldpad;
     
    269274      pad->cd(1);
    270275  }
    271 
     276  /*
     277  else
     278    {
     279      option.ReplaceAll("time","");
     280      pad = oldpad;
     281      pad->Divide(1,2);
     282      pad->cd(1);
     283    }
     284  */
    272285  if (!IsEmpty())
    273286      gPad->SetLogy();
Note: See TracChangeset for help on using the changeset viewer.