Ignore:
Timestamp:
09/25/04 13:56:33 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc

    r4984 r5136  
    9494    : fHiGainSignal(NULL),
    9595      fHiGainFirstDeriv(NULL),
    96       fHiGainSecondDeriv(NULL)
     96      fHiGainSecondDeriv(NULL),
     97      fDataType(0)
    9798{
    9899 
     
    213214    return kFALSE;
    214215
    215  
     216  if (IsDataType(kRawEvt2))
     217    fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData2"));
     218  else
     219    fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));
     220
     221  if (!fRawEvt)
     222    {
     223      *fLog << err << "MRawEvtData2 or MRawEvtData not found... aborting." << endl;
     224      return kFALSE;
     225    }
    216226  return kTRUE;
    217227}
     
    718728// ------------------------------------------------------------------------------------
    719729//
     730// Returns true if the Data type. Available are: kAmplitude, kIntegral and kFilter
     731// The flags kIntegral and kFilter may be set both.
     732//
     733Bool_t MExtractBlindPixel::IsDataType( const DataType_t typ )
     734{
     735 
     736  return TESTBIT( fDataType, typ );
     737
     738}
     739
     740// ------------------------------------------------------------------------------------
     741//
    720742// Returns true if the extraction type. Available are: kAmplitude, kIntegral and kFilter
    721743// The flags kIntegral and kFilter may be set both.
     
    730752// --------------------------------------------------------------------------
    731753//
     754// Sets the Data type. Available are: kAmplitude and kIntegral
     755//
     756void MExtractBlindPixel::SetDataType( const DataType_t typ )
     757{
     758  SETBIT( fDataType, typ );
     759}
     760
     761// --------------------------------------------------------------------------
     762//
    732763// Sets the extraction type. Available are: kAmplitude and kIntegral
    733764//
Note: See TracChangeset for help on using the changeset viewer.