@@ -23,34 +23,34 @@ struct seedfinder_config {
23
23
// without any spacepoints
24
24
// m_config.zMin = -2800.;
25
25
// m_config.zMax = 2800.;
26
- scalar zMin = -1186 * unit<scalar >::mm;
27
- scalar zMax = 1186 * unit<scalar >::mm;
28
- scalar rMax = 200 * unit<scalar >::mm;
26
+ float zMin = -1186 .f * unit<float >::mm;
27
+ float zMax = 1186 .f * unit<float >::mm;
28
+ float rMax = 200 .f * unit<float >::mm;
29
29
// WARNING: if rMin is smaller than impactMax, the bin size will be 2*pi,
30
30
// which will make seeding very slow!
31
- scalar rMin = 33 * unit<scalar >::mm;
31
+ float rMin = 33 .f * unit<float >::mm;
32
32
33
33
// Geometry Settings
34
34
// Detector ROI
35
35
// limiting location of collision region in z
36
- scalar collisionRegionMin = -250 * unit<scalar >::mm;
37
- scalar collisionRegionMax = +250 * unit<scalar >::mm;
38
- scalar phiMin = static_cast <scalar >(-M_PI);
39
- scalar phiMax = static_cast <scalar >(M_PI);
36
+ float collisionRegionMin = -250 * unit<float >::mm;
37
+ float collisionRegionMax = +250 * unit<float >::mm;
38
+ float phiMin = static_cast <float >(-M_PI);
39
+ float phiMax = static_cast <float >(M_PI);
40
40
41
41
// Seed Cuts
42
42
// lower cutoff for seeds in MeV
43
- scalar minPt = 500 .f * unit<scalar >::MeV;
43
+ float minPt = 500 .f * unit<float >::MeV;
44
44
// cot of maximum theta angle
45
45
// equivalent to 2.7 eta (pseudorapidity)
46
- scalar cotThetaMax = 7 .40627f ;
46
+ float cotThetaMax = 7 .40627f ;
47
47
// minimum distance in mm in r between two measurements within one seed
48
- scalar deltaRMin = 1 * unit<scalar >::mm;
48
+ float deltaRMin = 1 * unit<float >::mm;
49
49
// maximum distance in mm in r between two measurements within one seed
50
- scalar deltaRMax = 60 * unit<scalar >::mm;
50
+ float deltaRMax = 60 * unit<float >::mm;
51
51
52
52
// FIXME: this is not used yet
53
- // scalar upperPtResolutionPerSeed = 20* Acts::GeV;
53
+ // float upperPtResolutionPerSeed = 20* Acts::GeV;
54
54
55
55
// the delta for inverse helix radius up to which compared seeds
56
56
// are considered to have a compatible radius. delta of inverse radius
@@ -59,43 +59,43 @@ struct seedfinder_config {
59
59
// compatible
60
60
61
61
// impact parameter in mm
62
- scalar impactMax = 10 . * unit<scalar >::mm;
62
+ float impactMax = 10 . * unit<float >::mm;
63
63
// how many sigmas of scattering angle should be considered?
64
- scalar sigmaScattering = 1.0 ;
64
+ float sigmaScattering = 1.0 ;
65
65
// Upper pt limit for scattering calculation
66
- scalar maxPtScattering = 10 * unit<scalar >::GeV;
66
+ float maxPtScattering = 10 * unit<float >::GeV;
67
67
68
68
// for how many seeds can one SpacePoint be the middle SpacePoint?
69
69
int maxSeedsPerSpM = 20 ;
70
70
71
- scalar bFieldInZ = 1 .99724f * unit<scalar >::T;
71
+ float bFieldInZ = 1 .99724f * unit<float >::T;
72
72
// location of beam in x,y plane.
73
73
// used as offset for Space Points
74
- vector2 beamPos{-.0 * unit<scalar >::mm, -.0 * unit<scalar >::mm};
74
+ vector2 beamPos{-.0 * unit<float >::mm, -.0 * unit<float >::mm};
75
75
76
76
// average radiation lengths of material on the length of a seed. used for
77
77
// scattering.
78
78
// default is 5%
79
79
// TODO: necessary to make amount of material dependent on detector region?
80
- scalar radLengthPerSeed = 0 .05f ;
80
+ float radLengthPerSeed = 0 .05f ;
81
81
// alignment uncertainties, used for uncertainties in the
82
82
// non-measurement-plane of the modules
83
83
// which otherwise would be 0
84
84
// will be added to spacepoint measurement uncertainties (and therefore also
85
85
// multiplied by sigmaError)
86
86
// FIXME: call align1 and align2
87
- scalar zAlign = 0 * unit<scalar >::mm;
88
- scalar rAlign = 0 * unit<scalar >::mm;
87
+ float zAlign = 0 * unit<float >::mm;
88
+ float rAlign = 0 * unit<float >::mm;
89
89
// used for measurement (+alignment) uncertainties.
90
90
// find seeds within 5sigma error ellipse
91
- scalar sigmaError = 5 ;
91
+ float sigmaError = 5 ;
92
92
93
93
// derived values, set on Seedfinder construction
94
- scalar highland = 0 ;
95
- scalar maxScatteringAngle2 = 0 ;
96
- scalar pTPerHelixRadius = 0 ;
97
- scalar minHelixDiameter2 = 0 ;
98
- scalar pT2perRadius = 0 ;
94
+ float highland = 0 ;
95
+ float maxScatteringAngle2 = 0 ;
96
+ float pTPerHelixRadius = 0 ;
97
+ float minHelixDiameter2 = 0 ;
98
+ float pT2perRadius = 0 ;
99
99
100
100
// Multiplicator for the number of phi-bins. The minimum number of phi-bins
101
101
// depends on min_pt, magnetic field: 2*M_PI/(minPT particle
@@ -121,11 +121,11 @@ struct seedfinder_config {
121
121
// Configure unset parameters
122
122
TRACCC_HOST_DEVICE
123
123
void setup () {
124
- highland = 13 .6f * traccc::unit<traccc::scalar >::MeV *
124
+ highland = 13 .6f * traccc::unit<float >::MeV *
125
125
std::sqrt (radLengthPerSeed) *
126
126
(1 .f + 0 .038f * std::log (radLengthPerSeed));
127
127
128
- scalar maxScatteringAngle = highland / minPt;
128
+ float maxScatteringAngle = highland / minPt;
129
129
maxScatteringAngle2 = maxScatteringAngle * maxScatteringAngle;
130
130
131
131
pTPerHelixRadius = bFieldInZ;
@@ -155,29 +155,29 @@ struct spacepoint_grid_config {
155
155
phiBinDeflectionCoverage(finder_config.phiBinDeflectionCoverage) {}
156
156
157
157
// magnetic field in kTesla
158
- scalar bFieldInZ;
158
+ float bFieldInZ;
159
159
// minimum pT to be found by seedfinder in MeV
160
- scalar minPt;
160
+ float minPt;
161
161
// maximum extension of sensitive detector layer relevant for seeding as
162
162
// distance from x=y=0 (i.e. in r) in mm
163
- scalar rMax;
163
+ float rMax;
164
164
// maximum extension of sensitive detector layer relevant for seeding in
165
165
// positive direction in z in mm
166
- scalar zMax;
166
+ float zMax;
167
167
// maximum extension of sensitive detector layer relevant for seeding in
168
168
// negative direction in z in mm
169
- scalar zMin;
169
+ float zMin;
170
170
// maximum distance in r from middle space point to bottom or top spacepoint
171
171
// in mm
172
- scalar deltaRMax;
172
+ float deltaRMax;
173
173
// maximum forward direction expressed as cot(theta)
174
- scalar cotThetaMax;
174
+ float cotThetaMax;
175
175
// impact parameter in mm
176
- scalar impactMax;
176
+ float impactMax;
177
177
// minimum phi value for phiAxis construction
178
- scalar phiMin = static_cast <scalar >(-M_PI);
178
+ float phiMin = static_cast <float >(-M_PI);
179
179
// maximum phi value for phiAxis construction
180
- scalar phiMax = static_cast <scalar >(M_PI);
180
+ float phiMax = static_cast <float >(M_PI);
181
181
// Multiplicator for the number of phi-bins. The minimum number of phi-bins
182
182
// depends on min_pt, magnetic field: 2*M_PI/(minPT particle
183
183
// phi-deflection). phiBinDeflectionCoverage is a multiplier for this
@@ -190,15 +190,15 @@ struct spacepoint_grid_config {
190
190
struct seedfilter_config {
191
191
// the allowed delta between two inverted seed radii for them to be
192
192
// considered compatible.
193
- scalar deltaInvHelixDiameter = 0 .00003f / unit<scalar >::mm;
193
+ float deltaInvHelixDiameter = 0 .00003f / unit<float >::mm;
194
194
// the impact parameters (d0) is multiplied by this factor and subtracted
195
195
// from weight
196
- scalar impactWeightFactor = 1 .f;
196
+ float impactWeightFactor = 1 .f;
197
197
// seed weight increased by this value if a compatible seed has been found.
198
- scalar compatSeedWeight = 200 .f;
198
+ float compatSeedWeight = 200 .f;
199
199
// minimum distance between compatible seeds to be considered for weight
200
200
// boost
201
- scalar deltaRMin = 5 .f * unit<scalar >::mm;
201
+ float deltaRMin = 5 .f * unit<float >::mm;
202
202
// in dense environments many seeds may be found per middle space point.
203
203
// only seeds with the highest weight will be kept if this limit is reached.
204
204
unsigned int maxSeedsPerSpM = 20 ;
@@ -210,17 +210,17 @@ struct seedfilter_config {
210
210
size_t max_triplets_per_spM = 5 ;
211
211
212
212
// seed weight increase
213
- scalar good_spB_min_radius = 150 .f * unit<scalar >::mm;
214
- scalar good_spB_weight_increase = 400 .f;
215
- scalar good_spT_max_radius = 150 .f * unit<scalar >::mm;
216
- scalar good_spT_weight_increase = 200 .f;
213
+ float good_spB_min_radius = 150 .f * unit<float >::mm;
214
+ float good_spB_weight_increase = 400 .f;
215
+ float good_spT_max_radius = 150 .f * unit<float >::mm;
216
+ float good_spT_weight_increase = 200 .f;
217
217
218
218
// bottom sp cut
219
- scalar good_spB_min_weight = 380 .f;
219
+ float good_spB_min_weight = 380 .f;
220
220
221
221
// seed cut
222
- scalar seed_min_weight = 200 .f;
223
- scalar spB_min_radius = 43 .f * unit<scalar >::mm;
222
+ float seed_min_weight = 200 .f;
223
+ float spB_min_radius = 43 .f * unit<float >::mm;
224
224
};
225
225
226
226
} // namespace traccc
0 commit comments