#ifndef __JDB_JDATALOG__ #define __JDB_JDATALOG__ #include #include #include /** * \author mdejong */ namespace JDATABASE {} namespace JPP { using namespace JDATABASE; } namespace JDATABASE { struct JDatalog : public TObject { /** * Default constructor. */ JDatalog() : run (-1), string (-1), floor (-1), position (-1), parameter(), time (), value (0.0) {} /** * Constructor. * * \param run run * \param string string * \param floor floor * \param position position * \param parameter parameter * \param time time * \param value value */ JDatalog(const int run, const int string, const int floor, const int position, const std::string& parameter, const long long int time, const double value) : run (run), string (string), floor (floor), position (position), parameter(parameter), time (time), value (value) {} /** * Get time. * * \return time [s] */ inline double getTime() const { return time * 1.0e-3; } int run; int string; int floor; int position; std::string parameter; long long int time; double value; ClassDef(JDatalog, 2); }; } #endif