1#include "CLHEP/Vector/defs.h"
8bool eatwhitespace ( std::istream & is ) {
28 std::cerr <<
"istream mysteriously lost a putback character!\n";
38 double & x,
double & y,
double & z ) {
46 bool parenthesis =
false;
48 if ( !eatwhitespace(is) ) {
49 std::cerr <<
"istream ended before trying to input " << type <<
"\n";
53 if ( !is.get(c) ) { fouledup();
return; }
56 if ( !eatwhitespace(is) ) {
57 std::cerr <<
"istream ended after ( trying to input " << type <<
"\n";
68 std::cerr <<
"Could not read first value in input of " << type <<
"\n";
72 if ( !eatwhitespace(is) ) {
73 std::cerr <<
"istream ended before second value of " << type <<
"\n";
77 if ( !is.get(c) ) { fouledup();
return; }
79 if ( !eatwhitespace(is) ) {
80 std::cerr <<
"istream ended ater one value and comma in "
92 std::cerr <<
"Could not read second value in input of " << type <<
"\n";
96 if ( !eatwhitespace(is) ) {
97 std::cerr <<
"istream ended before third value of " << type <<
"\n";
101 if ( !is.get(c) ) { fouledup();
return; }
103 if ( !eatwhitespace(is) ) {
104 std::cerr <<
"istream ended ater two values and comma in "
116 std::cerr <<
"Could not read third value in input of " << type <<
"\n";
123 if ( !eatwhitespace(is) ) {
124 std::cerr <<
"No closing parenthesis in input of " << type <<
"\n";
127 if ( !is.get(c) ) { fouledup();
return; }
129 std::cerr <<
"Missing closing parenthesis in input of "
134 if ( isdigit(c) || (c==
'-') || (c==
'+') ) {
153 double & x,
double & y,
double & z,
167 bool parenthesis =
false;
169 if ( !eatwhitespace(is) ) {
170 std::cerr <<
"istream ended before trying to input AxisAngle \n";
174 if ( !is.get(c) ) { fouledup();
return; }
177 if ( !eatwhitespace(is) ) {
178 std::cerr <<
"istream ended after ( trying to input AxisAngle \n";
191 if ( !eatwhitespace(is) ) {
192 std::cerr <<
"istream ended before delta of AxisAngle \n";
196 if ( !is.get(c) ) { fouledup();
return; }
198 if ( !eatwhitespace(is) ) {
199 std::cerr <<
"istream ended ater axis and comma in AxisAngle \n";
209 if (!(is >> delta)) {
210 std::cerr <<
"Could not delta value in input of AxisAngle \n";
217 if ( !eatwhitespace(is) ) {
218 std::cerr <<
"No closing parenthesis in input of AxisAngle \n";
221 if ( !is.get(c) ) { fouledup();
return; }
223 std::cerr <<
"Missing closing parenthesis in input of AxisAngle \n";
224 if ( isdigit(c) || (c==
'-') || (c==
'+') ) {
241 double & x,
double & y ) {
249 bool parenthesis =
false;
251 if ( !eatwhitespace(is) ) {
252 std::cerr <<
"istream ended before trying to input " << type <<
"\n";
256 if ( !is.get(c) ) { fouledup();
return; }
259 if ( !eatwhitespace(is) ) {
260 std::cerr <<
"istream ended after ( trying to input " << type <<
"\n";
271 std::cerr <<
"Could not read first value in input of " << type <<
"\n";
275 if ( !eatwhitespace(is) ) {
276 std::cerr <<
"istream ended before second value of " << type <<
"\n";
280 if ( !is.get(c) ) { fouledup();
return; }
282 if ( !eatwhitespace(is) ) {
283 std::cerr <<
"istream ended ater one value and comma in "
295 std::cerr <<
"Could not read second value in input of " << type <<
"\n";
302 if ( !eatwhitespace(is) ) {
303 std::cerr <<
"No closing parenthesis in input of " << type <<
"\n";
306 if ( !is.get(c) ) { fouledup();
return; }
308 std::cerr <<
"Missing closing parenthesis in input of "
313 if ( isdigit(c) || (c==
'-') || (c==
'+') ) {
void ZMinput2doubles(std::istream &is, const char *type, double &x, double &y)
void ZMinput3doubles(std::istream &is, const char *type, double &x, double &y, double &z)
void ZMinputAxisAngle(std::istream &is, double &x, double &y, double &z, double &delta)