Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Gaudi Gaudi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 121
    • Issues 121
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GaudiGaudi
  • GaudiGaudi
  • Merge requests
  • !1372

Implemented HistogramArray class to ease the use of arrays of histograms

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sebastien Ponce requested to merge sponce_HistogramArray into master Sep 05, 2022
  • Overview 3
  • Commits 1
  • Pipelines 5
  • Changes 4

This allows to instantiate arrays of histos in a single line, and still define custom names and titles :

  HistogramArray<Gaudi::Accumulators::Histogram<2>,10> m_tae_crate
      {this, "crate{}", "Crate {}", {3600, 0, 3600}, {3600, 0, 3600}};

will create 10 2D histograms with names/titles "crate1/Crate 1", "crate2/Crate 2", ... While :

  HistogramArray<Gaudi::Accumulators::WeightedHistogram<1>,5> m_tae_window
      {this,
       [](int n) { return ...; }, // build histo name from index
       [](int n) { return ...; }, //build histo title from index
       {11, -5, 6}};

creates 5 1D weighted histograms with custom names and titles

Units tests are provided.

Edited Sep 05, 2022 by Sebastien Ponce
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: sponce_HistogramArray