Changeset 2901


Ignore:
Timestamp:
01/24/04 01:37:33 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2900 r2901  
    55                                                 -*-*- END OF LINE -*-*-
    66
    7  2004/01/23: Abelardo Moralejo
     7 2004/01/23: Markus Gaug
    88
    99   * manalysis/MExtractSignal.[h,cc]
     10   * manalysis/MExtractedSignalPix.[h,cc]
    1011     - use MArrivalTime for Storage (or calculation) of time
     12 
    1113
    1214
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc

    r2899 r2901  
    4747#include "MExtractedSignalPix.h"
    4848
     49#include "MArrivalTime.h"
     50
    4951ClassImp(MExtractSignal);
    5052
     
    117119        *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl;
    118120        return kFALSE;
     121
    119122      }
     123
     124    fArrivalTime = (MArrivalTime*)pList->FindCreateObj(AddSerialNumber("MArrivalTime"));
    120125   
    121126    return kTRUE;
     
    142147    fSignals->InitSize(cam->GetNumPixels());   
    143148
     149    fArrivalTime->InitSize(cam->GetNumPixels());
     150
    144151    return kTRUE;
    145152}
     
    153160Int_t MExtractSignal::Process()
    154161{
     162
    155163    MRawEvtPixelIter pixel(fRawEvt);
    156164    fSignals->Clear();
     
    222230        pix.SetExtractedSignal((Float_t)sumHi - pedes*(Float_t)fNumHiGainSamples,
    223231                               pedrms*fSqrtHiGainSamples,
    224                                ((Float_t)sumLo - pedes*(Float_t)fNumLoGainSamples),
    225                                pedrms*fSqrtLoGainSamples);
     232                               (Float_t)sumLo - pedes*(Float_t)fNumLoGainSamples,
     233                               pedrms*fSqrtLoGainSamples);
    226234
    227235        pix.SetGainSaturation(satHi, satHi, satLo);
    228236
    229         // FIXME: Arrival time has to be stored in MArrivalTime!
    230         if (satHi)
    231           pix.SetArrivalTimes((Float_t)(midlo+fLoGainFirst),0.,0.);
    232         else
    233           pix.SetArrivalTimes((Float_t)(midhi+fHiGainFirst),0.,0.);
     237        if (satHi)
     238          fArrivalTime->SetTime(pixid,(Float_t)(midlo+fLoGainFirst));
     239        else
     240          fArrivalTime->SetTime(pixid,(Float_t)(midhi+fHiGainFirst));
     241
     242
    234243
    235244      } /* while (pixel.Next()) */
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.h

    r2899 r2901  
    2020class MPedestalCam;
    2121class MExtractedSignalCam;
     22class MArrivalTime;
    2223
    2324class MExtractSignal : public MTask
     
    3435    MRawRunHeader            *fRunHeader;    // RunHeader information
    3536
     37    MArrivalTime             *fArrivalTime;  // Arrival Time of FADC sample
     38 
    3639    Byte_t fHiGainFirst;
    3740    Byte_t fLoGainFirst;
Note: See TracChangeset for help on using the changeset viewer.