mist-hep 0.1.0
ROOT-backed analysis helpers built on mist
Loading...
Searching...
No Matches
mist::hep::histo Namespace Reference

Namespaces

namespace  detail
 

Functions

owned::root_ptr< TH1F > project_y (const TGraph &source, int n_bins, double min, double max, const char *name="histo_project_y")
 
void fill_profile (TProfile &target, const TGraph &source)
 
void fill_persistence (TH2 &target, const TGraph &source)
 
void fill_persistence (TH2 &target, const TF1 &f)
 
void fill_from_interval (TH1 &target, const TGraph &source, double min, double max)
 
void fill_from_interval (TH1 &target, const TProfile &source, double min, double max)
 
template<typename TH >
int dimension (const TH *h)
 
template<typename TH1Type , typename TH2Type >
int pair_dimension (const TH1Type *a, const TH2Type *b)
 
template<typename TH1Type , typename TH2Type >
bool is_consistent (const TH1Type *a, const TH2Type *b)
 
std::vector< double > uniform_binning (double width, double low, double high)
 
std::vector< double > log_binning (int n_bins, double low, double high)
 
template<typename TH1Type = TH1F, typename T >
requires std::is_arithmetic_v<T>
owned::root_ptr< TH1Type > make_th1_from_vector (const std::vector< T > &data, int n_bins=-1, double offset=0.0, double low=0.0, double high=0.0)
 
template<typename TH >
owned::root_ptr< TH > offset (const TH *h, double value, bool absolute=false)
 
template<typename TH >
owned::root_ptr< TH > absolute (const TH *h)
 
template<typename TH >
owned::root_ptr< TH > scale (const TH *h, double factor, double factor_error=0.0)
 

Function Documentation

◆ absolute()

template<typename TH >
owned::root_ptr< TH > mist::hep::histo::absolute ( const TH *  h)

◆ dimension()

template<typename TH >
int mist::hep::histo::dimension ( const TH *  h)

◆ fill_from_interval() [1/2]

void mist::hep::histo::fill_from_interval ( TH1 &  target,
const TGraph &  source,
double  min,
double  max 
)
inline

◆ fill_from_interval() [2/2]

void mist::hep::histo::fill_from_interval ( TH1 &  target,
const TProfile &  source,
double  min,
double  max 
)
inline

◆ fill_persistence() [1/2]

void mist::hep::histo::fill_persistence ( TH2 &  target,
const TF1 &  f 
)
inline

◆ fill_persistence() [2/2]

void mist::hep::histo::fill_persistence ( TH2 &  target,
const TGraph &  source 
)
inline

◆ fill_profile()

void mist::hep::histo::fill_profile ( TProfile &  target,
const TGraph &  source 
)
inline

◆ is_consistent()

template<typename TH1Type , typename TH2Type >
bool mist::hep::histo::is_consistent ( const TH1Type *  a,
const TH2Type *  b 
)

◆ log_binning()

std::vector< double > mist::hep::histo::log_binning ( int  n_bins,
double  low,
double  high 
)
inline

◆ make_th1_from_vector()

template<typename TH1Type = TH1F, typename T >
requires std::is_arithmetic_v<T>
owned::root_ptr< TH1Type > mist::hep::histo::make_th1_from_vector ( const std::vector< T > &  data,
int  n_bins = -1,
double  offset = 0.0,
double  low = 0.0,
double  high = 0.0 
)

◆ offset()

template<typename TH >
owned::root_ptr< TH > mist::hep::histo::offset ( const TH *  h,
double  value,
bool  absolute = false 
)

◆ pair_dimension()

template<typename TH1Type , typename TH2Type >
int mist::hep::histo::pair_dimension ( const TH1Type *  a,
const TH2Type *  b 
)

◆ project_y()

owned::root_ptr< TH1F > mist::hep::histo::project_y ( const TGraph &  source,
int  n_bins,
double  min,
double  max,
const char *  name = "histo_project_y" 
)
inline

◆ scale()

template<typename TH >
owned::root_ptr< TH > mist::hep::histo::scale ( const TH *  h,
double  factor,
double  factor_error = 0.0 
)

◆ uniform_binning()

std::vector< double > mist::hep::histo::uniform_binning ( double  width,
double  low,
double  high 
)
inline