CMS 3D CMS Logo

DDTestVectorAlgo.cc
Go to the documentation of this file.
1 #include "DD4hep/DetFactoryHelper.h"
4 
5 using namespace std;
6 using namespace dd4hep;
7 using namespace cms;
8 
10  cms::DDNamespace ns(ctxt, e, true);
11  DDAlgoArguments args(ctxt, e);
12  vector<string> materials = args.vecStr("MaterialNames");
13 
14  return 1;
15 }
16 
17 // first argument is the type from the xml file
18 DECLARE_DDCMS_DETELEMENT(DDCMS_test_DDTestVectorAlgo, algorithm)
static long algorithm(Detector &, cms::DDParsingContext &ctxt, xml_h e, SensitiveDetector &)
Namespace of DDCMS conversion namespace.
std::vector< std::string > vecStr(const std::string &nam) const
Shortcut to access vector<string> arguments.
#define DECLARE_DDCMS_DETELEMENT(name, func)
Definition: DDPlugins.h:30