Closed tvami closed 2 months ago
Not as trivial as I thought:
enableLogging
in the respective headers I get a long msg about lambda functions not working, see details below:The ldmx_log
macro just assumes the the logger theLog_
is in-scope. enableLogging
is a macro that defines theLog_
for a specific class as a member variable. You should put enableLogging
within a class declaration and, if not possible, just make sure theLog_
is created in-scope somewhere.
Specifically, I'm guessing the "lambda stuff" you are seeing is from
where we are applying the same (lambda) function to each XsecBiasingOperator. You will need to update this lambda to capture the local variables ([] -> [&]
) so that this is available to retrieve theLog_
.
(copied from slack for posterity).
Is your feature request related to a problem? Please describe.
Now that I'm debugging with setting the logging to very high numbers, I still see the "Adding .. to parallel world" msgs, etc.
Describe the solution you'd like
I'd like to move https://github.com/LDMX-Software/ldmx-sw/blob/trunk/SimCore/src/SimCore/ParallelWorld.cxx#L27 and https://github.com/LDMX-Software/ldmx-sw/blob/trunk/SimCore/src/SimCore/DetectorConstruction.cxx#L141 under the
ldmx_log(debug)