Utilities.cxx
Go to the documentation of this file.
3 
4 #include <cassert>
5 
6 using std::string;
7 
8 namespace ana {
9 
11 
12  string InputPath() {
13  string ret;
14  if (kPathType == kCVMFS) {
15  const char* cpath = getenv("NUSDATA_DIR");
16  if (!cpath) assert(false && "nusdata directory not found! Exiting.");
17  ret = string(cpath) + "/nus20";
18  } else if (kPathType == kStashCache) {
19  ret = "/cvmfs/nova.osgstorage.org/analysis/nux/nus20";
20  } else if (kPathType == kXRootD) {
21  ret = pnfs2xrootd("/pnfs/nova/persistent/analysis/nux/nus20");
22  } else assert (false && "Nus20 path type not recognised!");
23 
24  return ret;
25  }
26 
27 } // namespace ana
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
std::string pnfs2xrootd(std::string loc, bool unauth)
Definition: UtilsExt.cxx:237
std::string getenv(std::string const &name)
string InputPath()
Definition: Utilities.cxx:12
const Nus20PathType kPathType
Definition: Utilities.cxx:10
Nus20PathType
Definition: Utilities.h:7
assert(nhit_max >=nhit_nbins)
enum BeamMode string