Commit 6822564f authored by Lynn Garren's avatar Lynn Garren
Browse files

don't need sprintf in GenEvent

parent 53b215e0
2006-05-16 Lynn Garren <garren@fnal.gov>
* src/GenEvent.cc: get rid of sprintf
==============================
21.11.05 Release CLHEP-2.0.2.2
==============================
......
......@@ -12,7 +12,6 @@
#include "CLHEP/HepMC/GenEvent.h"
#include "CLHEP/HepMC/DoubleConversion.hh"
#include <stdio.h> // needed for formatted output using sprintf
namespace HepMC {
......@@ -137,11 +136,10 @@ namespace HepMC {
<< " [energy] \t alphaQCD=" << alphaQCD()
<< "\t alphaQED=" << alphaQED() << std::endl;
// print a legend to describe the particle info
char particle_legend[80];
sprintf( particle_legend," %9s %8s %9s,%9s,%9s,%8s %4s %9s",
"Barcode","PDG ID","( Px","Py","Pz","E )","Stat","DecayVtx");
ostr << " GenParticle Legend\n"
<< particle_legend << "\n";
ostr << " GenParticle Legend\n";
ostr << " Barcode PDG ID "
<< "( Px, Py, Pz, E )"
<< " Stat DecayVtx\n";
ostr << "________________________________________"
<< "________________________________________\n";
// Print all Vertices
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment