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
Line 
1#ifndef snovis_Environment_h
2#define snovis_Environment_h
3
4#include <Lib/argZero.h>
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{
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;
19
20/*
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";
26  if(!Lib::argZero::checkEnv(aArg0,"NeutronHPCrossSections",to,
27                          printer,true)) return false;}
28
29 {std::string to = dir+"PhotonEvaporation";
30  if(!Lib::argZero::checkEnv(aArg0,"G4LEVELGAMMADATA",to,
31                          printer,true)) return false;}
32
33 {std::string to = dir+"RadioactiveDecay";
34  if(!Lib::argZero::checkEnv(aArg0,"G4RADIOACTIVEDATA",to,
35                          printer,true)) return false;}
36
37 {std::string to = dir+"G4EMLOW";
38  if(!Lib::argZero::checkEnv(aArg0,"G4LEDATA",to,
39                          printer,true)) return false;}
40*/
41
42  return true;
43}
44
45#endif
Note: See TracBrowser for help on using the repository browser.