//////////////////////////////////////////////////////////////////////// /// \class RAT::Classifiers::EarlyTime /// /// \brief Calculates the number of photons arriving before they /// apparently can given the seed. /// /// \author name Phil G Jones /// \author Evelina Arushanova -- contact person /// /// REVISION HISTORY:\n /// 26/06/2011 : P G Jones - New file /// 01/09/2020 : Logan Lebanowski - Properly account for partial fill /// /// \details Returns the fraction of early to total. /// //////////////////////////////////////////////////////////////////////// #ifndef __RAT_Classifiers_EarlyTime_ #define __RAT_Classifiers_EarlyTime_ #include #include namespace RAT { namespace DS { class FitResult; } namespace Classifiers { class EarlyTime : public SeededClassifier { public: virtual std::string GetName() const { return EarlyTime::Name(); } static std::string Name() { return std::string( "earlyTime" ); } void Initialise( const std::string& ) { } void BeginOfRun( DS::Run& ); void EndOfRun( DS::Run& ) { } virtual DS::ClassifierResult GetClassification(); /// Set the seed to default void DefaultSeed(); /// Set the seed to seed void SetSeed( const DS::FitResult& seed ); private: DU::Point3D fEventPos; double fEventTime; DU::TimeResidualCalculator fTRCalc; ///< Time residual calculator for a given run size_t fPSUPSystemId; // coordinate system id for Point3D }; } //::Classifier } //::RAT #endif