#include <TDataMember.h>
#include <TList.h>
#include <TMethodCall.h>
+#include <TDataType.h>
#include "AliLog.h"
#include "AliRawEventHeaderBase.h"
return 0;
}
- if (strcmp(member->GetTypeName(),"UInt_t") != 0) {
+ TDataType * dataType = member->GetDataType();
+ if (!dataType || dataType->GetType() != kUInt_t) {
AliFatal(Form("Member %s is not of type UInt_t!",buf));
return 0;
}
// return 0;
// }
- if (strcmp(member->GetTypeName(),"UInt_t") != 0) {
+ TDataType * dataType = member->GetDataType();
+ if (!dataType || dataType->GetType() != kUInt_t) {
AliFatal(Form("Member %s is not of type UInt_t*!",buf));
return 0;
}