The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Histograming::Sink::details::ProfileWrapper< TP > Struct Template Reference

helper Wrapper around TProfileX to be able to fill it More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Histograming/Sink/Utils.h>

Inheritance diagram for Gaudi::Histograming::Sink::details::ProfileWrapper< TP >:
Collaboration diagram for Gaudi::Histograming::Sink::details::ProfileWrapper< TP >:

Public Member Functions

template<typename... Args>
 ProfileWrapper (Args &&... args)
 ProfileWrapper (ProfileWrapper const &)=delete
ProfileWrapper & operator= (ProfileWrapper const &)=delete
 ProfileWrapper (ProfileWrapper const &&)=delete
ProfileWrapper & operator= (ProfileWrapper const &&)=delete
void setBinNEntries (Int_t i, Int_t n)
void setBinW2 (Int_t i, Double_t v)
Double_t getBinW2 (Int_t i)

Detailed Description

template<typename TP>
struct Gaudi::Histograming::Sink::details::ProfileWrapper< TP >

helper Wrapper around TProfileX to be able to fill it

Definition at line 307 of file Utils.h.

Constructor & Destructor Documentation

◆ ProfileWrapper() [1/3]

template<typename TP>
template<typename... Args>
Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::ProfileWrapper ( Args &&... args)
inline

Definition at line 309 of file Utils.h.

309 : TP( std::forward<Args>( args )... ) {
310 // When the static function TH1::SetDefaultSumw2 had been called (passing true), `Sumw2(true)` is automatically
311 // called by the constructor of TProfile. This is a problem because in the profiles in Gaudi::Accumulators we do
312 // not keep track of the sum of squares of weights and consequently don't set fBinSumw2 of the TProfile, which
313 // in turn leads to a self-inconsistent TProfile object. The "fix" is to disable sum of squares explicitly.
314 this->Sumw2( false );
315 }
helper Wrapper around TProfileX to be able to fill it
Definition Utils.h:307

◆ ProfileWrapper() [2/3]

template<typename TP>
Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::ProfileWrapper ( ProfileWrapper< TP > const & )
delete

◆ ProfileWrapper() [3/3]

template<typename TP>
Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::ProfileWrapper ( ProfileWrapper< TP > const && )
delete

Member Function Documentation

◆ getBinW2()

template<typename TP>
Double_t Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::getBinW2 ( Int_t i)
inline

Definition at line 322 of file Utils.h.

322{ return this->fSumw2.fArray[i]; }

◆ operator=() [1/2]

template<typename TP>
ProfileWrapper & Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::operator= ( ProfileWrapper< TP > const && )
delete

◆ operator=() [2/2]

template<typename TP>
ProfileWrapper & Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::operator= ( ProfileWrapper< TP > const & )
delete

◆ setBinNEntries()

template<typename TP>
void Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::setBinNEntries ( Int_t i,
Int_t n )
inline

Definition at line 320 of file Utils.h.

320{ this->fBinEntries.fArray[i] = n; }

◆ setBinW2()

template<typename TP>
void Gaudi::Histograming::Sink::details::ProfileWrapper< TP >::setBinW2 ( Int_t i,
Double_t v )
inline

Definition at line 321 of file Utils.h.

321{ this->fSumw2.fArray[i] = v; }

The documentation for this struct was generated from the following file:
  • GaudiKernel/include/Gaudi/Histograming/Sink/Utils.h