ant
A2 ant: class-based analysis framework
ant::hstack::hist_t Struct Reference

#include <hstack.h>

+ Collaboration diagram for ant::hstack::hist_t:

Public Member Functions

 hist_t (TH1 *ptr, const ModOption_t &option)
 
 hist_t ()
 
bool isDataHist () const
 
std::string getTitleKey () const
 
template<typename Archive >
void load (Archive &archive)
 
template<typename Archive >
void save (Archive &archive) const
 

Static Public Member Functions

static TH1 * GetPtr (const std::string &path)
 
static std::string GetPath (const TH1 *ptr)
 

Public Attributes

std::string Path
 
TH1 * Ptr = nullptr
 
ModOption_t Option
 

Constructor & Destructor Documentation

◆ hist_t() [1/2]

ant::hstack::hist_t::hist_t ( TH1 *  ptr,
const ModOption_t option 
)
inline

◆ hist_t() [2/2]

ant::hstack::hist_t::hist_t ( )
inline

Member Function Documentation

◆ GetPath()

string hstack::hist_t::GetPath ( const TH1 *  ptr)
static

◆ GetPtr()

TH1 * hstack::hist_t::GetPtr ( const std::string &  path)
static

◆ getTitleKey()

string hstack::hist_t::getTitleKey ( ) const

◆ isDataHist()

bool hstack::hist_t::isDataHist ( ) const
Todo:
find better way to detect which histograms should NOT be scaled or drawn with error bar in legend. For now, we assume that data is always drawn with error bars.

◆ load()

template<typename Archive >
void ant::hstack::hist_t::load ( Archive &  archive)
inline

◆ save()

template<typename Archive >
void ant::hstack::hist_t::save ( Archive &  archive) const
inline

Member Data Documentation

◆ Option

ModOption_t ant::hstack::hist_t::Option

◆ Path

std::string ant::hstack::hist_t::Path

◆ Ptr

TH1* ant::hstack::hist_t::Ptr = nullptr

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