CMS 3D CMS Logo

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); }
PluginFactory.h
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
DDAlgorithmHandler::algo_
std::unique_ptr< DDAlgorithm > algo_
the wrapped algorithm object
Definition: DDAlgorithmHandler.h:35
HIPAlignmentAlgorithm_cfi.algoName
algoName
Definition: HIPAlignmentAlgorithm_cfi.py:5
DDAlgorithmHandler::execute
void execute(DDCompactView &)
executes the wrapped algorithm algo_; some pre- and post-processing (exception handling)
Definition: DDAlgorithmHandler.cc:20
DDAlgorithmHandler.h
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
get
#define get
ReadMapType< double >
DDAlgorithm.h
DDAlgorithmHandler::initialize
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
Definition: DDAlgorithmHandler.cc:8
DDAlgorithmFactory.h
class-composition.parent
parent
Definition: class-composition.py:88