Changeset 4910


Ignore:
Timestamp:
09/09/04 18:13:09 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

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

    r4899 r4910  
    5353#include "MCalibrationIntensityRelTimeCam.h"
    5454
     55#include "MCalibrationChargeCalc.h"
     56#include "MCalibrationRelTimeCalc.h"
     57
    5558#include "MRawEvtHeader.h"
    5659
     
    6871    : fHeader(NULL), fGeom(NULL), fParList(NULL),
    6972      fIntensCharge(NULL), fIntensRelTime(NULL),
     73      fChargeCalc(NULL), fRelTimeCalc(NULL),
    7074      fPattern(0)
    7175{
     
    114118    fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam");
    115119    fIntensQE     = (MCalibrationIntensityQECam*)    pList->FindCreateObj("MCalibrationIntensityQECam");
     120    fChargeCalc   = (MCalibrationChargeCalc*)        pList->FindObject("MCalibrationChargeCalc");
    116121
    117122    if (!fIntensCharge)
     
    121126      }
    122127   
    123     if (fIntensQE)
     128    if (!fIntensQE)
    124129      {
    125130        *fLog << err << "Could not find nor create MCalibrationIntensityQECam abort... " << endl;
     131        return kFALSE;
     132      }
     133   
     134    if (!fChargeCalc)
     135      {
     136        *fLog << err << "Could not find MCalibrationChargeCalc abort... " << endl;
    126137        return kFALSE;
    127138      }
     
    134145  if (pList->FindObject(AddSerialNumber("FillRelTimeCam")))
    135146  {
     147
    136148    fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam");
     149    fRelTimeCalc   = (MCalibrationRelTimeCalc*)        pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));
     150
    137151    if (!fIntensRelTime)
    138152      {
    139153        *fLog << err << "Could not find nor create MCalibrationIntensityRelTimeCam abort... " << endl;
     154        return kFALSE;
     155      }
     156
     157    if (!fRelTimeCalc)
     158      {
     159        *fLog << err << "Could not find MCalibrationRelTimeCalc abort... " << endl;
    140160        return kFALSE;
    141161      }
     
    160180    {
    161181      fPattern = pattern;
    162       //      ReInitialize();
    163182      return kTRUE;
    164183    }
     
    167186 
    168187  //
    169   // Possible calibration histogram classes...
     188  // Finalize Possible calibration histogram classes...
    170189  //
    171190  *fLog << inf << GetDescriptor() << " : Finalize calibration histograms..." << flush;
     
    175194  if (Finalize("MHCalibrationTestTimeCam")) *fLog << "MHCalibrationChargeCam"; 
    176195
     196  //
     197  // Finalize possible calibration calculation tasks
     198  //
     199  *fLog << inf << GetDescriptor() << " : Finalize calibration calculations..." << flush;
     200  if (fChargeCalc)
     201    fChargeCalc->CallPostProcess();
     202  if (fRelTimeCalc)
     203    fRelTimeCalc->CallPostProcess();
     204
    177205  ReInitialize();
    178206
     
    197225Bool_t MCalibColorSteer::ReInitialize()
    198226{
     227
    199228  if (fIntensCharge)
    200229    {
     
    215244          << ": No MCalibrationIntensityQECam loaded, but MHCalibrationChargeCam found "
    216245          << endl;
    217 
    218 
    219246  if (fIntensRelTime)
    220247    {
  • trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.h

    r4900 r4910  
    99class MGeomCam;
    1010class MRawEvtHeader;
     11class MCalibrationChargeCalc;
     12class MCalibrationRelTimeCalc;
    1113class MCalibrationIntensityChargeCam;
    1214class MCalibrationIntensityQECam;
     
    2224    MCalibrationIntensityQECam      *fIntensQE;
    2325    MCalibrationIntensityRelTimeCam *fIntensRelTime;
    24 
     26    MCalibrationChargeCalc          *fChargeCalc;
     27    MCalibrationRelTimeCalc         *fRelTimeCalc;   
     28   
    2529    UInt_t fPattern;
    2630
Note: See TracChangeset for help on using the changeset viewer.