/** @file * $Source: /home/cvspamela/yoda/event/RunInfo.cpp,v $ * $Id: RunInfo.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $ * $Author: nagni $ * * Implementation of the default functions of the Algorithm class. */ extern "C" { #include #include #include #include #include } #include "PamelaRun.h" #include "RunInfo.h" using namespace pamela; RunInfo::RunInfo(PamelaRun* run): UserName(getpwuid(geteuid())->pw_name), DataPath( getenv("YODA_DATA")), RunNumber(run->GetRunNumber()) { char* hostname = new char[1000]; gethostname(hostname, 1000); HostName = TString(hostname); time_t t = time(NULL); Time = TString(asctime(gmtime(&t))); } RunInfo::RunInfo(void) { } RunInfo::~RunInfo(void) { } ClassImp(RunInfo)