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
f4eb7281
Commit
f4eb7281
authored
Oct 21, 2020
by
Whitney Armstrong
Browse files
Fixed ACTS/dd4hep field units
parent
d9ed0f15
Changes
2
Hide whitespace changes
Inline
Side-by-side
JugBase/src/components/GeoSvc.h
View file @
f4eb7281
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
// Interface
// Interface
#include "JugBase/IGeoSvc.h"
#include "JugBase/IGeoSvc.h"
#include "Acts/Utilities/Units.hpp"
#include "DD4hep/DD4hepUnits.h"
//using namespace Acts::UnitLiterals;
// Gaudi
// Gaudi
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/MsgStream.h"
...
@@ -58,7 +62,7 @@ public:
...
@@ -58,7 +62,7 @@ public:
virtual
std
::
shared_ptr
<
const
Acts
::
TrackingGeometry
>
trackingGeometry
()
const
;
virtual
std
::
shared_ptr
<
const
Acts
::
TrackingGeometry
>
trackingGeometry
()
const
;
virtual
double
centralMagneticField
()
const
{
virtual
double
centralMagneticField
()
const
{
return
m_dd4hepgeo
->
field
().
magneticField
({
0
,
0
,
0
}).
z
()
;
return
m_dd4hepgeo
->
field
().
magneticField
({
0
,
0
,
0
}).
z
()
*
(
Acts
::
UnitConstants
::
T
/
dd4hep
::
tesla
);
}
}
;
;
...
...
JugBase/tests/options/col_copier.py
View file @
f4eb7281
...
@@ -3,11 +3,11 @@ from Configurables import ApplicationMgr, EICDataSvc, PodioOutput
...
@@ -3,11 +3,11 @@ from Configurables import ApplicationMgr, EICDataSvc, PodioOutput
podioevent
=
EICDataSvc
(
"EventDataSvc"
,
inputs
=
[
"derp.root"
],
OutputLevel
=
DEBUG
)
podioevent
=
EICDataSvc
(
"EventDataSvc"
,
inputs
=
[
"derp.root"
],
OutputLevel
=
DEBUG
)
from
Configurables
import
Jug__Base__
MC
Copier
as
MCCopier
from
Configurables
import
Jug__Base__
Input
Copier
_dd4pod__Geant4ParticleCollection_dd4pod__Geant4ParticleCollection_
as
MCCopier
from
Configurables
import
PodioInput
,
ReadTestConsumer
from
Configurables
import
PodioInput
,
ReadTestConsumer
podioinput
=
PodioInput
(
"PodioReader"
,
collections
=
[
"mcparticles"
],
OutputLevel
=
DEBUG
)
podioinput
=
PodioInput
(
"PodioReader"
,
collections
=
[
"mcparticles"
],
OutputLevel
=
DEBUG
)
checker
=
ReadTestConsumer
()
checker
=
ReadTestConsumer
()
copier
=
MCCopier
(
"copier"
,
inputCollection
=
"mcparticles"
,
outputCollection
=
"mcparticles"
,
OutputLevel
=
DEBUG
)
copier
=
MCCopier
(
"copier"
,
inputCollection
=
"mcparticles"
,
outputCollection
=
"mcparticles
2
"
,
OutputLevel
=
DEBUG
)
out
=
PodioOutput
(
"out"
,
filename
=
"test.root"
)
out
=
PodioOutput
(
"out"
,
filename
=
"test.root"
)
out
.
outputCommands
=
[
"keep *"
]
out
.
outputCommands
=
[
"keep *"
]
...
...
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