ROOTANA
|
#include <TDataContainer.hxx>
Public Member Functions | |
TDataContainer () | |
TDataContainer (const TDataContainer &dataContainer) | |
~TDataContainer () | |
TMidasEvent & | GetMidasData () const |
Get the MIDAS data for this event, in TMidasEvent format. More... | |
TMidasEvent & | GetMidasEvent () const |
template<typename T > | |
T * | GetEventData (const char *name) |
Add a templated function that returns event data in the format that we want. More... | |
void | CleanupEvent () |
void | SetMidasEventPointer (TMidasEvent &event) |
Private Member Functions | |
TDataContainer & | operator= (const TDataContainer &event) |
For the moment make empty assign operator. More... | |
Private Attributes | |
TMidasEvent * | fMidasEventPointer |
bool | fOwnMidasEventMemory |
Do we own the memory pointed to by TMidasEvent pointer? More... | |
std::vector< TGenericData * > | fEventDataList |
This class is what will get passed back to users for each midas event. It will contain a pointer to the midas event, which the user can access. It will also contain routines that the user can call to access decoded versions of the midas banks. Generally the decoded information will be cleaned out at the end of each event; but there will be options to allow this information to persist.
Definition at line 28 of file TDataContainer.hxx.
|
inline |
Definition at line 34 of file TDataContainer.hxx.
TDataContainer::TDataContainer | ( | const TDataContainer & | dataContainer | ) |
TDataContainer::~TDataContainer | ( | ) |
Definition at line 13 of file TDataContainer.cxx.
void TDataContainer::CleanupEvent | ( | ) |
Method to clean up the current events list of event data. Generally this will delete all the existing information, but this behaviour may be modified in some cases.
Definition at line 43 of file TDataContainer.cxx.
|
inline |
Add a templated function that returns event data in the format that we want.
If we couldn't find bank, return null.
Definition at line 48 of file TDataContainer.hxx.
TMidasEvent & TDataContainer::GetMidasData | ( | ) | const |
Get the MIDAS data for this event, in TMidasEvent format.
Definition at line 66 of file TDataContainer.cxx.
|
inline |
Definition at line 44 of file TDataContainer.hxx.
|
private |
For the moment make empty assign operator.
void TDataContainer::SetMidasEventPointer | ( | TMidasEvent & | event | ) |
This is the ugly function where we de-reference to get pointer for a TMidasEvent (ugly!). In this case TDataContainer does not own the memory referenced by fMidasEventPointer.
Definition at line 52 of file TDataContainer.cxx.
|
private |
This is the list of banks associated with this event. The event owns these banks and needs to take care of deleting them.
Definition at line 110 of file TDataContainer.hxx.
|
private |
Pointer to the TMidasEvent; In some cases we own the memory referenced by pointer; other cases not
Definition at line 98 of file TDataContainer.hxx.
|
private |
Do we own the memory pointed to by TMidasEvent pointer?
Definition at line 101 of file TDataContainer.hxx.