gordonwatts / hl_tables

A high level tables dispatcher for putting together mulitple tables executors
0 stars 0 forks source link

arguments to function's aren't passed down to hep_tables #14

Open gordonwatts opened 4 years ago

gordonwatts commented 4 years ago

A line like this:

    ds.loose_jets['emf'] = ds.loose_jets.getAttribute('EMFrac')

Produces an error like this:

[ 33%] Building CXX object analysis/CMakeFiles/analysisLib.dir/Root/query.cxx.o
/home/atlas/rel/source/analysis/Root/query.cxx: In member function 'virtual StatusCode query::execute()':
/home/atlas/rel/source/analysis/Root/query.cxx:94:51: error: no matching function for call to 'xAOD::Jet_v1::getAttribute() const'
         _col1333.push_back(i_obj331->getAttribute());
                                                   ^
In file included from /usr/AnalysisBase/21.2.102/InstallArea/x86_64-centos7-gcc8-opt/src/Event/xAOD/xAODJet/xAODJet/Jet.h:12,
                 from /usr/AnalysisBase/21.2.102/InstallArea/x86_64-centos7-gcc8-opt/src/Event/xAOD/xAODJet/xAODJet/JetContainer.h:12,
                 from /home/atlas/rel/source/analysis/Root/query.cxx:6:
/usr/AnalysisBase/21.2.102/InstallArea/x86_64-centos7-gcc8-opt/src/Event/xAOD/xAODJet/xAODJet/versions/Jet_v1.h:213:10: note: candidate: 'template<class T> bool xAOD::Jet_v1::getAttribute(xAOD::Jet_v1::AttributeID, T&) const'
     bool getAttribute( AttributeID type, T & value ) const ;
gordonwatts commented 4 years ago

I know this works in func_adl as I've used it. I do not know if the error is in hep_tables or in hl_tables - but we should probably make sure there are tests at both levels for this.