File indexing completed on 2025-07-03 07:54:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <DD4hep/PropertyTable.h>
0016 #include <DD4hep/NamedObject.h>
0017 #include <DD4hep/Detector.h>
0018 #include <DD4hep/Printout.h>
0019
0020 #include <DD4hep/detail/Handle.inl>
0021
0022
0023
0024 using namespace dd4hep;
0025
0026 DD4HEP_INSTANTIATE_HANDLE(TGDMLMatrix);
0027
0028
0029 PropertyTable::PropertyTable(Detector& description,
0030 const std::string& table_name,
0031 const std::string& property_name,
0032 size_t num_rows,
0033 size_t num_cols)
0034 {
0035 std::unique_ptr<Object> table(new Object(table_name.c_str(), num_rows, num_cols));
0036 table->SetTitle(property_name.c_str());
0037 description.manager().AddGDMLMatrix(m_element=table.release());
0038 }