Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very Draft: Picker24/feature/user projections #16

Open
wants to merge 1 commit into
base: picker24/feature/globalbin_vectors_kineparamtidy
Choose a base branch
from

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.

1 participant