Fork me on GitHub

Changeset 47bd664 in git for converters/root2lhco.cpp


Ignore:
Timestamp:
Jul 7, 2013, 3:11:51 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
80d4a34
Parents:
c82c0d1
Message:

add workaround for MadAnalysis bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • converters/root2lhco.cpp

    rc82c0d1 r47bd664  
    419419  if(argc < 2 || argc > 3)
    420420  {
    421     cout << " Usage: " << appName << " input_file" << " [output_file]" << endl;
    422     cout << " input_file - input file in ROOT format," << endl;
    423     cout << " output_file - output file in LHCO format," << endl;
    424     cout << " with no output_file, or when output_file is -, write to standard output." << endl;
     421    cerr << " Usage: " << appName << " input_file" << " [output_file]" << endl;
     422    cerr << " input_file - input file in ROOT format," << endl;
     423    cerr << " output_file - output file in LHCO format," << endl;
     424    cerr << " with no output_file, or when output_file is -, write to standard output." << endl;
    425425    return 1;
    426426  }
     
    436436  try
    437437  {
    438     cout << "** Reading " << argv[1] << endl;
     438    cerr << "** Reading " << argv[1] << endl;
    439439    inputChain = new TChain("Delphes");
    440440    inputChain->Add(argv[1]);
     
    457457    }
    458458
     459    fprintf(outputFile, "   #  typ      eta      phi      pt    jmas   ntrk   btag  had/em   dum1   dum2\n");
     460
    459461    allEntries = treeReader->GetEntries();
    460     cout << "** Input file contains " << allEntries << " events" << endl;
     462    cerr << "** Input file contains " << allEntries << " events" << endl;
    461463
    462464    if(allEntries > 0)
     
    484486    }
    485487
    486     cout << "** Exiting..." << endl;
     488    cerr << "** Exiting..." << endl;
    487489
    488490    if(outputFile != stdout) fclose(outputFile);
Note: See TracChangeset for help on using the changeset viewer.