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

Annotation of /yoda/event/RunInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.0 - (hide annotations) (download)
Sun Mar 6 04:33:01 2005 UTC (19 years, 9 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA4_1/00, YODA4_0/04, YODA4_0/03, YODA4_0/02, YODA4_0/01, YODA4_3/02, YODA4_3/00, YODA4_3/01, YODA4_2/01, YODA4_2/00, YODA4_2/03, yodaPreTermistores2_0/00
Branch point for: PreThermistores2
Changes since 3.0: +1 -1 lines
Stable version 4.0 - 6 March 2005 - Maurizio Nagni

1 kusanagi 1.1 /** @file
2 kusanagi 2.0 * $Source: /home/cvsmanager/yoda/event/RunInfo.cpp,v $
3 kusanagi 4.0 * $Id: RunInfo.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $
4 kusanagi 2.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     #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