1 | #ifndef snovis_Environment_h |
---|
2 | #define snovis_Environment_h |
---|
3 | |
---|
4 | #include <Lib/main.h> |
---|
5 | |
---|
6 | #include <Lib/Printer.h> |
---|
7 | #include <Lib/System.h> |
---|
8 | |
---|
9 | ////////////////////////////////////////////////////////////////////////////// |
---|
10 | inline bool check_envs( |
---|
11 | const std::string& aArg0 |
---|
12 | ) |
---|
13 | ////////////////////////////////////////////////////////////////////////////// |
---|
14 | //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// |
---|
15 | { |
---|
16 | if(!Lib::main::checkPackEnv(aArg0,"OnXLab")) return false; |
---|
17 | if(!Lib::main::checkPackEnv(aArg0,"G4Lab")) return false; |
---|
18 | if(!Lib::main::checkPackEnv(aArg0,"snovis")) return false; |
---|
19 | |
---|
20 | Lib::Printer printer; |
---|
21 | std::string fs = Lib::System::fileSeparator(); |
---|
22 | std::string dir = "Resources"+fs+"Geant4"+fs+"data"+fs; |
---|
23 | |
---|
24 | {std::string to = dir+"G4NDL"; |
---|
25 | if(!Lib::main::checkEnv(aArg0,"NeutronHPCrossSections",to, |
---|
26 | printer,true)) return false;} |
---|
27 | |
---|
28 | {std::string to = dir+"PhotonEvaporation"; |
---|
29 | if(!Lib::main::checkEnv(aArg0,"G4LEVELGAMMADATA",to, |
---|
30 | printer,true)) return false;} |
---|
31 | |
---|
32 | {std::string to = dir+"RadioactiveDecay"; |
---|
33 | if(!Lib::main::checkEnv(aArg0,"G4RADIOACTIVEDATA",to, |
---|
34 | printer,true)) return false;} |
---|
35 | |
---|
36 | {std::string to = dir+"G4EMLOW"; |
---|
37 | if(!Lib::main::checkEnv(aArg0,"G4LEDATA",to, |
---|
38 | printer,true)) return false;} |
---|
39 | |
---|
40 | |
---|
41 | return true; |
---|
42 | } |
---|
43 | |
---|
44 | #endif |
---|