Skip to content

Code organization issues in SimGeneral/MixingModule/interface/DecayGraph.h #50738

@makortel

Description

@makortel

Spinning off #50731 (comment)

  • The IfLogDebug() macro is intended for run-time condition evaluation, so IfLogDebug(DEBUG, ...) (with DEBUG defined at compile time) is kind-of unintended use of that
  • The DecayGraph.h has unnamed namespace, generally those should be avoided in headers
  • The DecayGraph.h declares messageCategoryGraph_, I'd argue messageCategoryGraph_ is a rather generic name, although it is in the aforementioned anonymous namespace so it won't create ODR violations in practice
  • The DecayGraph.h seems to be used only in SimGeneral/CaloAnalysis/plugins. How about moving DecayGraph.h there so that these patterns would not spread elsewhere?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions