// // \class RAT::Classifiers::TimeCentroid // // \brief Classifier to identify topological similarity of PMT hits, which can be used as a metric for spatial coincidence // // \author Jia-Shian Wang // // REVISION HISTORY:\n // 29 Jul 2020: J Wang - basic structure // // Details can be foudn at DocDB doc-6568 // #ifndef __RAT_Classifiers_TimeCentroid__ #define __RAT_Classifiers_TimeCentroid__ #include #include #include #include namespace RAT { namespace Classifiers { class TimeCentroid : public SelectorClassifier { public: virtual std::string GetName() const { return TimeCentroid::Name(); } static std::string Name() { return std::string("TimeCentroid"); } void Initialise(const std::string& param); void BeginOfRun(DS::Run& run); void EndOfRun(DS::Run&) {} virtual DS::ClassifierResult GetClassification(); private: //number of PMTs to use double fN_pmt; //scale constant double fC; //lower end of time window double ftime_low; //upper end of time window double ftime_up; //Nhit limit of event double fNhit_lim; //db table index std::string fIndex; }; } //::Classifier } //::RAT #endif