ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
RooStats::HistFactory::HistFactoryNavigation Class Reference

Definition at line 18 of file HistFactoryNavigation.h.

Public Member Functions

 HistFactoryNavigation (ModelConfig *mc)
 
 HistFactoryNavigation (const std::string &File, const std::string &WorkspaceName="combined", const std::string &ModelConfigName="ModelConfig")
 
 HistFactoryNavigation (RooAbsPdf *model, RooArgSet *observables)
 
virtual ~HistFactoryNavigation ()
 
void PrintState ()
 
void PrintState (const std::string &channel)
 
void PrintParameters (bool IncludeConstantParams=false)
 
void PrintChannelParameters (const std::string &channel, bool IncludeConstantParams=false)
 
void PrintSampleParameters (const std::string &channel, const std::string &sample, bool IncludeConstantParams=false)
 
void PrintSampleComponents (const std::string &channel, const std::string &sample)
 
void PrintDataSet (RooDataSet *data, const std::string &channel="")
 
void PrintModelAndData (RooDataSet *data)
 
double GetBinValue (int bin, const std::string &channel)
 
double GetBinValue (int bin, const std::string &channel, const std::string &sample)
 
TH1GetSampleHist (const std::string &channel, const std::string &sample, const std::string &name="")
 
TH1GetChannelHist (const std::string &channel, const std::string &name="")
 
TH1GetDataHist (RooDataSet *data, const std::string &channel, const std::string &name="")
 
THStackGetChannelStack (const std::string &channel, const std::string &name="")
 
void DrawChannel (const std::string &channel, RooDataSet *data=NULL)
 
RooAbsRealSampleFunction (const std::string &channel, const std::string &sample)
 
RooArgSetGetObservableSet (const std::string &channel)
 
RooAbsRealGetConstraintTerm (const std::string &parameter)
 
double GetConstraintUncertainty (const std::string &parameter)
 
void ReplaceNode (const std::string &ToReplace, RooAbsArg *ReplaceWith)
 
void SetConstant (const std::string &regExpr=".*", bool constant=true)
 
void SetMaxBinToPrint (int max)
 
int GetMaxBinToPrint () const
 
void SetMinBinToPrint (int min)
 
int GetMinBinToPrint () const
 
RooAbsPdfGetModel () const
 
RooAbsPdfGetChannelPdf (const std::string &channel)
 
std::vector< std::string > GetChannelSampleList (const std::string &channel)
 
RooRealVarvar (const std::string &varName) const
 

Protected Member Functions

void SetPrintWidths (const std::string &channel)
 
void _GetNodes (ModelConfig *mc)
 
void _GetNodes (RooAbsPdf *model, const RooArgSet *observables)
 
void PrintMultiDimHist (TH1 *hist, int bin_print_width)
 
TH1MakeHistFromRooFunction (RooAbsReal *func, RooArgList vars, std::string name="Hist")
 
std::map< std::string,
RooAbsReal * > 
GetSampleFunctionMap (const std::string &channel)
 

Private Member Functions

RooAbsArgfindChild (const std::string &name, RooAbsReal *parent) const
 
RooArgSet _GetAllProducts (RooProduct *node)
 

Private Attributes

RooAbsPdffModel
 
RooArgSetfObservables
 
int _minBinToPrint
 
int _maxBinToPrint
 
int _label_print_width
 
int _bin_print_width
 
std::vector< std::string > fChannelNameVec
 
std::map< std::string,
RooAbsPdf * > 
fChannelPdfMap
 
std::map< std::string,
RooAbsPdf * > 
fChannelSumNodeMap
 
std::map< std::string,
RooArgSet * > 
fChannelObservMap
 
std::map< std::string,
std::map< std::string,
RooAbsReal * > > 
fChannelSampleFunctionMap
 

#include <RooStats/HistFactory/HistFactoryNavigation.h>

Constructor & Destructor Documentation

RooStats::HistFactory::HistFactoryNavigation::HistFactoryNavigation ( ModelConfig mc)

Definition at line 31 of file HistFactoryNavigation.cxx.

RooStats::HistFactory::HistFactoryNavigation::HistFactoryNavigation ( const std::string &  File,
const std::string &  WorkspaceName = "combined",
const std::string &  ModelConfigName = "ModelConfig" 
)

Definition at line 75 of file HistFactoryNavigation.cxx.

RooStats::HistFactory::HistFactoryNavigation::HistFactoryNavigation ( RooAbsPdf model,
RooArgSet observables 
)

Definition at line 141 of file HistFactoryNavigation.cxx.

virtual RooStats::HistFactory::HistFactoryNavigation::~HistFactoryNavigation ( )
inlinevirtual

