59int main(
int argc, 
char **argv)
 
   71    JParser<> zap(
"Auxiliary program to convert 2D histograms to PDFs.");
 
   73    zap[
'f'] = 
make_field(inputFile,  
"<input file>:<object name>");
 
   80  catch(
const exception &error) {
 
   81    FATAL(error.what() << endl);
 
   87  for (vector<JRootObjectID>::const_iterator input = inputFile.begin(); input != inputFile.end(); ++input) {
 
   89    DEBUG(
"Input: " << *input << endl);
 
   91    TDirectory* dir = getDirectory(*input);
 
   94      ERROR(
"File: " << input->getFullFilename() << 
" not opened." << endl);
 
   98    const TRegexp regexp(input->getObjectName());
 
  100    TIter iter(dir->GetListOfKeys());
 
  102    for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
 
  104      const TString tag(key->GetName());
 
  106      DEBUG(
"Key: " << tag << 
" match = " << tag.Contains(regexp) << endl);
 
  110      if (tag.Contains(regexp) && isTObject(key)) {
 
  112        TObject* 
object = key->ReadObj();
 
  114        TH3*  h3 = 
dynamic_cast<TH3*
>(object);
 
  117          listOfObjects.push_back(h3);
 
  119          ERROR(
"Incompatible object " << object->GetName() << endl);
 
  129    convertToPDF(**h3, option);