rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
Rivet::FillCollector< YODA::BinnedDbn< DbnN, AxisT... > > Class Template Reference

FillCollector specialisation for all BinnedDbn-like AOs. More...

#include <RivetYODA.hh>

Inheritance diagram for Rivet::FillCollector< YODA::BinnedDbn< DbnN, AxisT... > >:

Public Types

using YAO = YODA::BinnedDbn< DbnN, AxisT... >
 
using Ptr = shared_ptr< FillCollector< YAO > >
 

Public Member Functions

 FillCollector (typename YAO::Ptr yao)
 
int fill (typename YAO::FillType &&fillCoords, const double weight=1.0, const double fraction=1.0)
 
void reset () noexcept
 Empty the subevent stack (for start of new event group).
 
const Fills< YAO > & fills () const
 Access the fill info subevent stack.
 

Detailed Description

template<size_t DbnN, typename... AxisT>
class Rivet::FillCollector< YODA::BinnedDbn< DbnN, AxisT... > >

FillCollector specialisation for all BinnedDbn-like AOs.

Constructor & Destructor Documentation

◆ FillCollector()

template<size_t DbnN, typename... AxisT>
Rivet::FillCollector< YODA::BinnedDbn< DbnN, AxisT... > >::FillCollector ( typename YAO::Ptr  yao)
inline

Constructor

We call the cheaper constructor based on the binning to avoid copying of the bin content. The underlying binning object is still used in analize() by many routines, e.g. to query numBins() or to loop over bins() with subsequent calls to bin xMid() etc.

Member Function Documentation

◆ fill()

template<size_t DbnN, typename... AxisT>
int Rivet::FillCollector< YODA::BinnedDbn< DbnN, AxisT... > >::fill ( typename YAO::FillType &&  fillCoords,
const double  weight = 1.0,
const double  fraction = 1.0 
)
inline

Overloaded fill method, which stores Fill info until Multiplexer<T>::collapseEventGroup() is called.

Todo:
Do we need to deal with users using fractions directly?

The documentation for this class was generated from the following file:
  • /Users/chrisg/software/rivet/include/Rivet/Tools/RivetYODA.hh