49 char*
string =
new char[100];
51 if (TMath::Abs(value) < 1e-30) {
52 sprintf(
string,
"%5.3f", 0.0);
53 }
else if (TMath::Abs(value) < 0.01) {
54 sprintf(
string,
"%5.3e", value);
55 }
else if (TMath::Abs(value) < 0.1) {
56 sprintf(
string,
"%5.3f", value);
58 sprintf(
string,
"%5.3f", value);
63 delete[] string;
string = 0;
File containing declaration of LauPrint class.
Class to define various output print commands.
virtual ~LauPrint()
Destructor.
void printFormat(std::ostream &stream, Double_t value) const
Method to choose the printing format to a specified level of precision.
Double_t value() const
The value of the parameter.