Skip to content

invMass to energyBranch Name code duplication #45

@ldcorpe

Description

@ldcorpe

This is not urgent, but there is a duplication of nearly identical code which should be factorised, since otherwise if one wants to add a new energy Branch, one needs to change it ins several places instead of just one.

The two places are:

TString ZFit_class::GetEnergyVarName(TString invMass_name){

and:
std::string energyBranchNameFromInvMassName(std::string invMass_var){

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions