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

Annotation of /yoda/event/RunInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.1 - (hide annotations) (download)
Wed Mar 8 13:51:45 2006 UTC (18 years, 9 months ago) by kusanagi
Branch: MAIN
CVS Tags: YODA6_2/01, YODA6_2/00, YODA6_3/19, YODA6_3/18, YODA6_3/13, YODA6_3/12, YODA6_3/11, YODA6_3/10, YODA6_3/17, YODA6_3/16, YODA6_3/15, YODA6_3/14, YODA6_3/06, YODA6_1/00, YODA6_3/04, YODA6_3/05, YODA6_3/20, YODA6_3/07, YODA6_3/00, YODA6_3/01, YODA6_3/02, YODA6_3/03, YODA6_3/08, YODA6_3/09, HEAD
Changes since 6.0: +2 -2 lines
Update: add the -o option to allow the bypass of the YODA_DATA environment variable

1 kusanagi 1.1 /** @file
2 kusanagi 2.0 * $Source: /home/cvsmanager/yoda/event/RunInfo.cpp,v $
3 kusanagi 6.1 * $Id: RunInfo.cpp,v 6.0 2006/02/07 17:11:07 kusanagi Exp $
4 kusanagi 6.0 * $Author: kusanagi $
5 kusanagi 1.1 *
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 kusanagi 5.1 #include "RunInfo.h"
16 kusanagi 1.1 #include "PamelaRun.h"
17     using namespace pamela;
18    
19     RunInfo::RunInfo(PamelaRun* run): UserName(getpwuid(geteuid())->pw_name),
20 kusanagi 6.1 DataPath( run->GetUnpackPath()),
21 kusanagi 1.1 RunNumber(run->GetRunNumber()) {
22     char* hostname = new char[1000];
23     gethostname(hostname, 1000);
24     HostName = TString(hostname);
25    
26     time_t t = time(NULL);
27     Time = TString(asctime(gmtime(&t)));
28     }
29    
30     RunInfo::RunInfo(void) { }
31     RunInfo::~RunInfo(void) { }
32    
33     ClassImp(RunInfo)

  ViewVC Help
Powered by ViewVC 1.1.23