DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
PropertyTable.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/PropertyTable.h>
16 #include <DD4hep/NamedObject.h>
17 #include <DD4hep/Detector.h>
18 #include <DD4hep/Printout.h>
19 
20 #include <DD4hep/detail/Handle.inl>
21 
22 // C/C++ includes
23 #include <sstream>
24 #include <iomanip>
25 
26 using namespace dd4hep;
27 
29 
32  const std::string& table_name,
33  const std::string& property_name,
34  size_t num_rows,
35  size_t num_cols)
36 {
37  std::unique_ptr<Object> table(new Object(table_name.c_str(), num_rows, num_cols));
38  table->SetTitle(property_name.c_str());
39  description.manager().AddGDMLMatrix(m_element=table.release());
40 }
dd4hep::Detector::manager
virtual TGeoManager & manager() const =0
Access the geometry manager of this instance.
dd4hep::PropertyTable::Object
TGDMLMatrix Object
Definition: PropertyTable.h:34
Detector.h
dd4hep::PropertyTable::PropertyTable
PropertyTable()=default
Default constructor.
NamedObject.h
dd4hep::Handle< TGDMLMatrix >::m_element
TGDMLMatrix * m_element
Single and only data member: Reference to the actual element.
Definition: Handle.h:93
PropertyTable.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::Detector
The main interface to the dd4hep detector description package.
Definition: Detector.h:90
DD4HEP_INSTANTIATE_HANDLE
DD4HEP_INSTANTIATE_HANDLE(TGDMLMatrix)
Printout.h