ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MultiHisto< ht > Class Template Reference

#include <MultiHisto.h>

Inheritance diagram for MultiHisto< ht >:
Collaboration diagram for MultiHisto< ht >:

Public Member Functions

 MultiHisto (const ht &histo_model, const std::vector< std::string > &nameDiv, const std::vector< int > &nDiv, const std::vector< double * > &binsDiv)
 
 MultiHisto (const ht &histo_model, const std::vector< std::string > &nameDiv, const std::vector< std::vector< float > > &binsDiv)
 
 ~MultiHisto ()
 
int Fill (double xvar, double yvar, const std::vector< double > &pars)
 
int Fill (double xvar, double yvar, const std::vector< float > &pars)
 
int FillFromFile (TDirectory *histodir=0)
 
int Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 
int Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
int WriteAndCount (int *nhistos, int *nbins) const
 
virtual const char * GetTitle () const
 
virtual const char * GetName () const
 
unsigned int GetNhistos () const
 
virtual void Draw (const Option_t *option="")
 
virtual void Draw (const int color, const Option_t *option="")
 
virtual void Draw (std::vector< TCanvas * > &c1, const int color, const Option_t *option="")
 
int GetGlobalIndex (const std::vector< int > &indexes) const
 
int GetGlobalIndex (const std::vector< double > &pars) const
 
int GetGlobalIndex (const std::vector< float > &pars) const
 
std::vector< int > GetDivisionsIndexes (int globalindex) const
 
std::vector< int > GetDivisionsIndexes (const std::vector< double > &pars) const
 
std::vector< int > GetDivisionsIndexes (const std::vector< float > &pars) const
 
ht * GetHisto (int globalindex)
 
ht * GetHisto (const std::vector< int > &indexes)
 

Private Member Functions

 MultiHisto ()
 
std::string ComposeName (const std::vector< int > &indexes)
 
std::string ComposeTitle (const std::vector< int > &indexes)
 
std::string TitleString (int idiv, int index)
 
std::string NameString (int idiv, int index)
 

Private Attributes

const ht * m_model
 
std::vector< ht * > m_myhistos
 
std::vector< int > m_div_Nbins
 
std::vector< std::string > m_div_names
 
std::vector< double * > m_div_bins
 

Detailed Description

template<class ht>
class MultiHisto< ht >

Definition at line 16 of file MultiHisto.h.

Constructor & Destructor Documentation

◆ MultiHisto() [1/3]

template<class ht >
MultiHisto< ht >::MultiHisto ( const ht &  histo_model,
const std::vector< std::string > &  nameDiv,
const std::vector< int > &  nDiv,
const std::vector< double * > &  binsDiv 
)

◆ MultiHisto() [2/3]

template<class ht >
MultiHisto< ht >::MultiHisto ( const ht &  histo_model,
const std::vector< std::string > &  nameDiv,
const std::vector< std::vector< float > > &  binsDiv 
)

◆ ~MultiHisto()

template<class ht >
MultiHisto< ht >::~MultiHisto ( )

◆ MultiHisto() [3/3]

template<class ht >
MultiHisto< ht >::MultiHisto ( )
inlineprivate

Definition at line 61 of file MultiHisto.h.

61 {};

Member Function Documentation

◆ ComposeName()

template<class ht >
std::string MultiHisto< ht >::ComposeName ( const std::vector< int > &  indexes)
private

◆ ComposeTitle()

template<class ht >
std::string MultiHisto< ht >::ComposeTitle ( const std::vector< int > &  indexes)
private

◆ Draw() [1/3]

template<class ht >
virtual void MultiHisto< ht >::Draw ( const int  color,
const Option_t *  option = "" 
)
virtual

◆ Draw() [2/3]

template<class ht >
virtual void MultiHisto< ht >::Draw ( const Option_t *  option = "")
virtual

◆ Draw() [3/3]

template<class ht >
virtual void MultiHisto< ht >::Draw ( std::vector< TCanvas * > &  c1,
const int  color,
const Option_t *  option = "" 
)
virtual

◆ Fill() [1/2]

template<class ht >
int MultiHisto< ht >::Fill ( double  xvar,
double  yvar,
const std::vector< double > &  pars 
)

◆ Fill() [2/2]

template<class ht >
int MultiHisto< ht >::Fill ( double  xvar,
double  yvar,
const std::vector< float > &  pars 
)

◆ FillFromFile()

template<class ht >
int MultiHisto< ht >::FillFromFile ( TDirectory *  histodir = 0)

◆ GetDivisionsIndexes() [1/3]

template<class ht >
std::vector<int> MultiHisto< ht >::GetDivisionsIndexes ( const std::vector< double > &  pars) const

◆ GetDivisionsIndexes() [2/3]

template<class ht >
std::vector<int> MultiHisto< ht >::GetDivisionsIndexes ( const std::vector< float > &  pars) const

◆ GetDivisionsIndexes() [3/3]

template<class ht >
std::vector<int> MultiHisto< ht >::GetDivisionsIndexes ( int  globalindex) const

◆ GetGlobalIndex() [1/3]

template<class ht >
int MultiHisto< ht >::GetGlobalIndex ( const std::vector< double > &  pars) const

◆ GetGlobalIndex() [2/3]

template<class ht >
int MultiHisto< ht >::GetGlobalIndex ( const std::vector< float > &  pars) const

◆ GetGlobalIndex() [3/3]

template<class ht >
int MultiHisto< ht >::GetGlobalIndex ( const std::vector< int > &  indexes) const

◆ GetHisto() [1/2]

template<class ht >
ht* MultiHisto< ht >::GetHisto ( const std::vector< int > &  indexes)

◆ GetHisto() [2/2]

template<class ht >
ht* MultiHisto< ht >::GetHisto ( int  globalindex)

◆ GetName()

template<class ht >
virtual const char* MultiHisto< ht >::GetName ( ) const
virtual

◆ GetNhistos()

template<class ht >
unsigned int MultiHisto< ht >::GetNhistos ( ) const

◆ GetTitle()

template<class ht >
virtual const char* MultiHisto< ht >::GetTitle ( ) const
virtual

◆ NameString()

template<class ht >
std::string MultiHisto< ht >::NameString ( int  idiv,
int  index 
)
private

◆ TitleString()

template<class ht >
std::string MultiHisto< ht >::TitleString ( int  idiv,
int  index 
)
private

◆ Write() [1/2]

template<class ht >
int MultiHisto< ht >::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
)

◆ Write() [2/2]

template<class ht >
int MultiHisto< ht >::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
) const

◆ WriteAndCount()

template<class ht >
int MultiHisto< ht >::WriteAndCount ( int *  nhistos,
int *  nbins 
) const

Member Data Documentation

◆ m_div_bins

template<class ht >
std::vector<double*> MultiHisto< ht >::m_div_bins
private

Definition at line 70 of file MultiHisto.h.

◆ m_div_names

template<class ht >
std::vector<std::string> MultiHisto< ht >::m_div_names
private

Definition at line 69 of file MultiHisto.h.

◆ m_div_Nbins

template<class ht >
std::vector<int> MultiHisto< ht >::m_div_Nbins
private

Definition at line 68 of file MultiHisto.h.

◆ m_model

template<class ht >
const ht* MultiHisto< ht >::m_model
private

Definition at line 64 of file MultiHisto.h.

◆ m_myhistos

template<class ht >
std::vector<ht*> MultiHisto< ht >::m_myhistos
private

Definition at line 65 of file MultiHisto.h.


The documentation for this class was generated from the following file: