- Timestamp:
- 02/29/04 17:22:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3358 r3362 199 199 } 200 200 201 202 #if 0 201 203 // -------------------------------------------------------------------------- 202 204 // … … 212 214 // FIXME, this might be done faster and more elegant, by direct copy. 213 215 // 214 MHCalibrationChargeCam *cam = new MHCalibrationChargeCam;216 MHCalibrationChargeCam *cam = (MHCalibrationChargeCam*)(this)->Clone(""); 215 217 // MHCalibrationChargeCam cam; 216 Copy(*cam);218 // Copy(*cam); 217 219 218 220 /* 221 cam->fHiGainArray->Delete(); 222 cam->fLoGainArray->Delete(); 223 219 224 cam->fHiGainArray->Expand(nhi); 220 225 cam->fLoGainArray->Expand(nlo); … … 230 235 (*cam->fLoGainArray)[i] = (*fLoGainArray)[i]->Clone(); 231 236 } 232 237 */ 238 239 /* 233 240 delete cam->fAverageHiGainInnerPix; 234 241 delete cam->fAverageLoGainInnerPix; … … 250 257 return cam; 251 258 } 252 259 #endif 253 260 // -------------------------------------------------------------------------- 254 261 // … … 370 377 Int_t sumhioutersat = 0; 371 378 Int_t sumlooutersat = 0; 379 380 fNumInnerPixels = fNumOuterPixels = 0; 372 381 373 382 for (int i=0; i<n; i++) … … 412 421 fAverageLoGainOuterPix->FillHistAndArray(sumlooutertot/fNumOuterPixels); 413 422 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); 418 427 419 428 // … … 428 437 429 438 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.; 431 440 432 441 (*this)[pixid].FillAbsTime(timehi); 433 (*this)(pixid).FillAbsTime(timelo +15.);442 (*this)(pixid).FillAbsTime(timelo); 434 443 435 444 if (fGeom->GetPixRatio(pixel.GetPixelId()) == 1.) -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r3358 r3362 80 80 Bool_t Finalize ( ); 81 81 82 TObject *Clone(const char *) const;83 84 82 // Draw 85 83 void Draw(const Option_t *opt);
Note:
See TracChangeset
for help on using the changeset viewer.