Changeset 5857 for trunk


Ignore:
Timestamp:
01/16/05 17:21:10 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

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

    r5856 r5857  
    6262#include "MCalibrateData.h"
    6363
    64 #include "MRawRunHeader.h"
    65 
    6664#include "MGeomCam.h"
    6765
     
    7977//
    8078MCalibCalcFromPast::MCalibCalcFromPast(const char *name, const char *title)
    81     : fRunHeader(NULL), fGeom(NULL), fParList(NULL),
     79    : fGeom(NULL), fParList(NULL),
    8280      fIntensCharge(NULL), fIntensRelTime(NULL), fIntensBad(NULL),
    8381      fChargeCalc(NULL), fRelTimeCalc(NULL), fCalibrate(NULL),
     
    9997{
    10098
    101   /*
    102   fTrigPattern = (MTriggerPattern*)pList->FindObject("MTriggerPattern");
    103   if (!fTrigPattern)
    104     {
    105       *fLog << err << "MTriggerPattern not found... abort." << endl;
    106       return kFALSE;
    107     }
    108   */
    109 
    110   fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    111   if (!fRunHeader)
    112     {
    113       *fLog << err << "MRawRunHeader not found... abort." << endl;
    114       return kFALSE;
    115     }
    116 
    11799  fGeom = (MGeomCam*)pList->FindObject("MGeomCam");
    118100  if (!fGeom)
     
    126108    {
    127109      *fLog << err << "MParList not found... abort." << endl;
    128       return kFALSE;
    129     }
    130 
    131   MTaskList *tlist = (MTaskList*)pList->FindObject("MTaskList");
    132   if (!tlist)
    133     {
    134       *fLog << err << "MTaskList not found... abort." << endl;
    135110      return kFALSE;
    136111    }
     
    146121 
    147122  //
    148   // Look for the MCalibrationIntensityBlindCam
    149   //
    150   fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindCreateObj("MCalibrationIntensityBlindCam");
    151   if (fIntensBlind)
    152     *fLog << inf << "Found MCalibrationIntensityBlindCam ... " << flush;
    153   else
    154     return kFALSE;
    155  
    156   //
    157   // Look for the MFillH name "FillChargeCam". In case yes, initialize the
     123  // Look for the MFillH-class "MHCalibrationBlindCam". In case yes, initialize the
     124  // corresponding IntensityCam
     125  //
     126  if (pList->FindObject(AddSerialNumber("MHCalibrationBlindCam")))
     127  {
     128
     129    *fLog << inf << "Found MHCalibrationBlindCam ... " << flush;
     130
     131    fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindCreateObj("MCalibrationIntensityBlindCam");
     132    if (!fIntensBlind)
     133      {
     134        *fLog << err << "Could not find nor create MCalibrationIntensitBlindCam abort... " << endl;
     135        return kFALSE;
     136      }
     137  }
     138 
     139  //
     140  // Look for the MFillH-class "MHCalibrationChargeCam". In case yes, initialize the
    158141  // corresponding IntensityCam
    159142  //
     
    165148
    166149    if (!fChargeCalc)
    167       fChargeCalc   = (MCalibrationChargeCalc*)tlist->FindObject("MCalibrationChargeCalc");
     150      fChargeCalc   = (MCalibrationChargeCalc*)pList->FindObject("MCalibrationChargeCalc");
    168151
    169152    if (!fCalibrate)
    170       fCalibrate   = (MCalibrateData*)tlist->FindObject("MCalibrateData");
     153      fCalibrate   = (MCalibrateData*)pList->FindObject("MCalibrateData");
    171154   
    172155    *fLog << inf << "Found MHCalibrationChargeCam ... " << flush;
    173     *fLog << err << fCalibrate << flush;
    174156
    175157    if (!fIntensCharge)
     
    207189    fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam");
    208190    if (!fRelTimeCalc)
    209       fRelTimeCalc   = (MCalibrationRelTimeCalc*)tlist->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));
     191      fRelTimeCalc   = (MCalibrationRelTimeCalc*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));
    210192
    211193    *fLog << inf << "Found MHCalibrationRelTimeCam ... " << flush;
     
    257239Int_t MCalibCalcFromPast::Process()
    258240{
    259 
    260   /*
    261   if (!(fTrigPattern->GetPrescaled() & MTriggerPattern::kCalibration))
    262     return kTRUE;
    263   */
    264241
    265242  if (fNumEvents++ < fNumEventsDump)
  • trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.h

    r5856 r5857  
    88class MParList;
    99class MGeomCam;
    10 class MRawRunHeader;
    1110class MPedCalcFromLoGain;
    1211class MCalibrationChargeCalc;
     
    2524  static const UInt_t fgNumEventsDump;               //! Default for fNumEventsDump
    2625 
    27   MRawRunHeader                   *fRunHeader;       //! Run Header
    2826  MGeomCam                        *fGeom;            //! Camera Geometry
    2927  MParList                        *fParList;         //! Parameter List
  • trunk/MagicSoft/Mars/mcalib/Makefile

    r5749 r5857  
    2121INCLUDES = -I. -I../mbase -I../mgui -I../mgeom -I../mhcalib -I../mhbase \
    2222           -I../manalysis -I../mraw -I../mtools -I../mmc -I../mhist  \
    23            -I../mimage -I../msignal -I../mbadpixels -I../mpedestal
     23           -I../mimage -I../msignal -I../mbadpixels -I../mpedestal \
     24           -I../mtrigger
    2425
    2526# mhbase:    MBinning MH
     
    3435           MCalibColorSet.cc \
    3536           MCalibColorSteer.cc \
     37           MCalibCalcFromPast.cc \
    3638           MCalibrateData.cc \
    3739           MCalibrateRelTimes.cc \
Note: See TracChangeset for help on using the changeset viewer.