MuonRecoValidationTool was retrieving the MuonTruthSummaryTool whether or not...
MuonRecoValidationTool was retrieving the MuonTruthSummaryTool whether or not it was running on MC, using the default values it returns when running on data. This less-than-ideal behavior is no longer feasible now that the MuonTruthSummaryTool declares in its initialization that it will be retrieving some truth containers. Therefore I added a configurable isMC flag to MuonRecoValidationTool, which now retrieves the MuonTruthSummaryTool only if it is running on MC and disables it otherwise. I also added isMC protection to all cases in the code where the MuonTruthSummaryTool is called, and updated the configuration to set the flag correctly. Probably the MuonRecoValidationTool should be reworked a bit so that it handles this in a more logical fashion, but this is outside the scope of this MR. Former-commit-id: c43313bd
Showing
- MuonSpectrometer/MuonReconstruction/MuonRecTools/MuonTruthTools/src/MuonTruthSummaryTool.cxx 1 addition, 0 deletions.../MuonRecTools/MuonTruthTools/src/MuonTruthSummaryTool.cxx
- MuonSpectrometer/MuonValidation/MuonRecValidation/MuonTrackPerformance/src/MuonRecoValidationTool.cxx 39 additions, 14 deletions...ation/MuonTrackPerformance/src/MuonRecoValidationTool.cxx
- MuonSpectrometer/MuonValidation/MuonRecValidation/MuonTrackPerformance/src/MuonRecoValidationTool.h 2 additions, 0 deletions...idation/MuonTrackPerformance/src/MuonRecoValidationTool.h
- Reconstruction/MuonIdentification/MuonCombinedRecExample/python/MuGirlTagTool.py 3 additions, 0 deletions...tification/MuonCombinedRecExample/python/MuGirlTagTool.py
Please register or sign in to comment