21 : fIFDH(new ifdh_ns::ifdh)
29 if(system(
"klist -5 -s || klist -s") != 0)
fgGotTickets =
true;
34 system(
"setup_fnal_security -b");
41 if(getenv(
"X509_USER_PROXY") == 0)
42 setenv(
"X509_USER_PROXY", TString::Format(
"/tmp/x509up_u%d", getuid()).
Data(), 0);
44 fIFDH->set_debug(
"0");
58 unlink(fname.c_str());
78 unlink(fname.c_str());
87 const std::string uri(tmp);
88 if(uri.empty())
return 0;
90 tmp =
fIFDH->fetchInput(uri);
91 const std::string
fname(tmp);
92 assert(!fname.empty());
99 if(
fNFiles < 0)
std::cout << std::endl <<
"Processing " << basename((
char *)fname.c_str()) << std::endl << std::endl;
101 fFile =
new TFile(fname.c_str());
SAMProjectSource(const std::string &proj, int fileLimit=-1)
process_name opflashCryoW ana
std::string SAMExperiment()
$SAM_EXPERIMENT or a nice error message and abort
virtual TFile * GetNextFile() override
Returns the next file in sequence, ready for reading.
TFile * fFile
The most-recently-returned file.
BEGIN_PROLOG could also be cout
virtual ~SAMProjectSource()