Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
SharedOffset Class Reference

Definition at line 20 of file SharedOffset.h.

Public Types

using OffsetVec = std::vector< ROOT::Math::KahanSum< double > >
 

Public Member Functions

 SharedOffset ()
 
void clear ()
 
OffsetVecoffsets ()
 
OffsetVecoffsets_save ()
 
void swap (const std::vector< std::size_t > &component_keys)
 When calculating an unbinned likelihood with square weights applied, a different offset is necessary.
 

Private Attributes

std::shared_ptr< OffsetVecoffsets_
 
std::shared_ptr< OffsetVecoffsets_save_
 

#include <RooFit/TestStatistics/SharedOffset.h>

Member Typedef Documentation

◆ OffsetVec

Definition at line 23 of file SharedOffset.h.

Constructor & Destructor Documentation

◆ SharedOffset()

SharedOffset::SharedOffset ( )

Definition at line 15 of file SharedOffset.cxx.

Member Function Documentation

◆ clear()

void SharedOffset::clear ( )

Definition at line 17 of file SharedOffset.cxx.

◆ offsets()

OffsetVec & SharedOffset::offsets ( )
inline

Definition at line 28 of file SharedOffset.h.

◆ offsets_save()

OffsetVec & SharedOffset::offsets_save ( )
inline

Definition at line 29 of file SharedOffset.h.

◆ swap()

void SharedOffset::swap ( const std::vector< std::size_t > &  component_keys)

When calculating an unbinned likelihood with square weights applied, a different offset is necessary.

Similar situations may ask for a separate offset as well. This function switches between the two sets of offset values for the given component keys.

Note
Currently we do not recalculate the offset value, so in practice swapped offsets are zero.

Definition at line 28 of file SharedOffset.cxx.

Member Data Documentation

◆ offsets_

std::shared_ptr<OffsetVec> SharedOffset::offsets_
private

Definition at line 32 of file SharedOffset.h.

◆ offsets_save_

std::shared_ptr<OffsetVec> SharedOffset::offsets_save_
private

Definition at line 33 of file SharedOffset.h.

Libraries for SharedOffset:

The documentation for this class was generated from the following files: