Ignore:
Timestamp:
04/11/05 18:10:00 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6254 r6926  
    218218// - Sets the latest MCalibrationChargeCam as update class into MCalibrateData
    219219// - Initialize new MCalibration*Cams into the intensity cams.
    220 // 
     220//
    221221Int_t MCalibCalcFromPast::Process()
    222222{
     
    229229  // Finalize Possible calibration histogram classes...
    230230  //
    231   *fLog << inf << GetDescriptor() << " : Finalize calibration histograms..." << endl;
    232   if (Finalize("MHCalibrationChargeCam"))      *fLog << "MHCalibrationChargeCam ready" << flush;
    233   if (Finalize("MHCalibrationChargeBlindCam")) *fLog << "MHCalibrationChargeBlindCam ready" << flush;
    234   if (Finalize("MHCalibrationRelTimeCam"))     *fLog << "MHCalibrationRelTimeCam ready" << flush; 
     231  *fLog << inf << GetDescriptor() << ": Finalize calibration histograms: " << flush;
     232
     233  if (Finalize("MHCalibrationChargeCam"))      *fLog << "MHCalibrationChargeCam..." << flush;
     234  if (Finalize("MHCalibrationChargeBlindCam")) *fLog << "MHCalibrationChargeBlindCam..." << flush;
     235  if (Finalize("MHCalibrationRelTimeCam"))     *fLog << "MHCalibrationRelTimeCam..." << flush;
    235236
    236237  //
     
    238239  //
    239240  *fLog << endl;
    240   *fLog << inf << GetDescriptor() << " : Finalize calibration calculations..." << endl;
     241  *fLog << inf << "Finalize calibration calculations..." << endl;
    241242  if (fChargeCalc)
    242243    fChargeCalc->Finalize();
     
    247248
    248249  ReInitialize();
    249 
    250250  return kTRUE;
    251251}
     
    281281Bool_t MCalibCalcFromPast::ReInitialize()
    282282{
     283  fNumCam++;
     284
     285  *fLog << inf << "MCalibCalcFromPast::ReInitialize #" << fNumCam << " ";
     286
     287  if (fIntensBad)
     288    {
     289      fIntensBad->AddToList(Form("MBadPixelsCam%04d",fNumCam),*fGeom);
     290      *fLog << "MBadPixelsCam...";
     291    }
     292
     293  if (fIntensCharge)
     294    {
     295      fIntensCharge->AddToList(Form("MCalibrationChargeCam%04d",fNumCam),*fGeom);
     296      *fLog << "MCalibrationChargeCam...";
     297    }
     298  if (fIntensQE)
     299    {
     300      fIntensQE->AddToList(Form("MCalibrationQECam%04d",fNumCam),*fGeom);
     301      *fLog << "MCalibrationQECam...";
     302    }
     303  if (fIntensBlind)
     304    {
     305      fIntensBlind->AddToList(Form("MCalibrationBlindCam%04d",fNumCam),*fGeom);
     306      *fLog << "MCalibrationBlindCam...";
     307    }
    283308
    284309  *fLog << endl;
    285  
    286   fNumCam++;
    287 
    288   if (fIntensBad)
    289     {
    290       fIntensBad->AddToList(Form("MBadPixelsCam%04d",fNumCam),*fGeom);
    291       *fLog << inf << "New MBadPixelsCam Nr. " << fNumCam << endl;
    292     }
    293 
    294   if (fIntensCharge)
    295     {
    296       fIntensCharge->AddToList(Form("MCalibrationChargeCam%04d",fNumCam),*fGeom);
    297       *fLog << inf << "New MCalibrationChargeCam Nr.  " << fNumCam << endl;
    298     }
    299   if (fIntensQE)
    300     {
    301       fIntensQE->AddToList(Form("MCalibrationQECam%04d",fNumCam),*fGeom);
    302       *fLog << inf << "New MCalibrationQECam Nr.  " << fNumCam << endl;
    303     }
    304   if (fIntensBlind)
    305     {
    306       fIntensBlind->AddToList(Form("MCalibrationBlindCam%04d",fNumCam),*fGeom);
    307       *fLog << inf << "New MCalibrationBlindCam Nr. " << fNumCam << endl;
    308     }
    309310
    310311  return kTRUE;
     
    314315Int_t MCalibCalcFromPast::PostProcess()
    315316{
    316   *fLog << inf << GetDescriptor()
    317         << ": Number of Calibration Cams: " << fNumCam << endl;
     317  *fLog << "Number of Calibration Cams: " << fNumCam << endl;
    318318  return kTRUE;
    319319 
Note: See TracChangeset for help on using the changeset viewer.