Skip to content

Instantly share code, notes, and snippets.

@douglasdavis
Last active September 29, 2017 19:21
Show Gist options
  • Save douglasdavis/c1f1436c51fdb858280f9a822abdf72b to your computer and use it in GitHub Desktop.
Save douglasdavis/c1f1436c51fdb858280f9a822abdf72b to your computer and use it in GitHub Desktop.
int main(int argc, char* argv[]) {
if ( argc < 3 ) {
std::cout << "give arguments" << std::endl;
return 0;
}
std::string inputDS = argv[1];
std::string outputDS = argv[2];
// use would be:
// $ runMyAlgorithm <input> <output>
//....
//....
EL::Job job;
SH::SampleHandler sh;
sh.setMetaString("nc_tree","CollectionTree");
SH::scanRucio(sh,inputDS);
job.sampleHandler(sh);
EL::PrunDriver driver;
driver.options()->setString("nc_outputSampleName",outputDS);
driver.submitOnly(job,"foo");
//....
//....
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment