/[PAMELA software]/yoda/event/RunInfo.cpp
ViewVC logotype

Contents of /yoda/event/RunInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Jul 6 12:20:23 2004 UTC (20 years, 5 months ago) by kusanagi
Changes since 1.1: +0 -0 lines

1 /** @file
2 * $Source: /home/cvspamela/yoda/event/RunInfo.cpp,v $
3 * $Id: RunInfo.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $
4 * $Author: nagni $
5 *
6 * Implementation of the default functions of the Algorithm class.
7 */
8 extern "C" {
9 #include <unistd.h>
10 #include <time.h>
11 #include <stdlib.h>
12 #include <pwd.h>
13 #include <sys/types.h>
14 }
15 #include "PamelaRun.h"
16 #include "RunInfo.h"
17
18 using namespace pamela;
19
20 RunInfo::RunInfo(PamelaRun* run): UserName(getpwuid(geteuid())->pw_name),
21 DataPath( getenv("YODA_DATA")),
22 RunNumber(run->GetRunNumber()) {
23 char* hostname = new char[1000];
24 gethostname(hostname, 1000);
25 HostName = TString(hostname);
26
27 time_t t = time(NULL);
28 Time = TString(asctime(gmtime(&t)));
29 }
30
31 RunInfo::RunInfo(void) { }
32 RunInfo::~RunInfo(void) { }
33
34 ClassImp(RunInfo)

  ViewVC Help
Powered by ViewVC 1.1.23