/** @file * $Source: /home/cvsmanager/yoda/event/RunInfo.cpp,v $ * $Id: RunInfo.cpp,v 5.0 2005/08/29 09:45:48 Maurizio Nagni Exp $ * $Author: Maurizio Nagni $ * * Implementation of the default functions of the Algorithm class. */ extern "C" { #include #include #include #include #include } #include "RunInfo.h" #include "PamelaRun.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)