// $Id$ // // File: DEventSourceHDDMGenerator.cc // Created: Sat Jul 1 19:23:54 EDT 2006 // Creator: davidl (on Darwin Harriet.local 8.6.0 powerpc) // #include using std::string; #include "DEventSourceHDDMGenerator.h" #include "DEventSourceHDDM.h" //--------------------------------- // Description //--------------------------------- const char* DEventSourceHDDMGenerator::Description(void) { return "HDDM"; } //--------------------------------- // CheckOpenable //--------------------------------- double DEventSourceHDDMGenerator::CheckOpenable(string source) { return source.find(".hddm",0)==string::npos ? 0.0:1.0; } //--------------------------------- // MakeJEventSource //--------------------------------- JEventSource* DEventSourceHDDMGenerator::MakeJEventSource(string source) { return new DEventSourceHDDM(source.c_str()); }