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

#include <hstack.h>

+ Inheritance diagram for ant::hstack:
+ Collaboration diagram for ant::hstack:

Classes

struct  hist_t
 
struct  options_t
 
struct  wraphist_t
 

Public Types

using ModOption_t = analysis::plot::histstyle::ModOption_t
 

Public Member Functions

 hstack (const std::string &name, const std::string &title="", bool simple_=false)
 
bool IsCompatible (const hstack &other) const
 
bool Add (const hstack &other, const double scaling=1)
 
bool Divide (const hstack &other)
 
bool Multiply (const hstack &other)
 
void Rebin (const int group=2)
 
 hstack (hstack &&)=default
 
hstackoperator= (hstack &&)=default
 
hstackoperator<< (TH1 *hist)
 
hstackoperator<< (const drawoption &c)
 
hstackoperator<< (const ModOption_t &option)
 
template<typename Archive >
void serialize (Archive &archive)
 
void UpdateMCScaling ()
 
virtual void Print (const char *option) const override
 
virtual void Print () const
 
virtual void Paint (const char *chopt) override
 
virtual void OpenStackMenu ()
 
virtual void SetGlobalYAxisRange (double low, double high)
 
virtual void FixLegendPosition (bool flag)
 
virtual bool GetFixLegendPosition () const
 
virtual void UseIntelliLegend (bool flag)
 
virtual bool GetUseIntelliLegend () const
 
virtual void UseIntelliTitle (bool flag)
 
virtual bool GetUseIntelliTitle () const
 
virtual void IgnoreEmptyHist (bool flag)
 
virtual bool GetIgnoreEmptyHist () const
 
virtual void ShowEntriesInLegend (bool flag)
 
virtual bool GetShowEntriesInLegend () const
 
virtual void UseYAxisEntriesPerBin (bool flag)
 
virtual bool GetUseYAxisEntriesPerBin () const
 
virtual Long64_t Merge (TCollection *li, TFileMergeInfo *info) override
 
 hstack ()
 
virtual ~hstack ()
 
ClassDef(hstack, 0) private hstackoperator= (const hstack &)
 

Static Public Attributes

static options_t GlobalOptions
 

Protected Types

using hists_t = std::vector< hist_t >
 

Protected Member Functions

void checkHists ()
 
void buildIntelliTitle ()
 
bool hist_operation (const hstack &other, std::function< bool(TH1 *, const TH1 *)> operation)
 

Static Protected Member Functions

static void updateIntelliLegend (TLegend &legend, std::list< wraphist_t > wraphists)
 

Protected Attributes

hists_t hists
 
ModOption_t current_option
 
std::list< std::string > cutnames
 
std::string origtitle
 
bool simple
 
std::unique_ptr< TLegend > intellilegend
 
std::unique_ptr< TPaveText > intellititle
 

Friends

struct hstack_Menu
 
std::ostream & operator<< (std::ostream &s, const hstack &o)
 

Member Typedef Documentation

◆ hists_t

using ant::hstack::hists_t = std::vector<hist_t>
protected

◆ ModOption_t

Constructor & Destructor Documentation

◆ hstack() [1/3]

hstack::hstack ( const std::string &  name,
const std::string &  title = "",
bool  simple_ = false 
)

◆ hstack() [2/3]

ant::hstack::hstack ( hstack &&  )
default

◆ hstack() [3/3]

hstack::hstack ( )

◆ ~hstack()

hstack::~hstack ( )
virtual

Member Function Documentation

◆ Add()

bool hstack::Add ( const hstack other,
const double  scaling = 1 
)

◆ buildIntelliTitle()

void hstack::buildIntelliTitle ( )
protected

◆ checkHists()

void hstack::checkHists ( )
protected

◆ Divide()

bool hstack::Divide ( const hstack other)

◆ FixLegendPosition()

void hstack::FixLegendPosition ( bool  flag)
virtual

◆ GetFixLegendPosition()

bool hstack::GetFixLegendPosition ( ) const
virtual

◆ GetIgnoreEmptyHist()

bool hstack::GetIgnoreEmptyHist ( ) const
virtual

◆ GetShowEntriesInLegend()

bool hstack::GetShowEntriesInLegend ( ) const
virtual

◆ GetUseIntelliLegend()

bool hstack::GetUseIntelliLegend ( ) const
virtual

◆ GetUseIntelliTitle()

bool hstack::GetUseIntelliTitle ( ) const
virtual

◆ GetUseYAxisEntriesPerBin()

bool hstack::GetUseYAxisEntriesPerBin ( ) const
virtual

◆ hist_operation()

bool hstack::hist_operation ( const hstack other,
std::function< bool(TH1 *, const TH1 *)>  operation 
)
protected
Todo:
think of a better way to identify if a ROOT shell is started

◆ IgnoreEmptyHist()

void hstack::IgnoreEmptyHist ( bool  flag)
virtual

◆ IsCompatible()

bool hstack::IsCompatible ( const hstack other) const

◆ Merge()

Long64_t hstack::Merge ( TCollection *  li,
TFileMergeInfo *  info 
)
overridevirtual

◆ Multiply()

bool hstack::Multiply ( const hstack other)

◆ OpenStackMenu()

void hstack::OpenStackMenu ( )
virtual

◆ operator<<() [1/3]

hstack & hstack::operator<< ( TH1 *  hist)

◆ operator<<() [2/3]

hstack & hstack::operator<< ( const drawoption c)

◆ operator<<() [3/3]

hstack & hstack::operator<< ( const ModOption_t option)

◆ operator=() [1/2]

hstack& ant::hstack::operator= ( hstack &&  )
default

◆ operator=() [2/2]

ClassDef (hstack, 0) private hstack& ant::hstack::operator= ( const hstack )

◆ Paint()

void hstack::Paint ( const char *  chopt)
overridevirtual

◆ Print() [1/2]

void hstack::Print ( const char *  option) const
overridevirtual

◆ Print() [2/2]

void hstack::Print ( ) const
virtual

◆ Rebin()

void hstack::Rebin ( const int  group = 2)

◆ serialize()

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

◆ SetGlobalYAxisRange()

void hstack::SetGlobalYAxisRange ( double  low,
double  high 
)
virtual

◆ ShowEntriesInLegend()

void hstack::ShowEntriesInLegend ( bool  flag)
virtual

◆ updateIntelliLegend()

void hstack::updateIntelliLegend ( TLegend &  legend,
std::list< wraphist_t wraphists 
)
staticprotected

◆ UpdateMCScaling()

void hstack::UpdateMCScaling ( )

◆ UseIntelliLegend()

void hstack::UseIntelliLegend ( bool  flag)
virtual

◆ UseIntelliTitle()

void hstack::UseIntelliTitle ( bool  flag)
virtual

◆ UseYAxisEntriesPerBin()

void hstack::UseYAxisEntriesPerBin ( bool  flag)
virtual

Friends And Related Function Documentation

◆ hstack_Menu

friend struct hstack_Menu
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const hstack o 
)
friend
Todo:
print current options...?

Member Data Documentation

◆ current_option

ModOption_t ant::hstack::current_option
protected

◆ cutnames

std::list<std::string> ant::hstack::cutnames
protected

◆ GlobalOptions

hstack::options_t hstack::GlobalOptions
static

◆ hists

hists_t ant::hstack::hists
protected

◆ intellilegend

std::unique_ptr<TLegend> ant::hstack::intellilegend
protected

◆ intellititle

std::unique_ptr<TPaveText> ant::hstack::intellititle
protected

◆ origtitle

std::string ant::hstack::origtitle
protected

◆ simple

bool ant::hstack::simple
protected

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