Definition at line 30 of file HistFactoryNavigation.h.

Member Function Documentation

RooArgSet RooStats::HistFactory::HistFactoryNavigation::_GetAllProducts ( RooProduct node)
private

Definition at line 728 of file HistFactoryNavigation.cxx.

Referenced by PrintSampleComponents().

void RooStats::HistFactory::HistFactoryNavigation::_GetNodes ( ModelConfig mc)
protected

Definition at line 1241 of file HistFactoryNavigation.cxx.

Referenced by HistFactoryNavigation().

void RooStats::HistFactory::HistFactoryNavigation::_GetNodes ( RooAbsPdf model,
const RooArgSet observables 
)
protected

Definition at line 761 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::DrawChannel ( const std::string &  channel,
RooDataSet data = NULL 
)

Definition at line 712 of file HistFactoryNavigation.cxx.

RooAbsArg * RooStats::HistFactory::HistFactoryNavigation::findChild ( const std::string &  name,
RooAbsReal parent 
) const
private
double RooStats::HistFactory::HistFactoryNavigation::GetBinValue ( int  bin,
const std::string &  channel 
)

Definition at line 474 of file HistFactoryNavigation.cxx.

double RooStats::HistFactory::HistFactoryNavigation::GetBinValue ( int  bin,
const std::string &  channel,
const std::string &  sample 
)

Definition at line 487 of file HistFactoryNavigation.cxx.

TH1 * RooStats::HistFactory::HistFactoryNavigation::GetChannelHist ( const std::string &  channel,
const std::string &  name = "" 
)

Definition at line 573 of file HistFactoryNavigation.cxx.

Referenced by GetBinValue(), and PrintState().

RooAbsPdf * RooStats::HistFactory::HistFactoryNavigation::GetChannelPdf ( const std::string &  channel)

Definition at line 195 of file HistFactoryNavigation.cxx.

Referenced by PrintChannelParameters().

std::vector< std::string > RooStats::HistFactory::HistFactoryNavigation::GetChannelSampleList ( const std::string &  channel)

Definition at line 618 of file HistFactoryNavigation.cxx.

Referenced by GetChannelStack().

THStack * RooStats::HistFactory::HistFactoryNavigation::GetChannelStack ( const std::string &  channel,
const std::string &  name = "" 
)

Definition at line 633 of file HistFactoryNavigation.cxx.

Referenced by DrawChannel().

RooAbsReal * RooStats::HistFactory::HistFactoryNavigation::GetConstraintTerm ( const std::string &  parameter)

Definition at line 946 of file HistFactoryNavigation.cxx.

Referenced by GetConstraintUncertainty().

double RooStats::HistFactory::HistFactoryNavigation::GetConstraintUncertainty ( const std::string &  parameter)

Definition at line 978 of file HistFactoryNavigation.cxx.

TH1 * RooStats::HistFactory::HistFactoryNavigation::GetDataHist ( RooDataSet data,
const std::string &  channel,
const std::string &  name = "" 
)

Definition at line 654 of file HistFactoryNavigation.cxx.

Referenced by DrawChannel(), and PrintDataSet().

int RooStats::HistFactory::HistFactoryNavigation::GetMaxBinToPrint ( ) const
inline

Definition at line 102 of file HistFactoryNavigation.h.

int RooStats::HistFactory::HistFactoryNavigation::GetMinBinToPrint ( ) const
inline

Definition at line 105 of file HistFactoryNavigation.h.

RooAbsPdf* RooStats::HistFactory::HistFactoryNavigation::GetModel ( ) const
inline

Definition at line 108 of file HistFactoryNavigation.h.

RooArgSet * RooStats::HistFactory::HistFactoryNavigation::GetObservableSet ( const std::string &  channel)
std::map< std::string, RooAbsReal * > RooStats::HistFactory::HistFactoryNavigation::GetSampleFunctionMap ( const std::string &  channel)
protected

Definition at line 501 of file HistFactoryNavigation.cxx.

Referenced by GetChannelHist(), PrintState(), and SetPrintWidths().

TH1 * RooStats::HistFactory::HistFactoryNavigation::GetSampleHist ( const std::string &  channel,
const std::string &  sample,
const std::string &  name = "" 
)

Definition at line 555 of file HistFactoryNavigation.cxx.

Referenced by GetBinValue(), GetChannelStack(), and PrintState().

TH1 * RooStats::HistFactory::HistFactoryNavigation::MakeHistFromRooFunction ( RooAbsReal func,
RooArgList  vars,
std::string  name = "Hist" 
)
protected
void RooStats::HistFactory::HistFactoryNavigation::PrintChannelParameters ( const std::string &  channel,
bool  IncludeConstantParams = false 
)

