Changeset 3904 for trunk/MagicSoft


Ignore:
Timestamp:
04/30/04 13:21:40 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3903 r3904  
    2121 
    2222   * mcalib/MHCalibrationCam.[h,cc]
    23    * mcalib/MHCalibrationRelTimeCam.[h,cc]
    24    * mcalib/MHCalibrationChargeCam.[h,cc]
    2523     - retrieve the used run numbers in order to store them in teh
    2624       histogram titles to help transparency of the displays
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.cc

    r3903 r3904  
    498498    fRunNumbers[fRunNumbers.GetSize()-1] = fRunHeader->GetRunNumber();
    499499
    500   return ReInitHists(pList);
    501 }
     500  if (!ReInitHists(pList))
     501    return kFALSE;
     502
     503  if (!fRunHeader)
     504    return kTRUE;
     505 
     506  for (Int_t i=0; i<fHiGainArray->GetEntries(); i++)
     507    {
     508      TH1F *h = (*this)[i].GetHGausHist();
     509      h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
     510    }
     511
     512  for (Int_t i=0; i<fLoGainArray->GetEntries(); i++)
     513    {
     514      TH1F *h = (*this)(i).GetHGausHist();
     515      h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
     516    }
     517 
     518  for (Int_t j=0; j<nareas; j++)
     519    {
     520      TH1F *h = GetAverageHiGainArea(j).GetHGausHist();
     521      h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
     522    }
     523 
     524  for (Int_t j=0; j<nareas; j++)
     525    {
     526      TH1F *h = GetAverageLoGainArea(j).GetHGausHist();
     527      h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
     528    }
     529 
     530  for (Int_t j=0; j<nsectors; j++)
     531    {
     532      TH1F *h = GetAverageHiGainSector(j).GetHGausHist();
     533      h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
     534    }
     535 
     536  for (Int_t j=0; j<nsectors; j++)
     537    {
     538      TH1F *h = GetAverageLoGainSector(j).GetHGausHist();
     539      h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
     540    }
     541
     542  return kTRUE;
     543}
     544
    502545
    503546
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc

    r3903 r3904  
    194194  }
    195195 
    196   if (fRunHeader)
    197     for (Int_t i=0; i<npixels; i++)
    198       {
    199         TH1F *h = (*this)[i].GetHGausHist();
    200           h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
    201       }
    202196 
    203197  if (fLoGainArray->GetEntries()==0)
     
    212206  }
    213207
    214   if (fRunHeader)
    215     for (Int_t i=0; i<npixels; i++)
    216       {
    217         TH1F *h = (*this)(i).GetHGausHist();
    218         h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
    219       }
    220208
    221209  if (fAverageHiGainAreas->GetEntries()==0)
     
    236224  }
    237225
    238   if (fRunHeader)
    239     for (Int_t j=0; j<nareas; j++)
    240       {
    241         TH1F *h = GetAverageHiGainArea(j).GetHGausHist();
    242         h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
    243       }
    244  
    245226  if (fAverageLoGainAreas->GetEntries()==0)
    246227  {
     
    259240      }
    260241  }
    261  
    262   if (fRunHeader)
    263     for (Int_t j=0; j<nareas; j++)
    264         {
    265           TH1F *h = GetAverageLoGainArea(j).GetHGausHist();
    266           h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
    267         }
    268242 
    269243  if (fAverageHiGainSectors->GetEntries()==0)
     
    284258  }
    285259 
    286   if (fRunHeader)
    287     for (Int_t j=0; j<nsectors; j++)
    288       {
    289         TH1F *h = GetAverageHiGainSector(j).GetHGausHist();
    290         h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
    291       }
    292 
    293260  if (fAverageLoGainSectors->GetEntries()==0)
    294261    {
     
    309276    }
    310277
    311   if (fRunHeader)
    312     for (Int_t j=0; j<nsectors; j++)
    313       {
    314         TH1F *h = GetAverageLoGainSector(j).GetHGausHist();
    315         h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));
    316       }
    317  
    318278  return kTRUE;
    319279}
Note: See TracChangeset for help on using the changeset viewer.