Juggler
Juggling algorithms and event processing using gaudi framework
|
Go to the documentation of this file.
4 #ifndef JUGBASE_DATAWRAPPER_H
5 #define JUGBASE_DATAWRAPPER_H
10 #include <GaudiKernel/DataObject.h>
11 #include <podio/CollectionBase.h>
46 if (m_data !=
nullptr)
delete m_data;
51 if (std::is_base_of<podio::CollectionBase, T>::value) {
52 return reinterpret_cast<podio::CollectionBase*
>(m_data);
Definition: DataWrapper.h:30
virtual podio::CollectionBase * collectionBase()=0
Definition: DataWrapper.h:17
virtual ~DataWrapper()
Definition: DataWrapper.h:45
void setData(T *data)
Definition: DataWrapper.h:36
DataWrapper()
Definition: DataWrapper.h:32
virtual podio::CollectionBase * collectionBase()
try to cast to collectionBase; may return nullptr;
Definition: DataWrapper.h:50
virtual ~DataWrapperBase()
Definition: DataWrapper.h:22
const T * getData()
Definition: DataWrapper.h:35