WIP:Ckirfel wip branch
This is a WIP commit.
I am trying to add a class to JetMonitoring to use in PhysicsValidationHistos.py. I wrote the C++ file and the header in parallel to JetKinematicHistos.cxx and JetKinematicHistos.h I saved in athena/Reconstruction/Jet/JetMonitoring/Root and in athena/Reconstruction/Jet/JetMonitoring/JetMonitoring/ respectively.
In PhysicsValidationHistos.py I tried to import the package doing:
from JetMonitoring.JetMonitoringConf import JetAttributeHisto, HistoDefinitionTool, JetMonitoringTool, JetKinematicHistos, JetContainerHistoFiller, JetSubStructureHisto
(JetSubStructureHisto is the new class)
The relevant changes should be in athena/Reconstruction/Jet/JetMonitoring/Root/JetSubStructureHisto.cxx and athena/Reconstruction/Jet/JetMonitoring/JetMonitoring/JetSubStructureHisto.h.
I run by:
asetup (2021-01-11T2101 confirmed working tag) cmake -DATLAS_PACKAGE_FILTER_FILE=../package_filters.txt ../athena/Projects/WorkDir make -j4 source x86_64-centos7-gcc8-opt/setup.sh
Reco_tf.py --inputAODFile /eos/atlas/atlascerngroupdisk/perf-jets/validation/DAOD_PHYSVAL.art.pool.root --outputNTUP_PHYSVALFile physval.root --validationFlags doJet --valid=False
I get the error
PhysicsValidation 11:32:35 ImportError: cannot import name 'JetSubStructureHistos' from 'JetMonitoring.JetMonitoringConf' (/afs/cern.ch/work/c/ckirfel/QT_work/build/x86_64-centos7-gcc8-opt/python/JetMonitoring/JetMonitoringConf.py)
I assume this is a very obvious mistake in importing a class but I do not understand where I could fix this.