Changeset 3752


Ignore:
Timestamp:
04/15/04 15:24:56 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3751 r3752  
    2929   * mcalib/CalibLinkDef.h
    3030     - new class to calibrate the relative times
     31
     32   * manalysis/MGeomApply.cc
     33     - added MArrivalTime::Init()
    3134
    3235
  • trunk/MagicSoft/Mars/manalysis/MGeomApply.cc

    r3700 r3752  
    4141//   MBlindPixels
    4242//   MArrivalTimeCam
    43 //   MArrivalTimePix
     43//   MArrivalTime
    4444//
    4545//  It uses the geometry (MGeomCam) found in the parameter list.
     
    8080#include "MBlindPixels.h"
    8181#include "MArrivalTimeCam.h"
     82#include "MArrivalTime.h"
    8283#include "MBadPixelsCam.h"
    8384
     
    169170      tme->InitSize(cam->GetNumPixels());
    170171
     172    MArrivalTime    *atm = (MArrivalTime*)pList->FindObject(AddSerialNumber("MArrivalTime"));
     173    if (atm)
     174      atm->InitSize(cam->GetNumPixels());
     175
    171176    MBadPixelsCam *bad = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam"));
    172177    if (bad)
  • trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc

    r3750 r3752  
    3636//
    3737//   Output Containers:
    38 //    MCerPhotEvt
     38//    MArrivalTime
    3939//
    4040//////////////////////////////////////////////////////////////////////////////
     
    5858#include "MBadPixelsPix.h"
    5959
    60 #include "MCerPhotEvt.h"
     60#include "MArrivalTime.h"
    6161
    6262ClassImp(MCalibrateRelTimes);
     
    6969MCalibrateRelTimes::MCalibrateRelTimes(const char *name, const char *title)
    7070    : fGeomCam(NULL), fCalibrations(NULL), fBadPixels(NULL), fSignals(NULL),
    71       fCerPhotEvt(NULL)
     71      fArrivalTime(NULL)
    7272{
    7373    fName  = name  ? name  : "MCalibrateRelTimes";
     
    8686// they were not found:
    8787//
    88 //  - MCerPhotEvt
     88//  - MArrivalTime
    8989//
    9090Int_t MCalibrateRelTimes::PreProcess(MParList *pList)
     
    103103      *fLog << warn << AddSerialNumber("MBadPixelsCam") << " not found ... no action" << endl;
    104104   
     105
    105106    fCalibrations = (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam"));
    106107    if (!fCalibrations)
     
    111112
    112113
    113     fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt"));
    114     if (!fCerPhotEvt)
     114    fArrivalTime = (MArrivalTime*)pList->FindCreateObj(AddSerialNumber("MArrivalTime"));
     115    if (!fArrivalTime)
    115116      {
    116         *fLog << err << AddSerialNumber("MCerPhotEvt") << " not found ... aborting." << endl;
     117        *fLog << err << AddSerialNumber("MArrivalTime") << ": Cannot create ... aborting." << endl;
    117118        return kFALSE;
    118119      }
     
    159160
    160161      MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCalibrations)[pixidx];
    161       MBadPixelsPix          &bad = (*fBadPixels)[pixidx];
    162162     
    163163      if (fBadPixels)
    164         if (!bad.IsCalibrationResultOK())
    165           continue;
     164        {
     165          MBadPixelsPix          &bad = (*fBadPixels)[pixidx];
     166          if (!bad.IsCalibrationResultOK())
     167            continue;
     168        }
    166169     
    167170      offset     = pix.GetTimeOffset();
     
    190193      */
    191194
    192       MCerPhotPix &cpix = (*fCerPhotEvt)[pixidx];
    193       cpix.SetTime(time);
     195      fArrivalTime->SetTime(pixidx,time);
    194196
    195197    } /* for (UInt_t pixidx=0; pixidx<npix; pixidx++) */
    196198 
    197   fCerPhotEvt->SetReadyToSave();
     199  fArrivalTime->SetReadyToSave();
    198200 
    199201  return kTRUE;
  • trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.h

    r3750 r3752  
    1818class MCalibrationRelTimeCam;
    1919class MArrivalTimeCam;
    20 class MCerPhotEvt;
     20class MArrivalTime;
    2121class MCalibrateRelTimes : public MTask
    2222{
     
    2626    MBadPixelsCam          *fBadPixels;    // Bad Pixels information
    2727    MArrivalTimeCam        *fSignals;      // Extracted Arrival Time
    28     MCerPhotEvt            *fCerPhotEvt;   // Cerenkov Photon Event used for calculation
     28    MArrivalTime           *fArrivalTime;  // Calibrated arrival times
    2929
    3030    Int_t PreProcess(MParList *pList);
Note: See TracChangeset for help on using the changeset viewer.