#ifndef RUNINFO #define RUNINFO #include "JROOT/JTreeParameters.hh" struct run_info: public TObject { run_info(): det_id(0), run_id(0), daq_livetime(0), mc_livetime(0) {} run_info(const int det_id, const int run_id, const double daq_livetime, const double mc_livetime): det_id(det_id), run_id(run_id), daq_livetime(daq_livetime), mc_livetime(mc_livetime) {} virtual ~run_info() {} ClassDef(run_info, 1); int det_id; int run_id; double daq_livetime; double mc_livetime; }; /** * \param type data type * \return TTree parameters */ inline JROOT::JTreeParameters getTreeParameters(const JLANG::JType& type) { return JROOT::JTreeParameters("RUNINFO", "run_info", "", 2, 65536, 2); } #endif