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
26 files
+ 446
242
Compare changes
  • Side-by-side
  • Inline
Files
26
@@ -71,8 +71,20 @@ 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()
#TODO: new configuration does not work with multiple iterations yet, see https://gitlab.cern.ch/lhcb/Alignment/-/issues/17
if opts.humboldt and opts.numiter > 1:
raise ValueError(
"New configuration does not work with multiplie iterations yet! Please try just one iteration"
)
import datetime
t0 = datetime.datetime.now()
@@ -166,8 +178,13 @@ 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