35 char*
string =
new char[100];
37 if (TMath::Abs(value) < 1e-30) {
38 sprintf(
string,
"%5.3f", 0.0);
39 }
else if (TMath::Abs(value) < 0.01) {
40 sprintf(
string,
"%5.3e", value);
41 }
else if (TMath::Abs(value) < 0.1) {
42 sprintf(
string,
"%5.3f", value);
44 sprintf(
string,
"%5.3f", value);
49 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.