source: snovis/trunk/applications/Environment.h

Last change on this file was 292, checked in by barrand, 17 years ago
File size: 1.4 KB
RevLine 
[6]1#ifndef snovis_Environment_h
2#define snovis_Environment_h
3
[292]4#include <Lib/argZero.h>
[6]5
6#include <Lib/Printer.h>
7#include <Lib/System.h>
8
9//////////////////////////////////////////////////////////////////////////////
10inline bool check_envs(
11 const std::string& aArg0
12)
13//////////////////////////////////////////////////////////////////////////////
14//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
15{
[292]16  if(!Lib::argZero::checkPackEnv(aArg0,"OnXLab")) return false;
17  if(!Lib::argZero::checkPackEnv(aArg0,"G4Lab")) return false;
18  if(!Lib::argZero::checkPackEnv(aArg0,"snovis")) return false;
[6]19
[214]20/*
[6]21  Lib::Printer printer;
22  std::string fs = Lib::System::fileSeparator();
23  std::string dir = "Resources"+fs+"Geant4"+fs+"data"+fs;
24
25 {std::string to = dir+"G4NDL";
[292]26  if(!Lib::argZero::checkEnv(aArg0,"NeutronHPCrossSections",to,
[6]27                          printer,true)) return false;}
28
29 {std::string to = dir+"PhotonEvaporation";
[292]30  if(!Lib::argZero::checkEnv(aArg0,"G4LEVELGAMMADATA",to,
[6]31                          printer,true)) return false;}
32
33 {std::string to = dir+"RadioactiveDecay";
[292]34  if(!Lib::argZero::checkEnv(aArg0,"G4RADIOACTIVEDATA",to,
[6]35                          printer,true)) return false;}
36
37 {std::string to = dir+"G4EMLOW";
[292]38  if(!Lib::argZero::checkEnv(aArg0,"G4LEDATA",to,
[6]39                          printer,true)) return false;}
[214]40*/
[6]41
42  return true;
43}
44
45#endif
Note: See TracBrowser for help on using the repository browser.