29int main(
int argc, 
char **argv)
 
   40    JParser<> zap(
"Auxiliary program to make stack of ROOT histograms.");
 
   42    zap[
'f'] = 
make_field(inputFile,  
"<input file>:<object name>");
 
   48  catch(
const exception &error) {
 
   49    FATAL(error.what() << endl);
 
   55  for (vector<JRootObjectID>::const_iterator input = inputFile.begin(); input != inputFile.end(); ++input) {
 
   57    DEBUG(
"Input: " << *input << endl);
 
   59    TDirectory* dir = getDirectory(*input);
 
   62      ERROR(
"File: " << input->getFullFilename() << 
" not opened." << endl);
 
   66    const TRegexp regexp(input->getObjectName());
 
   68    TIter iter(dir->GetListOfKeys());
 
   70    for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
 
   72      const TString tag(key->GetName());
 
   74      DEBUG(
"Key: " << tag << 
" match = " << tag.Contains(regexp) << endl);
 
   78      if (tag.Contains(regexp) && isTObject(key)) {
 
   80        TH1* h1 = 
dynamic_cast<TH1*
>(key->ReadObj());
 
   85            hs = 
new THStack(
MAKE_CSTRING(h1->GetName() << 
"_s"), NULL);