Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DetectorDescription
Algorithm
src
AlgoInit.cc
Go to the documentation of this file.
1
3
// GENERATED FILE, DO NOT MODIFY
5
6
7
#include "
DetectorDescription/Algorithm/src/AlgoInit.h
"
8
#include "
DetectorDescription/Core/interface/DDAlgo.h
"
9
#include "
DetectorDescription/ExprAlgo/interface/AlgoPos.h
"
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
22
#include "
DetectorDescription/Algorithm/src/presh_detectors.h
"
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
global_simpleAngular.h
AlgoPos
class for algorithmic positioning, represents an algorithm
Definition:
AlgoPos.h:27
presh_detectors.h
global_angular_0
Definition:
global_angular.h:36
global_linear_Check
Definition:
global_linear.h:99
DDName
DDName is used to identify DDD entities uniquely.
Definition:
DDName.h:18
global_linear_0
Definition:
global_linear.h:44
DDalgo
DDAlgo DDalgo(const DDName &, AlgoPos *)
Definition:
DDAlgo.cc:117
global_linear.h
global_simpleAngular_2
Definition:
global_simpleAngular.h:99
AlgoInit
void AlgoInit()
Definition:
AlgoInit.cc:28
global_simpleAngular_Check
Definition:
global_simpleAngular.h:134
global_angular_Check
Definition:
global_angular.h:78
DDAlgo.h
AlgoPos.h
global_simpleAngular_1
Definition:
global_simpleAngular.h:78
global_angular.h
AlgoInit.h
global_simpleAngular_0
Definition:
global_simpleAngular.h:57
global_linear_1
Definition:
global_linear.h:66
Generated for CMSSW Reference Manual by
1.8.5