////////////////////////////////////////////////////////////////////////
/// \class RAT::Classifiers::PreTriggerHits
///
/// \brief Counts hits that occur before the trigger
///
/// \author name Phil G Jones
\n
/// \author Evelina Arushanova -- contact person
///
/// REVISION HISTORY:\n
/// 26/06/2011 : P G Jones - New file \n
///
/// \details Actually counts all hits up to 30ns before the trigger, i.e.
/// 250ns PMTCal or 180ns in GTValid.
///
////////////////////////////////////////////////////////////////////////
#ifndef __RAT_Classifiers_PreTriggerHits_
#define __RAT_Classifiers_PreTriggerHits_
#include
namespace RAT
{
namespace Classifiers
{
class PreTriggerHits : public Classifier
{
public:
virtual std::string GetName() const { return PreTriggerHits::Name(); }
static std::string Name() { return std::string( "preTriggerHits" ); }
void Initialise( const std::string& ) { }
void BeginOfRun(DS::Run& run);
void EndOfRun(DS::Run&) { }
virtual DS::ClassifierResult GetClassification();
private:
double fGTValid;
double fPostTriggerGate;
double fPreTriggerGap;
};
} //::Classifier
} //::RAT
#endif