Changeset 4941


Ignore:
Timestamp:
09/10/04 21:09:46 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestCam.cc

    r4939 r4941  
    175175      for (Int_t i=0; i<npixels; i++)
    176176      {
    177           (*fHiGainArray)[i] = new MHCalibrationPix("Calibrated Events",
     177          (*fHiGainArray)[i] = new MHCalibrationPix("TestPix",
    178178                                                "Test Calibration Pixel");
    179179
     
    186186          TH1F *h =  pix.GetHGausHist();
    187187       
    188           h->SetName ("HTestHiGainPix");
    189           h->SetTitle("Distribution of calibrated Photons Pixel "); 
     188          h->SetName ("HTestPix");
     189          h->SetTitle("Calibrated Calibration Signals Pixel "); 
    190190          h->SetXTitle("Nr. Photons");
    191191          h->SetYTitle("Nr. of events");
     
    203203      {
    204204        (*fAverageHiGainAreas)[j] =
    205           new MHCalibrationPix("MHCalibrationTestAverageArea",
     205          new MHCalibrationPix("TestArea",
    206206                           "Average Test Calibrations Area Idx ");
    207207
    208208        MHCalibrationPix &pix = GetAverageHiGainArea(j);
     209
     210        pix.SetNbins(fTestNbins*3);
     211        pix.SetFirst(fTestFirst);
     212        pix.SetLast (fTestLast);
     213       
     214        pix.InitBins();
     215        pix.SetEventFrequency(fPulserFrequency);
     216           
     217        TH1F *h =  pix.GetHGausHist();
     218
     219        h->SetName ("HTestArea");
     220        h->SetTitle("Calibrated Calibration Signals Area Idx ");
     221        h->SetXTitle("Nr. Photons");
     222        h->SetYTitle("Nr. of events");
     223
     224        if (fGeom->InheritsFrom("MGeomCamMagic"))
     225          h->SetTitle(Form("%s%s%s","Calibrated Calibration Signals averaged on event-by-event basis ",
     226                           j==0 ? "Inner Pixels " : "Outer Pixels Runs: "));
     227        else
     228          {
     229            pix.ChangeHistId(j);
     230            h->SetTitle( Form("%s%s", h->GetTitle()," Runs: "));
     231          }
     232      }
     233  }
     234
     235  if (fAverageHiGainSectors->GetEntries()==0)
     236  {
     237      fAverageHiGainSectors->Expand(nsectors);
     238
     239      for (Int_t j=0; j<nsectors; j++)
     240      {
     241          (*fAverageHiGainSectors)[j] =
     242            new MHCalibrationPix("TestSector",
     243                                 "Average Test Calibrations Sector ");
     244
     245        MHCalibrationPix &pix = GetAverageHiGainSector(j);
    209246
    210247        pix.SetNbins(fTestNbins*3);
     
    214251        TH1F *h =  pix.GetHGausHist();
    215252
    216         h->SetName ("HTestPix");
    217         h->SetTitle("Test Calibrations Area Idx ");
    218         h->SetXTitle("Nr. Photons");
    219         h->SetYTitle("Nr. of events");
    220 
    221         pix.InitBins();
    222         pix.ChangeHistId(j);
    223         pix.SetEventFrequency(fPulserFrequency);
    224 
    225         h->SetTitle( Form("%s%s", h->GetTitle()," Runs: "));
    226       }
    227   }
    228 
    229 
    230   if (fAverageHiGainSectors->GetEntries()==0)
    231   {
    232       fAverageHiGainSectors->Expand(nsectors);
    233 
    234       for (Int_t j=0; j<nsectors; j++)
    235       {
    236           (*fAverageHiGainSectors)[j] =
    237             new MHCalibrationPix("MHCalibrationTestAverageSector",
    238                                  "Average Test Calibrations Sector ");
    239 
    240         MHCalibrationPix &pix = GetAverageHiGainSector(j);
    241 
    242         pix.SetNbins(fTestNbins*3);
    243         pix.SetFirst(fTestFirst);
    244         pix.SetLast (fTestLast);
    245        
    246         TH1F *h =  pix.GetHGausHist();
    247 
    248         h->SetName ("HTestPix");
    249         h->SetTitle("Test Calibrations Sector ");
     253        h->SetName ("HTestSector");
     254        h->SetTitle("Calibrated Calibration Signals Sector ");
    250255        h->SetXTitle("Nr. Photons");
    251256        h->SetYTitle("Nr. of events");
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestTimeCam.cc

    r4940 r4941  
    8383/////////////////////////////////////////////////////////////////////////////
    8484#include "MHCalibrationTestTimeCam.h"
    85 #include "MHCalibrationTestTimePix.h"
    8685
    8786#include "MHCalibrationPix.h"
     
    211210        pix.SetLast (fTestLast);
    212211       
     212        pix.InitBins();
     213        pix.SetEventFrequency(fPulserFrequency);
     214           
    213215        TH1F *h =  pix.GetHGausHist();
    214216
     
    218220        h->SetYTitle("Nr. of events");
    219221
    220         pix.InitBins();
    221         pix.ChangeHistId(j);
    222         pix.SetEventFrequency(fPulserFrequency);
    223 
    224         h->SetTitle( Form("%s%s", h->GetTitle()," Runs: "));
     222        if (fGeom->InheritsFrom("MGeomCamMagic"))
     223          h->SetTitle(Form("%s%s%s","Calibrated Rel. Times averaged on event-by-event basis ",
     224                           j==0 ? "Inner Pixels " : "Outer Pixels Runs: "));
     225        else
     226          {
     227            pix.ChangeHistId(j);
     228            h->SetTitle( Form("%s%s", h->GetTitle()," Runs: "));
     229          }
    225230      }
    226231  }
Note: See TracChangeset for help on using the changeset viewer.