#ifndef GRADIENT_DETECTOR_H
#define GRADIENT_DETECTOR_H

#ifndef GRADIENT_FRAME_H
#include "Gradient_frame.h"
#endif

namespace MM
{

class Gradient_detector : public Gradient_frame
{
public:
    explicit Gradient_detector (Atom_group const & group)
        : Gradient_frame(group) { }
    double      norm ()                 {update(); return norm_;}
    double      rms  ()                 {update(); return rms_; }
};

}//MM

#endif //GRADIENT_DETECTOR_H
