AfterPulseProc Class Reference

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

Public Member Functions

virtual Processor::Result DSEvent (DS::Root *ds)
 
void BeginOfRun (DS::Run *run)
 
void UpdatePMTModels (DS::PMTInfo *pmtinfo)
 
void GenerateAfterPulses (DS::MC *mc, DS::PMTInfo *pmtinfo, uint64_t eventTime)
 
double CalculateAfterPulseTime (double apFraction, std::vector< double > apTime, std::vector< double > apProb)
 
void DetectAfterPulses (DS::MC *mc, DS::PMTInfo *pmtinfo, uint64_t eventTime)
 
void SetD (std::string param, double value)
 
void SetI (std::string param, int value)
 
- 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 void SetS (std::string param, std::string value)
 
virtual void EndOfRun (DS::Run *run)
 
virtual Processor::Result Event (DS::Root *ds, DS::EV *ev)
 

Protected Attributes

std::string fDAQ
 
int fAPFlag
 
double fTriggerWindow
 
double fDefaultAPFraction
 
std::vector< double > fDefaultAPTime
 
std::vector< double > fDefaultAPProb
 
std::map< std::string, double > fModelAPFractionMap
 
std::map< std::string, std::vector< double > > fModelAPTimeMap
 
std::map< std::string, std::vector< double > > fModelAPProbMap
 
std::vector< RAT::PMTTime * > fPMTTime
 
std::vector< RAT::PMTCharge * > fPMTCharge
 
std::map< int, std::vector< uint64_t > > fAfterPulseTime
 
- 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

◆ DSEvent()

Processor::Result RAT::AfterPulseProc::DSEvent ( DS::Root ds)
virtual

Process one physics event.

The processor can do whatever operation it likes on the event. The default implementation of this method calls Event() once for every event in the ds.ev list. Do not override DSEvent() if you plan to override Event().

Parameters
[in,out]dsData structure for current event.
Returns
Status code for successs/failure in processing this event.

Reimplemented from RAT::Processor.

◆ SetD()

void RAT::AfterPulseProc::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.

Reimplemented from RAT::Processor.

◆ SetI()

void RAT::AfterPulseProc::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.


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