ROOTANA
Public Member Functions | Private Member Functions | Private Attributes
TDataContainer Class Reference

#include <TDataContainer.hxx>

Collaboration diagram for TDataContainer:
Collaboration graph
[legend]

Public Member Functions

 TDataContainer ()
 
 TDataContainer (const TDataContainer &dataContainer)
 
 ~TDataContainer ()
 
TMidasEventGetMidasData () const
 Get the MIDAS data for this event, in TMidasEvent format. More...
 
TMidasEventGetMidasEvent () 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

TDataContaineroperator= (const TDataContainer &event)
 For the moment make empty assign operator. More...
 

Private Attributes

TMidasEventfMidasEventPointer
 
bool fOwnMidasEventMemory
 Do we own the memory pointed to by TMidasEvent pointer? More...
 
std::vector< TGenericData * > fEventDataList
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TDataContainer() [1/2]

TDataContainer::TDataContainer ( )
inline

Definition at line 34 of file TDataContainer.hxx.

◆ TDataContainer() [2/2]

TDataContainer::TDataContainer ( const TDataContainer dataContainer)

Definition at line 6 of file TDataContainer.cxx.

Here is the call graph for this function:

◆ ~TDataContainer()

TDataContainer::~TDataContainer ( )

Definition at line 13 of file TDataContainer.cxx.

Member Function Documentation

◆ CleanupEvent()

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.

Here is the caller graph for this function:

◆ GetEventData()

template<typename T >
T* TDataContainer::GetEventData ( const char *  name)
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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMidasData()

TMidasEvent & TDataContainer::GetMidasData ( ) const

Get the MIDAS data for this event, in TMidasEvent format.

Definition at line 66 of file TDataContainer.cxx.

Here is the caller graph for this function:

◆ GetMidasEvent()

TMidasEvent& TDataContainer::GetMidasEvent ( ) const
inline

Definition at line 44 of file TDataContainer.hxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

TDataContainer& TDataContainer::operator= ( const TDataContainer event)
private

For the moment make empty assign operator.

◆ SetMidasEventPointer()

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.

Here is the caller graph for this function:

Field Documentation

◆ fEventDataList

std::vector<TGenericData*> TDataContainer::fEventDataList
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.

◆ fMidasEventPointer

TMidasEvent* TDataContainer::fMidasEventPointer
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.

◆ fOwnMidasEventMemory

bool TDataContainer::fOwnMidasEventMemory
private

Do we own the memory pointed to by TMidasEvent pointer?

Definition at line 101 of file TDataContainer.hxx.


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