CMS 3D CMS Logo

DDAlgorithmHandler.h
Go to the documentation of this file.
1 #ifndef DD_DDALGORITHMHANDLER_H
2 #define DD_DDALGORITHMHANDLER_H
3 
4 #include <string>
5 
9 
10 class DDAlgorithm;
11 class DDCompactView;
12 
14 
16 {
17  public:
20 
22 
24  void initialize( const DDName & algoName,
25  const DDLogicalPart & parent,
26  const DDNumericArguments & nArgs,
27  const DDVectorArguments & vArgs,
28  const DDMapArguments & mArgs,
29  const DDStringArguments & sArgs,
30  const DDStringVectorArguments & svArgs);
31 
33  void execute( DDCompactView& );
34 
35  private:
36  std::unique_ptr<DDAlgorithm> algo_;
37 };
38 
39 #endif // DD_DDALGORITHMHANDLER_H
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) ...
wrapper around a DDAlgorithm
DDAlgorithmHandler()
creates an DDAlgorithm wrapper
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
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93