CMS 3D CMS Logo

DDAlgorithmHandler.cc
Go to the documentation of this file.
5 
6 class DDCompactView;
7 
9 {}
10 
12 {}
13 
14 void
16  const DDLogicalPart & parent,
17  const DDNumericArguments & nArgs,
18  const DDVectorArguments & vArgs,
19  const DDMapArguments & mArgs,
20  const DDStringArguments & sArgs,
21  const DDStringVectorArguments & svArgs )
22 {
24  algo_ = std::unique_ptr<DDAlgorithm>( DDAlgorithmFactory::get()->create( algoname_ ));
25  algo_->setParent( parent );
26  algo_->initialize( nArgs, vArgs, mArgs, sArgs, svArgs );
27 }
28 
29 void
31 {
32  algo_->execute( cpv );
33 }
void execute(DDCompactView &)
executes the wrapped algorithm algo_; some pre- and post-processing (exception handling) ...
DDAlgorithmHandler()
creates an DDAlgorithm wrapper
type of data representation of DDCompactView
Definition: DDCompactView.h:90
std::unique_ptr< DDAlgorithm > algo_
the wrapped algorithm object
void initialize(const std::string &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
std::string algoname_
name of the algorithm object
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
T get(const Candidate &c)
Definition: component.h:55