WCSim
convertNuPRISM.C
Go to the documentation of this file.
1 {
2  {
3  const char *wcsimdirenv = gSystem->Getenv("WCSIMDIR");
4  if (!(wcsimdirenv && wcsimdirenv[0])) { // make sure it's non-empty
5  wcsimdirenv = "."; // the "default" value
6  std::cout << "Note: WCSIMDIR not set, assuming: " << wcsimdirenv << std::endl;
7  gSystem->Setenv("WCSIMDIR", wcsimdirenv);
8  }
9  }
10 
11  gInterpreter->AddIncludePath("${WCSIMDIR}/include");
12  gSystem->Load("${WCSIMDIR}/libWCSimRoot");
13  gROOT->ProcessLine(".L nuPRISMconvert.cc+");
14 }