Commit f4eb7281 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Fixed ACTS/dd4hep field units

parent d9ed0f15
......@@ -11,6 +11,10 @@
// Interface
#include "JugBase/IGeoSvc.h"
#include "Acts/Utilities/Units.hpp"
#include "DD4hep/DD4hepUnits.h"
//using namespace Acts::UnitLiterals;
// Gaudi
#include "GaudiKernel/MsgStream.h"
......@@ -58,7 +62,7 @@ public:
virtual std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry() 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);
}
;
......
......@@ -3,11 +3,11 @@ from Configurables import ApplicationMgr, EICDataSvc, PodioOutput
podioevent = EICDataSvc("EventDataSvc", inputs=["derp.root"], OutputLevel=DEBUG)
from Configurables import Jug__Base__MCCopier as MCCopier
from Configurables import Jug__Base__InputCopier_dd4pod__Geant4ParticleCollection_dd4pod__Geant4ParticleCollection_ as MCCopier
from Configurables import PodioInput, ReadTestConsumer
podioinput = PodioInput("PodioReader", collections=["mcparticles"], OutputLevel=DEBUG)
checker = ReadTestConsumer()
copier = MCCopier("copier", inputCollection="mcparticles", outputCollection="mcparticles",OutputLevel=DEBUG)
copier = MCCopier("copier", inputCollection="mcparticles", outputCollection="mcparticles2",OutputLevel=DEBUG)
out = PodioOutput("out", filename="test.root")
out.outputCommands = ["keep *"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment