Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
d256321b
Commit
d256321b
authored
Oct 19, 2020
by
Whitney Armstrong
Browse files
Adding method to geosvc for Field
parent
f4513352
Changes
3
Show whitespace changes
Inline
Side-by-side
JugBase/JugBase/IGeoSvc.h
View file @
d256321b
...
...
@@ -35,6 +35,8 @@ public:
virtual
dd4hep
::
Detector
*
detector
()
=
0
;
virtual
std
::
shared_ptr
<
const
dd4hep
::
rec
::
CellIDPositionConverter
>
cellIDPositionConverter
()
const
=
0
;
virtual
std
::
shared_ptr
<
const
Acts
::
TrackingGeometry
>
trackingGeometry
()
const
=
0
;
virtual
double
centralMagneticField
()
const
=
0
;
// receive Geant4 Geometry
//virtual G4VUserDetectorConstruction* getGeant4Geo() = 0;
...
...
JugBase/src/components/GeoSvc.h
View file @
d256321b
...
...
@@ -57,6 +57,13 @@ public:
*/
virtual
std
::
shared_ptr
<
const
Acts
::
TrackingGeometry
>
trackingGeometry
()
const
;
virtual
double
centralMagneticField
()
const
{
return
m_dd4hepgeo
->
field
().
magneticField
({
0
,
0
,
0
}).
z
();
}
;
private:
/// ACTS Tracking Geometry
...
...
JugReco/src/components/TrackFindingAlgorithm.cpp
View file @
d256321b
...
...
@@ -72,7 +72,7 @@ namespace Jug::Reco {
<<
"Make sure you have GeoSvc and SimSvc in the right order in the configuration."
<<
endmsg
;
return
StatusCode
::
FAILURE
;
}
m_BField
=
std
::
make_shared
<
Acts
::
ConstantBField
>
(
Acts
::
Vector3D
{
0.0
,
0.0
,
1.0
_T
});
m_BField
=
std
::
make_shared
<
Acts
::
ConstantBField
>
(
Acts
::
Vector3D
{
0.0
,
0.0
,
m_geoSvc
->
centralMagneticField
()
});
m_fieldctx
=
BFieldVariant
(
m_BField
);
m_sourcelinkSelectorCfg
=
{
{
Acts
::
GeometryIdentifier
(),
{
15
,
10
}},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment