#include "AliHLTOUTHandler.h"
#include "AliHLTOUTHandlerEquId.h"
#include "AliHLTSystem.h"
+#include "AliHLTPluginBase.h"
#include "AliLog.h"
#include "AliDAQ.h" // RAW, for detector names and equipment ids
#include "TObjString.h"
AliRawReaderHLT::AliRawReaderHLT(AliRawReader* pRawreader, const char* options)
:
AliRawReader(),
- AliHLTPluginBase(),
fpParentReader(pRawreader),
fOptions(),
fSystemOptions(),
fDetectors(),
fpHLTOUT(NULL),
fbReadFirst(true),
- fpDataHandler(NULL)
+ fpDataHandler(NULL),
+ fpPluginBase(new AliHLTPluginBase)
{
// see header file for class documentation
// or
{
// see header file for class documentation
ReleaseHLTData();
+ if (fpPluginBase) delete fpPluginBase;
+ fpPluginBase=NULL;
}
UInt_t AliRawReaderHLT::GetType() const
if (!fpHLTOUT) {
fpHLTOUT=new AliHLTOUTRawReader(fpParentReader);
if ((result=(fpHLTOUT!=NULL))) {
- AliHLTSystem* pSystem=GetInstance();
+ if (!fpPluginBase) {
+ AliFatal("internal data error: can not get AliHLTSystem instance from plugin");
+ return false;
+ }
+ AliHLTSystem* pSystem=fpPluginBase->GetInstance();
if (pSystem) {
pSystem->ScanOptions(fSystemOptions.Data());
}