Changeset 4976


Ignore:
Timestamp:
09/13/04 13:31:45 (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/MHCalibrationCam.cc

    r4974 r4976  
    4242//
    4343// The following flag can be set:
    44 // - SetAverageging() for calculating the event-by-event averages.
    45 // - SetDebug()       for debug output.
    46 // - SetLoGain()      for the case that low-gain slices are available, but
    47 //                        MRawRunHeader::GetNumLoGainSlices() gives still 0.
    48 //
    49 // The flag fLoGain steers if low-gain signal is treated at all or not.
     44// - SetAverageing() for calculating the event-by-event averages.
     45// - SetDebug()      for debug output.
     46// - SetLoGain()     for the case that low-gain slices are available, but
     47//                       MRawRunHeader::GetNumLoGainSlices() gives still 0.
     48// - SetCheckSize()  for testing the sizes of the f*Arrays in ReInit() if they
     49//                       are coinciding with the equiv. sizes in MGeomCam
     50//
     51// The flag kLoGain steers if the low-gain signal is treated at all or not.
     52// The flag kAverageing steers if the event-by-event averages are treated at all.
    5053//
    5154/////////////////////////////////////////////////////////////////////////////
     
    351354  cam->fPulserFrequency        = fPulserFrequency;
    352355  cam->fFlags                  = fFlags;
     356  cam->fNbins                  = fNbins;
     357  cam->fFirst                  = fFirst;
     358  cam->fLast                   = fLast;
    353359
    354360  if (!IsAverageing())
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r4965 r4976  
    13031303
    13041304  const Int_t navhi = fAverageHiGainAreas->GetEntries();
    1305   const Int_t navlo = fAverageLoGainAreas->GetEntries();
    13061305  //  const Int_t nsehi = fAverageHiGainSectors->GetEntries();
    13071306  //  const Int_t nselo = fAverageLoGainSectors->GetEntries();
     
    13121311  MHCalibrationChargeCam *cam = new MHCalibrationChargeCam();
    13131312
     1313  cam->fColor                  = fColor;
     1314  cam->fPulserFrequency        = fPulserFrequency;
     1315  cam->fFlags                  = fFlags;
     1316  cam->fRunNumbers             = fRunNumbers;
     1317  cam->fNbins                  = fNbins;
     1318  cam->fFirst                  = fFirst;
     1319  cam->fLast                   = fLast;
     1320
     1321  if (!IsAverageing())
     1322    return cam;
     1323
    13141324  cam->fAverageHiGainAreas->Expand(navhi);
    1315   //  cam->fAverageHiGainSectors->Expand(nsehi);
    13161325
    13171326  for (int i=0; i<navhi; i++)
    13181327    (*cam->fAverageHiGainAreas)  [i] = (*fAverageHiGainAreas)  [i]->Clone();
     1328  //  cam->fAverageHiGainSectors->Expand(nsehi);
    13191329  //  for (int i=0; i<nsehi; i++)
    13201330  //    (*cam->fAverageHiGainSectors)[i] = (*fAverageHiGainSectors)[i]->Clone();
     
    13221332  if (IsLoGain())
    13231333    {
     1334      const Int_t navlo = fAverageLoGainAreas->GetEntries();
    13241335      cam->fAverageLoGainAreas->Expand(navlo);
    1325       //      cam->fAverageLoGainSectors->Expand(nselo);
    13261336     
    13271337      for (int i=0; i<navlo; i++)
    13281338        (*cam->fAverageLoGainAreas)  [i] = (*fAverageLoGainAreas)  [i]->Clone();
     1339      //      cam->fAverageLoGainSectors->Expand(nselo);
    13291340      //      for (int i=0; i<nselo; i++)
    13301341      //        (*cam->fAverageLoGainSectors)[i] = (*fAverageLoGainSectors)[i]->Clone();
     
    13381349  cam->fAverageAreaRelSigmaVar = fAverageAreaRelSigmaVar;   
    13391350  cam->fAverageSectorNum       = fAverageSectorNum;     
    1340   cam->fRunNumbers             = fRunNumbers;
    1341 
    1342   cam->fColor                  = fColor;
    1343   cam->fPulserFrequency        = fPulserFrequency;
    1344   cam->fFlags                  = fFlags;
    13451351
    13461352  return cam;
Note: See TracChangeset for help on using the changeset viewer.