FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | List of all members
frib::analysis::CEvent Class Reference

#include <Event.h>

Public Member Functions

 CEvent ()
 
virtual ~CEvent ()
 
 CEvent (UInt_t nInitialSize)
 
 CEvent (const CEvent &aEvent)
 
CEventoperator= (const CEvent &aEvent)
 
int operator== (const CEvent &aEvent)
 
int operator!= (const CEvent &anEvent)
 
CParameterValue & operator[] (UInt_t nParam)
 
CEventIterator begin ()
 
CEventIterator end ()
 
UInt_t size ()
 
void clear ()
 
DopeVector getDopeVector ()
 

Detailed Description

This is an important class in SpecTcl. It holds the event that event processors generate from the raw data or other event processor results. As much as possible we'll try to implement this in a sensible way. Specifically, if an index already has a tree parameter assigned to it, we'll use that tree parameter as a target for references into the CEventObject. If there is no TreeParameter we'll generate one named 'unamed.n' where .n is the index into the array referenced. This is not recommended as by the time this happens the outputter will arleady have output the Treeparameter definitions.

Constructor & Destructor Documentation

◆ CEvent()

frib::analysis::CEvent::CEvent ( )

constructors do nothing as there's no data to initialize.

◆ ~CEvent()

frib::analysis::CEvent::~CEvent ( )
virtual

destructor is also nill because there's not any data to destroy.

Member Function Documentation

◆ begin()

CEventIterator frib::analysis::CEvent::begin ( )

begin - provide an iterator to the event data.

Returns
CEventIterator

◆ clear()

void frib::analysis::CEvent::clear ( )

clear Just a stand in for nextevent

◆ end()

CEventIterator frib::analysis::CEvent::end ( )

end end iterator for the event.

Returns
CEventIterator

◆ getDopeVector()

DopeVector frib::analysis::CEvent::getDopeVector ( )

getDopeVector A stand in for getScoreboard

◆ operator[]()

CParameterValue & frib::analysis::CEvent::operator[] ( UInt_t  nParam)

operator[] Indexing the revent is mostly as simple as providing the index to the array. However

  • If the index does not exist a new tree parameter is created.
  • If the index is not in the scoreboard it's added. nParam - index into the parameter vector.
    Returns
    CParameterValue& where CParameterValue is just a double.
    Note
    Since we don't touch the underlying tree parameter and its shared data, isValid isn't going to work on this That's ok because there's no isValid in CParameterValue anymore. We strongly suggest the use of CTreeParameters and not CEvent as targets of the unpacking.

◆ size()

UInt_t frib::analysis::CEvent::size ( )

size() Size of the event array.


The documentation for this class was generated from the following files: