CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DDAlgorithmHandler.cc
Go to the documentation of this file.
5 
6 class DDCompactView;
7 
9  const DDLogicalPart& parent,
10  const DDNumericArguments& nArgs,
11  const DDVectorArguments& vArgs,
12  const DDMapArguments& mArgs,
13  const DDStringArguments& sArgs,
14  const DDStringVectorArguments& svArgs) {
15  algo_ = DDAlgorithmFactory::get()->create(algoName.fullname());
16  algo_->setParent(parent);
17  algo_->initialize(nArgs, vArgs, mArgs, sArgs, svArgs);
18 }
19 
20 void DDAlgorithmHandler::execute(DDCompactView& cpv) { algo_->execute(cpv); }
void initialize(const DDName &algoName, const DDLogicalPart &parent, const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &svArgs)
initializes the wrapped algorithm algo_ and does some pre- and post-processing
void execute(DDCompactView &)
executes the wrapped algorithm algo_; some pre- and post-processing (exception handling) ...
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:17
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
std::unique_ptr< DDAlgorithm > algo_
the wrapped algorithm object
const std::string fullname() const
Definition: DDName.h:43
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
#define get