Bug #3321
Services do not call preBeginRun, endJob etc...
100%
Description
I look at the description in the mu2e webpage, which describes services (http://mu2e.fnal.gov/public/hep/computing/Services.shtml).
I see that the in "Making New Services" paragraph there is preBeginRun method, which I guess is supposed to be called by art. I tried that and other methods like endJob and they don't get called. It's either the description on the webpage is wrong or it doesn't work.
History
#1 Updated by Denis Perevalov about 8 years ago
Actually, I see that it's being used in Geometry service. So, at least it probably works there.
Again, it's hard for me to figure out why exactly it's not called for my services, because I don't know what art is up to.
#2 Updated by Denis Perevalov about 8 years ago
- % Done changed from 0 to 100
Denis Perevalov wrote:
I look at the description in the mu2e webpage, which describes services (http://mu2e.fnal.gov/public/hep/computing/Services.shtml).
I see that the in "Making New Services" paragraph there is preBeginRun method, which I guess is supposed to be called by art. I tried that and other methods like endJob and they don't get called. It's either the description on the webpage is wrong or it doesn't work.
Ahhh, I think I got it!
I guess the key is to register the art::ActivityRegistry.
Sorry for reporting this issue
#3 Updated by Christopher Green about 8 years ago
- Status changed from New to Rejected