////////////////////////////////////////////////////////////////////////
// $Id: AlgCutDigiPairList.h,v 1.3 2002/01/14 13:25:27 miyagawa Exp $
//
// AlgCutDigiPairList
//
// An Algorithm class that applies cuts to a CandDigiPairList based on
// ADC and TDC thresholds.
//
// Author:  P.S. Miyagawa 8/2000
////////////////////////////////////////////////////////////////////////

#ifndef ALGCUTDIGIPAIRLIST_H
#define ALGCUTDIGIPAIRLIST_H

#include "Algorithm/AlgBase.h"

class CandDigiPairHandle;

class AlgCutDigiPairList : public AlgBase
{

public:

// Constructors and destructors
  AlgCutDigiPairList();
  virtual ~AlgCutDigiPairList();

// State testing methods
  virtual void Trace(const char *c) const;

// State changing methods
  virtual void RunAlg(AlgConfig &ac, CandHandle &ch, CandContext &cx);

private:

// State testing methods
  Bool_t PassADCCut(AlgConfig &aclx, CandDigiPairHandle chh) const;
  Bool_t PassTDCCut(AlgConfig &aclx, CandDigiPairHandle chh) const;

ClassDef(AlgCutDigiPairList,1)        // CutDigiPairList Algorithm Class

};

#endif                                           // ALGCUTDIGIPAIRLIST_H
