PHRawDataNode.C
//-----------------------------------------------------------------------------
// $Header: /afs/rhic/phenix/cvsroot/offline/framework/phool/PHRawDataNode.C,v 1.3 2001/06/01 18:56:53 dave Exp $
//
// The PHOOL's Software
// Copyright (C) PHENIX collaboration, 1999
//
// Implementation of class PHRawDataNode
//
// Author: Matthias Messer
//-----------------------------------------------------------------------------
#include "PHRawDataNode.h"
#include "PHRawOManager.h"
PHRawDataNode::PHRawDataNode()
{
length = 0;
ID = 0;
wordLength = 0;
hitFormat = 0;
}
PHRawDataNode::PHRawDataNode(DWORD * d, const PHString& n, int l, int i, int w, int h)
: PHDataNode<DWORD>(d, n)
{
length = l;
ID = i;
wordLength = w;
hitFormat = h;
}
PHRawDataNode::~PHRawDataNode()
{
}
PHBoolean
PHRawDataNode::write(PHIOManager * IOManager, const PHString& path)
{
PHRawOManager* rawOManager;
if ((rawOManager = dynamic_cast<PHRawOManager*>(IOManager))) {
rawOManager->write(this);
}
return True;
}