1 #ifndef __RUN_PARAM_BASE_H__
2 #define __RUN_PARAM_BASE_H__
12 std::string m_dir_base;
20 RunParamBase(
const std::string type,
const std::string label,
const std::string header);
23 void SetBaseDir(
const std::string dir_base) { m_dir_base = dir_base; }
28 void SetMapID(
const std::string map_id) { m_map_id = map_id; }
43 virtual void Print(std::ostream& os);
66 size_t a0 = std::get<0>(a);
67 size_t a1 = std::get<1>(a);
68 size_t a2 = std::get<2>(a);
69 return (a0 << 32) | (a1 << 16) | a2;
CalibParamBase(const std::string label, const std::string header)
virtual ~CalibParamBase()
ChanMapBase(const std::string label, const std::string header)
std::tuple< short, short, short > RocBoardChan_t
Standard interface with SQL database.
GeomParamBase(const std::string label, const std::string header)
void SetMapID(const std::string map_id)
virtual void WriteDbTable(DbSvc &db)
virtual void Print(std::ostream &os)
RunParamBase(const std::string type, const std::string label, const std::string header)
std::string MapFileName()
std::vector< std::string > LineList
void SetMapIDbyFile(const std::string map_id)
void SetBaseDir(const std::string dir_base)
virtual int WriteFileCont(std::ostream &os)
void SetMapIDbyDB(const std::string map_id)
void WriteToLocalFile(const std::string fn_tsv)
virtual void ReadDbTable(DbSvc &db)
void ReadFromLocalFile(const std::string fn_tsv)
std::string MapTableName()
std::string RangeFileName()
virtual int ReadFileCont(LineList &lines)
Hash of RocBoardChan_t for unordered_map.
size_t operator()(const RocBoardChan_t &a) const