/**
 * \class BDHornCurrent
 *
 * \ingroup BeamDataUtil
 *
 * \brief A BDScalar to watch the horn current.
 *
 * 
 *
 * \author (last to touch it) $Author: bv $
 *
 * \version $Revision: 1.2 $
 *
 * \date $Date: 2005/04/15 14:09:58 $
 *
 * Contact: bv@bnl.gov
 *
 * Created on: Fri Apr 15 09:57:05 2005
 *
 * $Id: BDHornCurrent.h,v 1.2 2005/04/15 14:09:58 bv Exp $
 *
 */


#ifndef BDHORNCURRENT_H
#define BDHORNCURRENT_H

#include <BeamDataUtil/BDScalar.h>

#include <Util/UtilRunningAverage.h>

class BDHornCurrent : public BDScalar {
public:
    BDHornCurrent(float max_dev = 5.0, int nspills=10);

private:
    double GetScalar(const RawBeamMonHeaderBlock& rbmhb,
		     const RawBeamMonBlock& rbmb);

};

#endif  // BDHORNCURRENT_H
