Skip to content

BCEfficiencyFitter's usage of BCDataSet #256

Open

Description

@greenwald

BCEfficiencyFitter creates a BCDataSet in the constructor for the purposes (I believe) of creating the error band during marginalization. But the data set is not used as an actual data set during the calculation---the class actually uses the histograms passed to it for calculation. This is misleading since a user could believe that if he or she changes the data set, the calculation will change accordingly, when actually one needs to change the histograms.

Activity

  1. added this to the 1.1 milestone on Apr 6, 2018
  2. fredRos commented on Apr 10, 2018

    @fredRos
    Contributor

    I think there is nothing to in this case because all subclasses of BCFitter have a specific data format: histogram, graph etc. that is distinct from BCDataSet. In addition, we don't allow the user to access the data set.

    In BCFitter.h:

    class BCFitter {
    ...
    private:
        /** Don't allow user to accidentally set the data set,
         * as it is used internally. */
        using BCModel::SetDataSet;
        using BCModel::GetDataSet;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions