Producer Class Reference

Ratpac-two: RAT::Producer Class Reference
Ratpac-two
Inheritance diagram for RAT::Producer:
RAT::Gsim RAT::InNetProducer RAT::InROOTProducer RAT::RunManager

Public Member Functions

 Producer ()
 
 Producer (ProcBlock *theBlock)
 
virtual ~Producer ()
 
ProcBlockGetMainBlock ()
 
void SetMainBlock (ProcBlock *block)
 
virtual void BeginOfRun (DS::Run *run)
 
virtual void EndOfRun (DS::Run *run)
 

Protected Attributes

ProcBlockmainBlock
 

Constructor & Destructor Documentation

◆ Producer() [1/2]

Producer::Producer ( )

Create a new producer with no block.

It is not allowed to do anything further with this object until SetMainBlock() is called.

◆ Producer() [2/2]

Producer::Producer ( ProcBlock theBlock)

Create a new producer which will pass events to theBlock when it is running.

Most likely, other Producer objects have a pointer to theBlock as well, so we do not take ownership of the object.

◆ ~Producer()

virtual RAT::Producer::~Producer ( )
inlinevirtual

Destroy this producer. Does not destroy the main block.

Member Function Documentation

◆ GetMainBlock()

ProcBlock * Producer::GetMainBlock ( )

Get a pointer to the main block used by this producer.

◆ SetMainBlock()

void Producer::SetMainBlock ( ProcBlock block)

Set the main block used by this producer.

Member Data Documentation

◆ mainBlock

ProcBlock* RAT::Producer::mainBlock
protected

Run events on this block of processors when created.


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