group Analysis object manipulation
Analysis object manipulation
Functions
Name | |
---|---|
void | scale(CounterPtr cnt, CounterAdapter factor) Multiplicatively scale the given counter, cnt, by factor factor. |
void | scale(const std::vector< CounterPtr > & cnts, CounterAdapter factor) |
template <typename T > void | scale(const std::map< T, CounterPtr > & maps, CounterAdapter factor) Iteratively scale the counters in the map maps, by factor factor. |
template <std::size_t array_size> void | scale(const CounterPtr(&) cnts[array_size], CounterAdapter factor) |
void | normalize(Histo1DPtr histo, CounterAdapter norm =1.0, bool includeoverflows =true) Normalize the given histogram, histo, to area = norm. |
void | normalize(const std::vector< Histo1DPtr > & histos, CounterAdapter norm =1.0, bool includeoverflows =true) |
template <typename T > void | normalize(const std::map< T, Histo1DPtr > & maps, CounterAdapter norm =1.0, bool includeoverflows =true) Normalize the histograms in map, maps, to area = norm. |
template <std::size_t array_size> void | normalize(const Histo1DPtr(&) histos[array_size], CounterAdapter norm =1.0, bool includeoverflows =true) |
void | barchart(Histo1DPtr h, Scatter2DPtr s, bool usefocus =false) const |
void | divide(CounterPtr c1, CounterPtr c2, Scatter1DPtr s) const |
void | divide(const YODA::Counter & c1, const YODA::Counter & c2, Scatter1DPtr s) const |
void | divide(const YODA::Histo1D & h1, const YODA::Histo1D & h2, Scatter2DPtr s) const |
void | divide(const YODA::Profile1D & p1, const YODA::Profile1D & p2, Scatter2DPtr s) const |
void | divide(const YODA::Histo2D & h1, const YODA::Histo2D & h2, Scatter3DPtr s) const |
void | divide(const YODA::Profile2D & p1, const YODA::Profile2D & p2, Scatter3DPtr s) const |
void | efficiency(Histo1DPtr h1, Histo1DPtr h2, Scatter2DPtr s) const |
void | efficiency(const YODA::Histo1D & h1, const YODA::Histo1D & h2, Scatter2DPtr s) const |
void | asymm(Histo1DPtr h1, Histo1DPtr h2, Scatter2DPtr s) const |
void | asymm(const YODA::Histo1D & h1, const YODA::Histo1D & h2, Scatter2DPtr s) const |
void | integrate(Histo1DPtr h, Scatter2DPtr s) const |
void | integrate(const Histo1D & h, Scatter2DPtr s) const |
Detailed Description
Todo: Should really be protected: only public to keep BinnedHistogram happy for now…
Functions Documentation
function scale
void scale(
CounterPtr cnt,
CounterAdapter factor
)
Multiplicatively scale the given counter, cnt, by factor factor.
function scale
inline void scale(
const std::vector< CounterPtr > & cnts,
CounterAdapter factor
)
Note: Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo: Use SFINAE for a generic iterable of CounterPtrs
Multiplicatively scale the given counters, cnts, by factor factor.
function scale
template <typename T >
inline void scale(
const std::map< T, CounterPtr > & maps,
CounterAdapter factor
)
Iteratively scale the counters in the map maps, by factor factor.
function scale
template <std::size_t array_size>
inline void scale(
const CounterPtr(&) cnts[array_size],
CounterAdapter factor
)
Todo: YUCK!
function normalize
void normalize(
Histo1DPtr histo,
CounterAdapter norm =1.0,
bool includeoverflows =true
)
Normalize the given histogram, histo, to area = norm.
function normalize
inline void normalize(
const std::vector< Histo1DPtr > & histos,
CounterAdapter norm =1.0,
bool includeoverflows =true
)
Note: Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo: Use SFINAE for a generic iterable of Histo1DPtrs
Normalize the given histograms, histos, to area = norm.
function normalize
template <typename T >
inline void normalize(
const std::map< T, Histo1DPtr > & maps,
CounterAdapter norm =1.0,
bool includeoverflows =true
)
Normalize the histograms in map, maps, to area = norm.
function normalize
template <std::size_t array_size>
inline void normalize(
const Histo1DPtr(&) histos[array_size],
CounterAdapter norm =1.0,
bool includeoverflows =true
)
Todo: YUCK!
function barchart
void barchart(
Histo1DPtr h,
Scatter2DPtr s,
bool usefocus =false
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Todo: Add in-place conversions
Helper for histogram conversion to an inert scatter type
function divide
void divide(
CounterPtr c1,
CounterPtr c2,
Scatter1DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for counter division.
function divide
void divide(
const YODA::Counter & c1,
const YODA::Counter & c2,
Scatter1DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for histogram division with raw YODA objects.
function divide
void divide(
const YODA::Histo1D & h1,
const YODA::Histo1D & h2,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for histogram division with raw YODA objects.
function divide
void divide(
const YODA::Profile1D & p1,
const YODA::Profile1D & p2,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for profile histogram division with raw YODA objects.
function divide
void divide(
const YODA::Histo2D & h1,
const YODA::Histo2D & h2,
Scatter3DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for 2D histogram division with raw YODA objects.
function divide
void divide(
const YODA::Profile2D & p1,
const YODA::Profile2D & p2,
Scatter3DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for 2D profile histogram division with raw YODA objects
function efficiency
void efficiency(
Histo1DPtr h1,
Histo1DPtr h2,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for histogram efficiency calculation.
function efficiency
void efficiency(
const YODA::Histo1D & h1,
const YODA::Histo1D & h2,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for histogram efficiency calculation.
function asymm
void asymm(
Histo1DPtr h1,
Histo1DPtr h2,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for histogram asymmetry calculation.
function asymm
void asymm(
const YODA::Histo1D & h1,
const YODA::Histo1D & h2,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for histogram asymmetry calculation.
function integrate
void integrate(
Histo1DPtr h,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for converting a differential histo to an integral one.
function integrate
void integrate(
const Histo1D & h,
Scatter2DPtr s
) const
Note: Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Helper for converting a differential histo to an integral one.
Updated on 2022-08-07 at 20:17:18 +0100