Ignore:
Timestamp:
05/15/08 19:37:27 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r8582 r8891  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.41 2007-06-19 09:25:38 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.42 2008-05-15 18:37:26 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    175175//
    176176MHCalibrationPulseTimeCam::MHCalibrationPulseTimeCam(const char *name, const char *title)
    177     : fBadPixels(NULL)
     177    : fSignalCam(NULL), fBadPixels(NULL)
    178178{
    179179
     
    277277Bool_t MHCalibrationPulseTimeCam::ReInitHists(MParList *pList)
    278278{
    279 
    280   MExtractedSignalCam *signal =
    281     (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam"));
    282   if (!signal)
     279  fSignalCam = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam"));
     280  if (!fSignalCam)
    283281  {
    284282      *fLog << err << "MExtractedSignalCam not found... abort." << endl;
     
    397395            continue;
    398396
    399         // Get position of maximum (FIXME: Extraction range?)
     397        // Get position of maximum
    400398        Float_t max;
    401         const Int_t pos = evt->GetMaxPos(idx, max);
     399        const Int_t pos = evt->GetMax(idx, fSignalCam->GetFirstUsedSliceHiGain(),
     400                                      fSignalCam->GetLastUsedSliceHiGain(), max);
    402401
    403402        // check if maximum is high enough
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.h

    r8554 r8891  
    88class TH1F;
    99class MRawEvtData;
     10class MExtractedSignalCam;
    1011class MHCalibrationChargePix;
    1112
     
    3940  Float_t fOuterRefTime;                       // The reference mean arrival time outer pixels
    4041
    41   MBadPixelsCam *fBadPixels;                   //!  Bad Pixels
     42  MExtractedSignalCam *fSignalCam;             //! Signal cam for extraction range
     43  MBadPixelsCam *fBadPixels;                   //! Bad Pixels
    4244 
    4345  void   InitHiGainArrays( const Int_t npix, const Int_t nareas, const Int_t nsectors );
Note: See TracChangeset for help on using the changeset viewer.