///////////////////////////////////////////////////////////////////////
//
// Position and time fit based on charge centroid
//
// Author: name Phil G Jones
// Author: Matt Mottram -- contact person
//
// REVISION HISTORY:
// 26/04/2011 : P G Jones - New file
// 2014-03-29 : P G Jones - Updated lifetime, added BeginOfRun method
//
// The fit position is calculated as the centroid (mean) of the
// charge distribution in the detector.
//
///////////////////////////////////////////////////////////////////////
#ifndef __RAT_Method_Centroid__
#define __RAT_Method_Centroid__
#include
#include
#include
namespace RAT
{
namespace Methods
{
class Centroid : public Method
{
public:
virtual std::string GetName() const { return Centroid::Name(); }
static std::string Name() { return std::string( "centroid" ); }
void Initialise( const std::string& );
void BeginOfRun( DS::Run& ) { }
void EndOfRun( DS::Run& ) { }
virtual DS::FitResult GetBestFit();
private:
double fPower;
};
} //::Method
} //::RAT
#endif