OutROOTProc Class Reference

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

Public Member Functions

virtual void SetS (std::string param, std::string value)
 
virtual void SetI (std::string param, int value)
 
virtual Processor::Result DSEvent (DS::Root *ds)
 
virtual bool OpenFile (std::string theFilename, bool update=false)
 
virtual std::string GetFilename ()
 
- 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 SetD (std::string param, double value)
 
virtual void BeginOfRun (DS::Run *run)
 
virtual void EndOfRun (DS::Run *run)
 
virtual Processor::Result Event (DS::Root *ds, DS::EV *ev)
 

Static Public Attributes

static int run_num = -1
 

Protected Attributes

std::string default_filename
 
std::string filename
 
TFile * f
 
TTree * tree
 
TTree * runTree
 
DS::RootbranchDS
 
DS::RunbranchRun
 
int autosave
 
bool savetree
 
- 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::OutROOTProc::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.

◆ SetI()

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


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