28 string suffix =
".hddm";
29 if(source.length() < suffix.length())
return 0.0;
30 if(source.substr(source.length() - suffix.length()) != suffix)
return 0.0;
32 ifstream ifs(source.c_str());
46 if (source.find(
"_rest") != source.npos ||
47 source.find(
"rest_") != source.npos)
51 else if (source.find(
"hdgeant") != source.npos)
55 else if (source.find(
"_smeared") != source.npos ||
56 source.find(
"smeared_") != source.npos)
60 else if (source.find(
"_events") != source.npos ||
61 source.find(
"events_") != source.npos)
const char * Description(void)
jana::JEventSource * MakeJEventSource(std::string source)
double CheckOpenable(std::string source)
Implements JEventSource for REST files.