Skip to content
Snippets Groups Projects

Prototype of new alignment configuration

Merged Florian Reiss requested to merge pyconf into master
Compare and Show latest version
16 files
+ 551
26
Compare changes
  • Side-by-side
  • Inline
Files
16
@@ -71,6 +71,12 @@ parser.add_option(
help="name of histogram file",
default=None)
parser.add_option(
"--humboldt",
action="store_true",
help="use Humboldt option files",
default=False)
(opts, args) = parser.parse_args()
import datetime
@@ -166,8 +172,12 @@ if UseDD4Hep:
cppyy.gbl.gSystem.Load("libTAlignmentLib.so")
cppyy.gbl.gInterpreter.Declare('#include "TAlignment/AlignAlgorithmHelper.h"')
alignAlg = appMgr.algorithm("myAlignmentAlgorithm")
#alignAlg.XmlWriters = tAlign.xmlWritersAsString()
#TODO: there is a problem with calling also calling the AlignmentAlgorithm just "Alignment" in the new configuration, see https://gitlab.cern.ch/lhcb/Alignment/-/issues/17
if not opts.humboldt:
alignAlg = appMgr.algorithm("Alignment")
alignAlg.XmlWriters = tAlign.xmlWritersAsString()
else:
alignAlg = appMgr.algorithm("HumboldtAlignAlgorithm")
fitterAlg = appMgr.algorithm("ForwardFitterAlg")
for i in range(opts.numiter):
Loading