#ifndef __PNDDRCUTIL_H__ #define __PNDDRCUTIL_H 1 /*! \file PndDrcUtil.h \brief Utility functions */ /*! \brief Convert int to string for only one digit \param i int<10 \return string */ string itoa1(int i); /*! \brief Convert number to string \param i The integer number to convert. \param idigits Fixed number of digits. \return string */ string itoa(int i, int idigits=0); /*! \brief Rotate vector \param p1 Vector \param the rotate by theta \param phi rotate by phi \return rotated vector */ const XYZVector angle_tra(const XYZVector &p1, const double &the, const double &phi); ostream& operator << (ostream &stream, const TVector3 &t); ostream& operator << (ostream &stream, const XYZVector &t); ostream& operator << (ostream &stream, const XYZPoint &t); #endif