ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
RooStats::HistFactory::HistFactoryNavigation Class Reference

Definition at line 19 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>

+ Collaboration diagram for RooStats::HistFactory::HistFactoryNavigation:

Constructor & Destructor Documentation

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

Definition at line 30 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 74 of file HistFactoryNavigation.cxx.

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

Definition at line 140 of file HistFactoryNavigation.cxx.

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

Definition at line 31 of file HistFactoryNavigation.h.

Member Function Documentation

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

Definition at line 727 of file HistFactoryNavigation.cxx.

Referenced by PrintSampleComponents().

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

Definition at line 1240 of file HistFactoryNavigation.cxx.

Referenced by HistFactoryNavigation().

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

Definition at line 760 of file HistFactoryNavigation.cxx.

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

Definition at line 711 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 473 of file HistFactoryNavigation.cxx.

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

Definition at line 486 of file HistFactoryNavigation.cxx.

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

Definition at line 572 of file HistFactoryNavigation.cxx.

Referenced by GetBinValue(), and PrintState().

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

Definition at line 194 of file HistFactoryNavigation.cxx.

Referenced by PrintChannelParameters().

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

Definition at line 617 of file HistFactoryNavigation.cxx.

Referenced by GetChannelStack().

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

Definition at line 632 of file HistFactoryNavigation.cxx.

Referenced by DrawChannel().

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

Definition at line 945 of file HistFactoryNavigation.cxx.

Referenced by GetConstraintUncertainty().

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

Definition at line 977 of file HistFactoryNavigation.cxx.

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

Definition at line 653 of file HistFactoryNavigation.cxx.

Referenced by DrawChannel(), and PrintDataSet().

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

Definition at line 103 of file HistFactoryNavigation.h.

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

Definition at line 106 of file HistFactoryNavigation.h.

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

Definition at line 109 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 500 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 554 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 389 of file HistFactoryNavigation.cxx.

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

Definition at line 300 of file HistFactoryNavigation.cxx.

Referenced by PrintModelAndData().

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

Definition at line 338 of file HistFactoryNavigation.cxx.

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

Definition at line 171 of file HistFactoryNavigation.cxx.

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

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

Definition at line 355 of file HistFactoryNavigation.cxx.

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

Definition at line 1086 of file HistFactoryNavigation.cxx.

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

Definition at line 430 of file HistFactoryNavigation.cxx.

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

Definition at line 276 of file HistFactoryNavigation.cxx.

Referenced by PrintModelAndData().

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

Definition at line 216 of file HistFactoryNavigation.cxx.

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

Definition at line 1046 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 1247 of file HistFactoryNavigation.cxx.

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

Definition at line 102 of file HistFactoryNavigation.h.

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

Definition at line 105 of file HistFactoryNavigation.h.

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

Definition at line 284 of file HistFactoryNavigation.cxx.

Referenced by PrintModelAndData().

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

Definition at line 1288 of file HistFactoryNavigation.cxx.

Member Data Documentation

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

Definition at line 171 of file HistFactoryNavigation.h.

Referenced by PrintDataSet(), and PrintState().

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

Definition at line 170 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 174 of file HistFactoryNavigation.h.

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

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

Definition at line 183 of file HistFactoryNavigation.h.

Referenced by _GetNodes(), and GetObservableSet().

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

Definition at line 177 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 180 of file HistFactoryNavigation.h.

Referenced by _GetNodes().

RooAbsPdf* RooStats::HistFactory::HistFactoryNavigation::fModel
private
RooArgSet* RooStats::HistFactory::HistFactoryNavigation::fObservables
private

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