ClassifyTimesProc Class Reference

Ratpac-two: RAT::ClassifyTimesProc Class Reference
Ratpac-two
RAT::ClassifyTimesProc Class Reference
Inheritance diagram for RAT::ClassifyTimesProc:
RAT::Processor

Public Member Functions

void BeginOfRun (DS::Run *run)
 
virtual void SetI (std::string param, int value)
 
virtual void SetD (std::string param, double value)
 
virtual void SetS (std::string param, std::string value)
 
virtual Processor::Result Event (DS::Root *ds, DS::EV *ev)
 
- Public Member Functions inherited from RAT::Processor
 Processor (std::string _name)
 
virtual ~Processor ()
 
std::string GetName () const
 
virtual void SetF (std::string param, float value)
 
virtual Processor::Result DSEvent (DS::Root *ds)
 
virtual void EndOfRun (DS::Run *run)
 

Protected Attributes

std::vector< std::string > fParamNames = {"ratio", "mean", "stddev", "skewness", "kurtosis"}
 
std::vector< int > fPMTtype
 
std::string fClassifierName = "classifytimes"
 
std::string fPosFitter
 
bool fSetSpeed = false
 
double fLightSpeed = 0.0
 
double fFixedTime = 0.0
 
TVector3 fFixedPosition
 
std::string fPosMethod
 
DS::PMTInfofPMTInfo
 
FitterInputHandler inputHandler
 
double fNumerTimeResLow
 
double fNumerTimeResUp
 
double fDenomTimeResLow = 0.0
 
double fDenomTimeResUp = 0.0
 
int fVerbose
 
std::string fCutMethod
 
double fTimeResLow = 0.0
 
double fTimeResUp = 0.0
 
double fTimeResFracLow = 0.0
 
double fTimeResFracUp = 1.0
 
- Protected Attributes inherited from RAT::Processor
std::string name
 

Additional Inherited Members

- Public Types inherited from RAT::Processor
enum  Result { OK = 0 , FAIL = 1 , ABORT = 2 }
 

Member Function Documentation

◆ Event()

Processor::Result ClassifyTimesProc::Event ( DS::Root ds,
DS::EV ev 
)
virtual

Process one triggered event.

If you do not override DSEvent(), then this method is called once per triggered event. As a convenience, a reference is also provided to the root of the data structure associated with the triggered event.

Do not override this method if you also plan to override DSEvent().

Parameters
[in]dsRoot of data structure
[in,out]evTriggered event data structure
Returns
Status code for successs/failure in processing this event.

Initialize ALL parameters with placeholder values

Get event position

If fractional cuts specified for central moments, determine cut times

Apply time cuts and determine PMT counts and first central moment of time residuals

Apply time cuts and determine second, third, and fourth central moments of time residuals

Save results

Reimplemented from RAT::Processor.

◆ SetD()

void ClassifyTimesProc::SetD ( std::string  param,
double  value 
)
virtual

Set double parameter

Parameters
[in]paramName of parameter.
[in]valueValue of parameter.
Exceptions
ParamUnknownif param is not recognized.
ParamInvalidif value is not allowed for param.

Time boundary parameters for central moments

Time boundaries for ratio

Event position and time input

Reimplemented from RAT::Processor.

◆ SetI()

void ClassifyTimesProc::SetI ( std::string  param,
int  value 
)
virtual

Set integer parameter.

Parameters
[in]paramName of parameter.
[in]valueValue of parameter.
Exceptions
ParamUnknownif param is not recognized.
ParamInvalidif value is not allowed for param.

Reimplemented from RAT::Processor.

◆ SetS()

void ClassifyTimesProc::SetS ( std::string  param,
std::string  value 
)
virtual

Set string parameter.

Parameters
[in]paramName of parameter.
[in]valueValue of parameter.
Exceptions
ParamUnknownif param is not recognized.
ParamInvalidif value is not allowed for param.

Reimplemented from RAT::Processor.

Member Data Documentation

◆ fNumerTimeResLow

double RAT::ClassifyTimesProc::fNumerTimeResLow
protected
Initial value:
=
0.0

◆ fNumerTimeResUp

double RAT::ClassifyTimesProc::fNumerTimeResUp
protected
Initial value:
=
0.0

◆ fVerbose

int RAT::ClassifyTimesProc::fVerbose
protected
Initial value:
=
0

The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/fit/include/RAT/ClassifyTimesProc.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/fit/src/ClassifyTimesProc.cc