Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:17:02

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
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 // C/C++ includes
0023 #include <sstream>
0024 #include <iomanip>
0025 
0026 using namespace dd4hep;
0027 
0028 DD4HEP_INSTANTIATE_HANDLE(TGDMLMatrix);
0029 
0030 /// Initializing constructor.
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 }