Definition at line 390 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::PrintDataSet ( RooDataSet data,
const std::string &  channel = "" 
)

Definition at line 301 of file HistFactoryNavigation.cxx.

Referenced by PrintModelAndData().

void RooStats::HistFactory::HistFactoryNavigation::PrintModelAndData ( RooDataSet data)

Definition at line 339 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::PrintMultiDimHist ( TH1 hist,
int  bin_print_width 
)
protected

Definition at line 172 of file HistFactoryNavigation.cxx.

Referenced by PrintDataSet(), PrintSampleComponents(), and PrintState().

void RooStats::HistFactory::HistFactoryNavigation::PrintParameters ( bool  IncludeConstantParams = false)

Definition at line 356 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::PrintSampleComponents ( const std::string &  channel,
const std::string &  sample 
)

Definition at line 1087 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::PrintSampleParameters ( const std::string &  channel,
const std::string &  sample,
bool  IncludeConstantParams = false 
)

Definition at line 431 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::PrintState ( )

Definition at line 277 of file HistFactoryNavigation.cxx.

Referenced by PrintModelAndData().

void RooStats::HistFactory::HistFactoryNavigation::PrintState ( const std::string &  channel)

Definition at line 217 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::ReplaceNode ( const std::string &  ToReplace,
RooAbsArg ReplaceWith 
)

Definition at line 1047 of file HistFactoryNavigation.cxx.

RooAbsReal * RooStats::HistFactory::HistFactoryNavigation::SampleFunction ( const std::string &  channel,
const std::string &  sample 
)
void RooStats::HistFactory::HistFactoryNavigation::SetConstant ( const std::string &  regExpr = ".*",
bool  constant = true 
)

Definition at line 1248 of file HistFactoryNavigation.cxx.

void RooStats::HistFactory::HistFactoryNavigation::SetMaxBinToPrint ( int  max)
inline

Definition at line 101 of file HistFactoryNavigation.h.

void RooStats::HistFactory::HistFactoryNavigation::SetMinBinToPrint ( int  min)
inline

Definition at line 104 of file HistFactoryNavigation.h.

void RooStats::HistFactory::HistFactoryNavigation::SetPrintWidths ( const std::string &  channel)
protected

Definition at line 285 of file HistFactoryNavigation.cxx.

Referenced by PrintModelAndData().

RooRealVar * RooStats::HistFactory::HistFactoryNavigation::var ( const std::string &  varName) const

Definition at line 1289 of file HistFactoryNavigation.cxx.

Member Data Documentation

int RooStats::HistFactory::HistFactoryNavigation::_bin_print_width
private

Definition at line 170 of file HistFactoryNavigation.h.

Referenced by PrintDataSet(), and PrintState().

int RooStats::HistFactory::HistFactoryNavigation::_label_print_width
private

Definition at line 169 of file HistFactoryNavigation.h.

Referenced by PrintDataSet(), PrintState(), and SetPrintWidths().

int RooStats::HistFactory::HistFactoryNavigation::_maxBinToPrint
private
int RooStats::HistFactory::HistFactoryNavigation::_minBinToPrint
private
std::vector<std::string> RooStats::HistFactory::HistFactoryNavigation::fChannelNameVec
private

Definition at line 173 of file HistFactoryNavigation.h.

Referenced by _GetNodes(), PrintDataSet(), PrintModelAndData(), and PrintState().

std::map< std::string, RooArgSet*> RooStats::HistFactory::HistFactoryNavigation::fChannelObservMap
private

Definition at line 182 of file HistFactoryNavigation.h.

Referenced by _GetNodes(), and GetObservableSet().

std::map< std::string, RooAbsPdf* > RooStats::HistFactory::HistFactoryNavigation::fChannelPdfMap
private

Definition at line 176 of file HistFactoryNavigation.h.

Referenced by _GetNodes(), and GetChannelPdf().

std::map< std::string, std::map< std::string, RooAbsReal*> > RooStats::HistFactory::HistFactoryNavigation::fChannelSampleFunctionMap
private
std::map< std::string, RooAbsPdf* > RooStats::HistFactory::HistFactoryNavigation::fChannelSumNodeMap
private

Definition at line 179 of file HistFactoryNavigation.h.

Referenced by _GetNodes().

RooAbsPdf* RooStats::HistFactory::HistFactoryNavigation::fModel
private
RooArgSet* RooStats::HistFactory::HistFactoryNavigation::fObservables
private
Collaboration diagram for RooStats::HistFactory::HistFactoryNavigation:
[legend]

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