File indexing completed on 2025-01-30 09:17:02
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 #include <sstream>
0024 #include <iomanip>
0025
0026 using namespace dd4hep;
0027
0028 DD4HEP_INSTANTIATE_HANDLE(TGDMLMatrix);
0029
0030
0031 PropertyTable::PropertyTable(Detector& description,
0032 const std::string& table_name,
0033 const std::string& property_name,
0034 size_t num_rows,
0035 size_t num_cols)
0036 {
0037 std::unique_ptr<Object> table(new Object(table_name.c_str(), num_rows, num_cols));
0038 table->SetTitle(property_name.c_str());
0039 description.manager().AddGDMLMatrix(m_element=table.release());
0040 }