CRawSoR.C
//-----------------------------------------------------------------------------
// $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/CRawSoR.C,v 2.1 1996/10/04 08:45:26 voigt Exp $
//
// COOL Program Library
// Copyright (C) CERES collaboration, 1996
//
// Implementation of class CRawSoR.
//
//-----------------------------------------------------------------------------
#include "CRawSoR.h"
CRawSoR::CRawSoR()
{
daqVersion = 0;
runComment = "";
target = "";
}
void CRawSoR::unpackRootLabel()
{
if (rootLabel != 0) {
const CWord *data = rootLabel->getData();
daqVersion = (int) data[4];
runComment = CString((const char*) &data[5], 60);
target = CString((const char*) &data[20], 20);
runComment = runComment.strip(CString::both,' ');
target = target.strip(CString::both,' ');
}
}