CMS 3D CMS Logo

DDAlgorithmHandler.cc
Go to the documentation of this file.
5 
6 class DDCompactView;
7 
8 void
10  const DDLogicalPart & parent,
11  const DDNumericArguments & nArgs,
12  const DDVectorArguments & vArgs,
13  const DDMapArguments & mArgs,
14  const DDStringArguments & sArgs,
15  const DDStringVectorArguments & svArgs )
16 {
17  algo_ = std::unique_ptr<DDAlgorithm>(DDAlgorithmFactory::get()->create( algoName.fullname()));
18  algo_->setParent( parent );
19  algo_->initialize( nArgs, vArgs, mArgs, sArgs, svArgs );
20 }
21 
22 void
24 {
25  algo_->execute( cpv );
26 }
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:15
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
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
T get(const Candidate &c)
Definition: component.h:55