1 #ifndef TDataContainer_hxx_seen
2 #define TDataContainer_hxx_seen
15 virtual const char*
what()
const throw()
17 return "Incorrect bank cast";
51 for(
unsigned int ibank = 0; ibank <
fEventDataList.size(); ibank++){
57 std::cout <<
"TMidasEvent::GetMidasBank: ERROR: you requested bank with name=" << name << std::endl
58 <<
"A cached version of this bank (of type " <<
typeid(
fEventDataList[ibank]).name()
59 <<
") already exists in event; cannot create bank class of new type "
60 <<
typeid(T).name()<<std::endl;
73 if(status == 0)
return 0;
75 T *bank =
new T(bklen,bktype,name, ptr);
TMidasEvent * fMidasEventPointer
void SetMidasEventPointer(TMidasEvent &event)
TDataContainer & operator=(const TDataContainer &event)
For the moment make empty assign operator.
T * GetEventData(const char *name)
Add a templated function that returns event data in the format that we want.
std::vector< TGenericData * > fEventDataList
TMidasEvent & GetMidasEvent() const
bool fOwnMidasEventMemory
Do we own the memory pointed to by TMidasEvent pointer?
TMidasEvent & GetMidasData() const
Get the MIDAS data for this event, in TMidasEvent format.
int FindBank(const char *bankName, int *bankLength, int *bankType, void **bankPtr) const
virtual const char * what() const