Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuMIEXTRetriever subrun warning message #415

Open
miquelnebot opened this issue Jan 29, 2024 · 6 comments
Open

NuMIEXTRetriever subrun warning message #415

miquelnebot opened this issue Jan 29, 2024 · 6 comments
Assignees

Comments

@miquelnebot
Copy link
Contributor

''' /exp/sbnd/app/users/mnebot/sbnbuild/BuildAreas/v09_82_02_sbn_26.01.2024_060702/srcs/sbncode/sbncode/BeamSpillInfoRetriever/NuMIEXTRetriever/NuMIEXTRetriever_module.cc: In member function 'virtual void sbn::NuMIEXTRetriever::endSubRun(art::SubRun&)':
/exp/sbnd/app/users/mnebot/sbnbuild/BuildAreas/v09_82_02_sbn_26.01.2024_060702/srcs/sbncode/sbncode/BeamSpillInfoRetriever/NuMIEXTRetriever/NuMIEXTRetriever_module.cc:150:9: warning: 'art::PutHandle art::SubRun::put(std::unique_ptr<_Tp>&&, const std::string&) [with PROD = std::vectorsbn::EXTCountInfo; std::string = std::__cxx11::basic_string]' is deprecated: \n\nart warning: The SubRun::put(...) function without a product semantic is deprecated.\n Please adjust your usage to include the correct semantic (e.g.):\n\n subrun.put(move(product), art::fullSubRun());\n subrun.put(move(product), instanceName, art::subRunFragment());\n\n Generally, SubRun::put calls made in beginSubRun should include art::fullSubRun();\n SubRun::put calls made in endSubRun should use art::subRunFragment().\n Contact [email protected] for assistance or details.\n\n [-Wdeprecated-declarations]
150 | sr.put(std::move(p));
| ~~~~~~^~~~~~~~~~~~~~
In file included from /cvmfs/larsoft.opensciencegrid.org/products/art/v3_12_00/include/art/Framework/Principal/Event.h:15,
from /exp/sbnd/app/users/mnebot/sbnbuild/BuildAreas/v09_82_02_sbn_26.01.2024_060702/srcs/sbncode/sbncode/BeamSpillInfoRetriever/NuMIEXTRetriever/NuMIEXTRetriever_module.cc:12:
/cvmfs/larsoft.opensciencegrid.org/products/art/v3_12_00/include/art/Framework/Principal/SubRun.h:126:3: note: declared here
126 | SubRun::put(std::unique_ptr&& edp, std::string const& instance)
| ^~~~~~
'''

@jzennamo
Copy link
Contributor

OK, so I took a look and compared it to the BNB version of the package and I tried to replicate all the differences to see if any of them would make this warning go away but that didn't work.

Big picture we don't see this warning with the BNB packages and I do not understand why...

@jzennamo
Copy link
Contributor

Also, I added @brucehoward-physics

@jzennamo
Copy link
Contributor

Obviously, I was editing the wrong module....

Bruce set me straight and I'll try this again

@jzennamo
Copy link
Contributor

OK it looks like there needs to be a simple change made:

sr.put(std::move(p));

needs to change to:

sr.put(std::move(p), art::subRunFragment());

I'll put this into a PR.

@jzennamo
Copy link
Contributor

Here you go:
#416

@ibsafa
Copy link
Contributor

ibsafa commented May 29, 2024

This issue has a linked PR that was merged. @jzennamo can you confirm this is no longer an issue so i can go ahead and close it? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants