Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:56

0001 #include "DetectorDescription/Core/interface/DDAlgorithmHandler.h"
0002 #include "DetectorDescription/Core/interface/DDAlgorithm.h"
0003 #include "DetectorDescription/Core/interface/DDAlgorithmFactory.h"
0004 #include "FWCore/PluginManager/interface/PluginFactory.h"
0005 
0006 class DDCompactView;
0007 
0008 void DDAlgorithmHandler::initialize(const DDName& algoName,
0009                                     const DDLogicalPart& parent,
0010                                     const DDNumericArguments& nArgs,
0011                                     const DDVectorArguments& vArgs,
0012                                     const DDMapArguments& mArgs,
0013                                     const DDStringArguments& sArgs,
0014                                     const DDStringVectorArguments& svArgs) {
0015   algo_ = DDAlgorithmFactory::get()->create(algoName.fullname());
0016   algo_->setParent(parent);
0017   algo_->initialize(nArgs, vArgs, mArgs, sArgs, svArgs);
0018 }
0019 
0020 void DDAlgorithmHandler::execute(DDCompactView& cpv) { algo_->execute(cpv); }