Skip to content

Conversation

@luketpickering
Copy link
Member

image

use like:

  samplePDFDUNEBeamFD::AddProjection(
      "mysillyvar", [](dunemc_base const &dunemcSample, int iEvent) {
        return (dunemcSample.rw_erec_shifted[iEvent] -
                dunemcSample.rw_erec_lep[iEvent]) /
               (dunemcSample.true_q0[iEvent]);
      });

static function on the analysis subclass (as it needs to know the 'structs type'), functions need to be registered before being instantiated by the factory

then in config:

Binning:
  Axes:
    - VarStr: "ELepRec" 
      Uniform: [25,0,5]
      Title: "E_{lep.}^{Rec} [GeV]"
    - VarStr: "mysillyvar" 
      Uniform: [25,0,5]
      Title: "dumbdumb"

- a very simple proof of concept this is not integrated at all and meant to display
the user API and not how it would be implemented, comments welcome on the concept
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants