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

Diff of /yoda/event/RunInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 6.1 by kusanagi, Wed Mar 8 13:51:45 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvspamela/yoda/event/RunInfo.cpp,v $   * $Source: /home/cvsmanager/yoda/event/RunInfo.cpp,v $
3   * $Id: RunInfo.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $   * $Id: RunInfo.cpp,v 6.0 2006/02/07 17:11:07 kusanagi Exp $
4   * $Author: nagni $   * $Author: kusanagi $
5   *   *
6   * Implementation of the default functions of the Algorithm class.   * Implementation of the default functions of the Algorithm class.
7   */   */
# Line 12  extern "C" { Line 12  extern "C" {
12  #include <pwd.h>  #include <pwd.h>
13  #include <sys/types.h>  #include <sys/types.h>
14  }  }
 #include "PamelaRun.h"  
15  #include "RunInfo.h"  #include "RunInfo.h"
16    #include "PamelaRun.h"
17  using namespace pamela;  using namespace pamela;
18    
19  RunInfo::RunInfo(PamelaRun* run):  UserName(getpwuid(geteuid())->pw_name),  RunInfo::RunInfo(PamelaRun* run):  UserName(getpwuid(geteuid())->pw_name),
20                                     DataPath( getenv("YODA_DATA")),                                     DataPath( run->GetUnpackPath()),
21                                     RunNumber(run->GetRunNumber()) {                                     RunNumber(run->GetRunNumber()) {
22    char* hostname = new char[1000];    char* hostname = new char[1000];
23    gethostname(hostname, 1000);    gethostname(hostname, 1000);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.6.1

  ViewVC Help
Powered by ViewVC 1.1.23