CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlgoInit.cc
Go to the documentation of this file.
1 
3 // GENERATED FILE, DO NOT MODIFY
5 
6 
10 // include all from XML generated algorithms
11 
12 
13 #include "global_linear.h"
14 
15 
16 #include "global_angular.h"
17 
18 
19 #include "global_simpleAngular.h"
20 
21 
23 
24 
25 
26 // add a line for each generated algorithm to register the
27 // algorithm with DDCore
28 void AlgoInit()
29 {
30  static bool isInit = false;
31  if (isInit) return;
32  isInit = true;
33 
34  // placeholder pointer
35  AlgoPos * algo = 0;
36 
37  // generated:
38  // for each <Algorithm> in each ADL-instance the code generator has to provide code
39  // similar to that below ...
40 
41  // create the representation of the algorithm
42 
43 
44  algo = new AlgoPos(new global_linear_Check);
45  // create the implementations of the algorithm & register them with the representation
46 
47 
48  new global_linear_0(algo,"base in the input parameters");
49 
50 
51  new global_linear_1(algo,"without base in input parameters");
52 
53 
54  // register the representation at DDCore
55  DDalgo(DDName("linear", "global"), algo);
56 
57 
58  algo = new AlgoPos(new global_angular_Check);
59  // create the implementations of the algorithm & register them with the representation
60 
61 
62  new global_angular_0(algo,"divrange");
63 
64 
65  // register the representation at DDCore
66  DDalgo(DDName("angular", "global"), algo);
67 
68 
69  algo = new AlgoPos(new global_simpleAngular_Check);
70  // create the implementations of the algorithm & register them with the representation
71 
72 
73  new global_simpleAngular_0(algo,"number no delta");
74 
75 
76  new global_simpleAngular_1(algo,"delta no number");
77 
78 
79  new global_simpleAngular_2(algo,"delta AND number");
80 
81 
82  // register the representation at DDCore
83  DDalgo(DDName("simpleAngular", "global"), algo);
84 
85 }
86 
87 
class for algorithmic positioning, represents an algorithm
Definition: AlgoPos.h:27
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:18
DDAlgo DDalgo(const DDName &, AlgoPos *)
Definition: DDAlgo.cc:117
void AlgoInit()
Definition: AlgoInit.cc:28