#include "sbnana/CAFAna/Core/FileReducer.h"
#include <iostream>
#include <string>
#include <vector>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 8 of file concat_cafs.cc.
11 std::cout <<
"usage: concat_cafs INFILES OUTFILE\n"
12 <<
" concat_cafs INFILES... OUTFILE\n"
13 <<
" concat_cafs 'WILDCARD' OUTFILE\n"
14 <<
" concat_cafs SAMDEF OUTFILE\n"
15 <<
"Warning: this argument order is different to hadd"
20 std::vector<std::string> infiles;
21 for(
int i = 1; i < argc-1; ++i) infiles.push_back(argv[i]);
22 const std::string outfile = argv[argc-1];
25 if(infiles.size() == 1){
40 std::cout <<
"Created " << outfile << std::endl;
void SetMetadata(const std::string &key, const std::string &val)
Override any metadata key in the output file.
virtual void Go() override
Load all the registered spectra.
BEGIN_PROLOG could also be cout