Changeset 3362 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/29/04 17:22:31 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r3358 r3362  
    199199}
    200200
     201
     202#if 0
    201203// --------------------------------------------------------------------------
    202204//
     
    212214    // FIXME, this might be done faster and more elegant, by direct copy.
    213215    //
    214     MHCalibrationChargeCam *cam = new MHCalibrationChargeCam;
     216    MHCalibrationChargeCam *cam = (MHCalibrationChargeCam*)(this)->Clone("");
    215217//    MHCalibrationChargeCam cam;
    216     Copy(*cam);
     218//    Copy(*cam);
    217219
    218220/*
     221    cam->fHiGainArray->Delete();
     222    cam->fLoGainArray->Delete();
     223
    219224    cam->fHiGainArray->Expand(nhi);
    220225    cam->fLoGainArray->Expand(nlo);
     
    230235        (*cam->fLoGainArray)[i] = (*fLoGainArray)[i]->Clone();
    231236    }
    232 
     237*/
     238
     239/*
    233240    delete cam->fAverageHiGainInnerPix;
    234241    delete cam->fAverageLoGainInnerPix;
     
    250257    return cam;
    251258}
    252 
     259#endif
    253260// --------------------------------------------------------------------------
    254261//
     
    370377  Int_t   sumhioutersat = 0;
    371378  Int_t   sumlooutersat = 0;
     379
     380  fNumInnerPixels = fNumOuterPixels = 0;
    372381
    373382  for (int i=0; i<n; i++)
     
    412421  fAverageLoGainOuterPix->FillHistAndArray(sumlooutertot/fNumOuterPixels);
    413422
    414   fAverageHiGainInnerPix->SetSaturated(sumhiinnersat/fNumInnerPixels);
    415   fAverageLoGainInnerPix->SetSaturated(sumloinnersat/fNumInnerPixels);
    416   fAverageHiGainOuterPix->SetSaturated(sumhioutersat/fNumOuterPixels);
    417   fAverageLoGainOuterPix->SetSaturated(sumlooutersat/fNumOuterPixels);
     423  fAverageHiGainInnerPix->SetSaturated((Float_t)sumhiinnersat/fNumInnerPixels);
     424  fAverageLoGainInnerPix->SetSaturated((Float_t)sumloinnersat/fNumInnerPixels);
     425  fAverageHiGainOuterPix->SetSaturated((Float_t)sumhioutersat/fNumOuterPixels);
     426  fAverageLoGainOuterPix->SetSaturated((Float_t)sumlooutersat/fNumOuterPixels);
    418427
    419428  //
     
    428437     
    429438      const Float_t timehi = (Float_t)pixel.GetIdxMaxHiGainSample();
    430       const Float_t timelo = (Float_t)pixel.GetIdxMaxLoGainSample();
     439      const Float_t timelo = (Float_t)pixel.GetIdxMaxLoGainSample() + 15.;
    431440
    432441      (*this)[pixid].FillAbsTime(timehi);
    433       (*this)(pixid).FillAbsTime(timelo+15.);
     442      (*this)(pixid).FillAbsTime(timelo);
    434443
    435444      if (fGeom->GetPixRatio(pixel.GetPixelId()) == 1.)
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h

    r3358 r3362  
    8080  Bool_t Finalize ( );
    8181 
    82   TObject *Clone(const char *) const;
    83 
    8482  // Draw
    8583  void Draw(const Option_t *opt);
Note: See TracChangeset for help on using the changeset viewer.