Changeset 4277 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
06/04/04 11:50:59 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4276 r4277  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/06/04: Markus Gaug
     22
     23   * mcalib/MHGausEvents.cc
     24     - some small modifications in the way the axes are drawn and their
     25       titles are drawn.
    2026
    2127 2004/06/03: Martin Merck
  • trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc

    r3778 r4277  
    111111#include "MCalibrationPedCam.h"
    112112
     113#include "TH1.h"
     114
    113115ClassImp(MHPedestalCam);
    114116
     
    121123// - fExtractHiGainSlices to 0.
    122124// - fExtractLoGainSlices to 0.
     125// - the event frequency to 1200 Hz.
    123126//
    124127MHPedestalCam::MHPedestalCam(const char *name, const char *title)
     
    128131    fTitle = title ? title : "";
    129132
     133    SetPulserFrequency(1200);
    130134}
    131135
     
    267271                                      "Average Pedestals area idx ");
    268272
    269         InitPedHists((MHPedestalPix&)GetAverageHiGainArea(j),j,fExtractHiGainSlices);
    270 
    271273        GetAverageHiGainArea(j).GetHGausHist()->SetTitle("Pedestals average Area Idx ");
    272274        GetAverageHiGainArea(j).SetNbins(fAverageNbins);
     275
     276        InitPedHists((MHPedestalPix&)GetAverageHiGainArea(j),j,fExtractHiGainSlices);
     277
    273278      }
    274279  }
     
    284289                                      "Pedestals average Area idx ");
    285290
    286         InitPedHists((MHPedestalPix&)GetAverageLoGainArea(j),j,fExtractLoGainSlices);
    287 
    288291        GetAverageLoGainArea(j).GetHGausHist()->SetTitle("Pedestals average Area Idx ");
    289292        GetAverageLoGainArea(j).SetNbins(fAverageNbins);
     293
     294        InitPedHists((MHPedestalPix&)GetAverageLoGainArea(j),j,fExtractLoGainSlices);
     295
    290296      }
    291297  }
     
    301307                                        "Pedestals average sector ");
    302308
    303           InitPedHists((MHPedestalPix&)GetAverageHiGainSector(j),j,fExtractHiGainSlices);
    304 
    305309          GetAverageHiGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector ");
    306310          GetAverageHiGainSector(j).SetNbins(fAverageNbins);
     311
     312          InitPedHists((MHPedestalPix&)GetAverageHiGainSector(j),j,fExtractHiGainSlices);
     313
    307314      }
    308315  }
     
    318325                                        "Pedestals average sector ");
    319326
     327          GetAverageLoGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector ");
     328          GetAverageLoGainSector(j).SetNbins(fAverageNbins);
     329
    320330          InitPedHists((MHPedestalPix&)GetAverageLoGainSector(j),j,fExtractLoGainSlices);
    321331         
    322           GetAverageLoGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector ");
    323           GetAverageLoGainSector(j).SetNbins(fAverageNbins);
    324332      }
    325333  }
     
    347355  hist.SetNSlices(nslices);
    348356  hist.SetProbLimit(0.);
    349 }
    350 
    351 
    352 
     357
     358  TH1F *h = hist.GetHGausHist();
     359  h->SetTitle( Form("%s%s", h->GetTitle()," Runs: "));
     360}
    353361// -------------------------------------------------------------------------------
    354362//
  • trunk/MagicSoft/Mars/manalysis/MHPedestalPix.cc

    r3770 r4277  
    7171// Initializes:
    7272// - fNSlices to 1
     73// - fProbLimit to 0.01
    7374//
    7475MHPedestalPix::MHPedestalPix(const char *name, const char *title)
     
    8283  SetFirst( fgChargeFirst );
    8384  SetLast(  fgChargeLast  );
     85
     86  SetProbLimit(0.01);
    8487
    8588  // Create a large number of bins, later we will rebin
     
    111114  if (fNSlices <= 0)
    112115    return;
    113  
     116
    114117  const Float_t sqslices = TMath::Sqrt(fNSlices);
    115118
  • trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc

    r4247 r4277  
    157157  fHGausHist.UseCurrentStyle();
    158158  fHGausHist.SetDirectory(NULL);
     159  fHGausHist.GetYaxis()->CenterTitle();
    159160}
    160161
     
    388389                                    "Probability of Power occurrance");
    389390  fHPowerProbability->SetXTitle("P(f)");
     391  fHPowerProbability->SetYTitle("Counts");
     392  fHPowerProbability->GetYaxis()->CenterTitle();
    390393  fHPowerProbability->SetDirectory(NULL);
    391394  //
     
    433436  fGraphEvents->SetTitle("Evolution of Events with time");
    434437  fGraphEvents->GetXaxis()->SetTitle((fEventFrequency) ? "Time [s]" : "Event Nr.");
     438  fGraphEvents->GetYaxis()->SetTitle(fHGausHist.GetXaxis()->GetTitle());
     439  fGraphEvents->GetYaxis()->CenterTitle();
    435440}
    436441
     
    451456  fGraphPowerSpectrum->GetXaxis()->SetTitle((fEventFrequency) ? "Frequency [Hz]" : "Frequency");
    452457  fGraphPowerSpectrum->GetYaxis()->SetTitle("P(f)");
     458  fGraphPowerSpectrum->GetYaxis()->CenterTitle();
     459
    453460}
    454461
Note: See TracChangeset for help on using the changeset viewer.