ROOT 6.18/05 Reference Guide |
Definition at line 18 of file HistFactoryNavigation.h.
Public Member Functions | |
HistFactoryNavigation (const std::string &File, const std::string &WorkspaceName="combined", const std::string &ModelConfigName="ModelConfig") | |
HistFactoryNavigation (ModelConfig *mc) | |
Initialze based on an already-created HistFactory Model. More... | |
HistFactoryNavigation (RooAbsPdf *model, RooArgSet *observables) | |
virtual | ~HistFactoryNavigation () |
void | DrawChannel (const std::string &channel, RooDataSet *data=NULL) |
Draw a stack of the channel, and include data if the pointer is supplied. More... | |
double | GetBinValue (int bin, const std::string &channel) |
The value of the ith bin for the total in that channel. More... | |
double | GetBinValue (int bin, const std::string &channel, const std::string &sample) |
The value of the ith bin for that sample and channel
More... | |
TH1 * | GetChannelHist (const std::string &channel, const std::string &name="") |
Get the total channel histogram for this channel. More... | |
RooAbsPdf * | GetChannelPdf (const std::string &channel) |
std::vector< std::string > | GetChannelSampleList (const std::string &channel) |
THStack * | GetChannelStack (const std::string &channel, const std::string &name="") |
Get a stack of all samples in a channel. More... | |
RooAbsReal * | GetConstraintTerm (const std::string ¶meter) |
Get the constraint term for a given systematic (alpha or gamma) More... | |
double | GetConstraintUncertainty (const std::string ¶meter) |
Get the uncertainty based on the constraint term for a given systematic. More... | |
TH1 * | GetDataHist (RooDataSet *data, const std::string &channel, const std::string &name="") |
Get a histogram from the dataset for this channel. More... | |
int | GetMaxBinToPrint () const |
int | GetMinBinToPrint () const |
RooAbsPdf * | GetModel () const |
Get the model for this channel. More... | |
RooArgSet * | GetObservableSet (const std::string &channel) |
Get the set of observables for a given channel. More... | |
TH1 * | GetSampleHist (const std::string &channel, const std::string &sample, const std::string &name="") |
The (current) histogram for that sample This includes all parameters and interpolation. More... | |
void | PrintChannelParameters (const std::string &channel, bool IncludeConstantParams=false) |
Print parameters that effect a particular channel. More... | |
void | PrintDataSet (RooDataSet *data, const std::string &channel="") |
Print a "HistFactory style" RooDataSet in a readable way. More... | |
void | PrintModelAndData (RooDataSet *data) |
Print the model and the data, comparing channel by channel. More... | |
void | PrintParameters (bool IncludeConstantParams=false) |
Print the current values and errors of pdf parameters. More... | |
void | PrintSampleComponents (const std::string &channel, const std::string &sample) |
Print the different components that make up a sample (NormFactors, Statistical Uncertainties, Interpolation, etc) More... | |
void | PrintSampleParameters (const std::string &channel, const std::string &sample, bool IncludeConstantParams=false) |
Print parameters that effect a particular sample. More... | |
void | PrintState () |
Should pretty print all channels and the current values
More... | |
void | PrintState (const std::string &channel) |
Should pretty print this and the current values. More... | |
void | ReplaceNode (const std::string &ToReplace, RooAbsArg *ReplaceWith) |
Find a node in the pdf and replace it with a new node These nodes can be functions, pdf's, RooRealVar's, etc Will do minimial checking to make sure the replacement makes sense. More... | |
RooAbsReal * | SampleFunction (const std::string &channel, const std::string &sample) |
Get the RooAbsReal function for a given sample in a given channel. More... | |
void | SetConstant (const std::string ®Expr=".*", bool constant=true) |
void | SetMaxBinToPrint (int max) |
void | SetMinBinToPrint (int min) |
RooRealVar * | var (const std::string &varName) const |
Protected Member Functions | |
void | _GetNodes (ModelConfig *mc) |
Fetch the node information for the pdf in question, and save it in the varous collections in this class. More... | |
void | _GetNodes (RooAbsPdf *model, const RooArgSet *observables) |
std::map< std::string, RooAbsReal * > | GetSampleFunctionMap (const std::string &channel) |
Get a map of sample names to their functions for a particular channel. More... | |
TH1 * | MakeHistFromRooFunction (RooAbsReal *func, RooArgList vars, std::string name="Hist") |
Make a histogram from a funciton Edit so it can take a RooArgSet of parameters. More... | |
void | PrintMultiDimHist (TH1 *hist, int bin_print_width) |
Print a histogram's contents to the screen void PrettyPrintHistogram(TH1* hist);. More... | |
void | SetPrintWidths (const std::string &channel) |
Set the title and bin widths. More... | |
Private Member Functions | |
RooArgSet | _GetAllProducts (RooProduct *node) |
Recursively get all products of products. More... | |
RooAbsArg * | findChild (const std::string &name, RooAbsReal *parent) const |
Internal method implementation of finding a daughter node from a parent node (looping over all generations) More... | |
Private Attributes | |
int | _bin_print_width |
int | _label_print_width |
int | _maxBinToPrint |
int | _minBinToPrint |
std::vector< std::string > | fChannelNameVec |
The list of channels. More... | |
std::map< std::string, RooArgSet * > | fChannelObservMap |
Map of channel names to their set of ovservables. More... | |
std::map< std::string, RooAbsPdf * > | fChannelPdfMap |
Map of channel names to their full pdf's. More... | |
std::map< std::string, std::map< std::string, RooAbsReal * > > | fChannelSampleFunctionMap |
Map of Map of Channel, Sample names to Function Nodes Used by doing: fChannelSampleFunctionMap["MyChannel"]["MySample"]. More... | |
std::map< std::string, RooAbsPdf * > | fChannelSumNodeMap |
Map of channel names to pdf without constraint. More... | |
RooAbsPdf * | fModel |
The HistFactory Pdf Pointer. More... | |
RooArgSet * | fObservables |
The observables. More... | |
#include <RooStats/HistFactory/HistFactoryNavigation.h>
RooStats::HistFactory::HistFactoryNavigation::HistFactoryNavigation | ( | ModelConfig * | mc | ) |
Initialze based on an already-created HistFactory Model.
Definition at line 35 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 79 of file HistFactoryNavigation.cxx.
RooStats::HistFactory::HistFactoryNavigation::HistFactoryNavigation | ( | RooAbsPdf * | model, |
RooArgSet * | observables | ||
) |
Definition at line 145 of file HistFactoryNavigation.cxx.
|
inlinevirtual |
Definition at line 30 of file HistFactoryNavigation.h.
|
private |
Recursively get all products of products.
Definition at line 732 of file HistFactoryNavigation.cxx.
|
protected |
Fetch the node information for the pdf in question, and save it in the varous collections in this class.
Definition at line 1242 of file HistFactoryNavigation.cxx.
|
protected |
Definition at line 765 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::DrawChannel | ( | const std::string & | channel, |
RooDataSet * | data = NULL |
||
) |
Draw a stack of the channel, and include data if the pointer is supplied.
Definition at line 716 of file HistFactoryNavigation.cxx.
|
private |
Internal method implementation of finding a daughter node from a parent node (looping over all generations)
Definition at line 894 of file HistFactoryNavigation.cxx.
double RooStats::HistFactory::HistFactoryNavigation::GetBinValue | ( | int | bin, |
const std::string & | channel | ||
) |
The value of the ith bin for the total in that channel.
Definition at line 478 of file HistFactoryNavigation.cxx.
double RooStats::HistFactory::HistFactoryNavigation::GetBinValue | ( | int | bin, |
const std::string & | channel, | ||
const std::string & | sample | ||
) |
The value of the ith bin for that sample and channel
Definition at line 491 of file HistFactoryNavigation.cxx.
TH1 * RooStats::HistFactory::HistFactoryNavigation::GetChannelHist | ( | const std::string & | channel, |
const std::string & | name = "" |
||
) |
Get the total channel histogram for this channel.
Definition at line 577 of file HistFactoryNavigation.cxx.
RooAbsPdf * RooStats::HistFactory::HistFactoryNavigation::GetChannelPdf | ( | const std::string & | channel | ) |
Definition at line 199 of file HistFactoryNavigation.cxx.
std::vector< std::string > RooStats::HistFactory::HistFactoryNavigation::GetChannelSampleList | ( | const std::string & | channel | ) |
Definition at line 622 of file HistFactoryNavigation.cxx.
THStack * RooStats::HistFactory::HistFactoryNavigation::GetChannelStack | ( | const std::string & | channel, |
const std::string & | name = "" |
||
) |
Get a stack of all samples in a channel.
Definition at line 637 of file HistFactoryNavigation.cxx.
RooAbsReal * RooStats::HistFactory::HistFactoryNavigation::GetConstraintTerm | ( | const std::string & | parameter | ) |
Get the constraint term for a given systematic (alpha or gamma)
Definition at line 950 of file HistFactoryNavigation.cxx.
double RooStats::HistFactory::HistFactoryNavigation::GetConstraintUncertainty | ( | const std::string & | parameter | ) |
Get the uncertainty based on the constraint term for a given systematic.
Definition at line 982 of file HistFactoryNavigation.cxx.
TH1 * RooStats::HistFactory::HistFactoryNavigation::GetDataHist | ( | RooDataSet * | data, |
const std::string & | channel, | ||
const std::string & | name = "" |
||
) |
Get a histogram from the dataset for this channel.
Definition at line 658 of file HistFactoryNavigation.cxx.
|
inline |
Definition at line 102 of file HistFactoryNavigation.h.
|
inline |
Definition at line 105 of file HistFactoryNavigation.h.
|
inline |
Get the model for this channel.
Definition at line 108 of file HistFactoryNavigation.h.
RooArgSet * RooStats::HistFactory::HistFactoryNavigation::GetObservableSet | ( | const std::string & | channel | ) |
Get the set of observables for a given channel.
Definition at line 544 of file HistFactoryNavigation.cxx.
|
protected |
Get a map of sample names to their functions for a particular channel.
Definition at line 505 of file HistFactoryNavigation.cxx.
TH1 * RooStats::HistFactory::HistFactoryNavigation::GetSampleHist | ( | const std::string & | channel, |
const std::string & | sample, | ||
const std::string & | name = "" |
||
) |
The (current) histogram for that sample This includes all parameters and interpolation.
Definition at line 559 of file HistFactoryNavigation.cxx.
|
protected |
Make a histogram from a funciton Edit so it can take a RooArgSet of parameters.
Definition at line 1195 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintChannelParameters | ( | const std::string & | channel, |
bool | IncludeConstantParams = false |
||
) |
Print parameters that effect a particular channel.
Definition at line 394 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintDataSet | ( | RooDataSet * | data, |
const std::string & | channel = "" |
||
) |
Print a "HistFactory style" RooDataSet in a readable way.
Definition at line 305 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintModelAndData | ( | RooDataSet * | data | ) |
Print the model and the data, comparing channel by channel.
Definition at line 343 of file HistFactoryNavigation.cxx.
|
protected |
Print a histogram's contents to the screen void PrettyPrintHistogram(TH1* hist);.
Definition at line 176 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintParameters | ( | bool | IncludeConstantParams = false | ) |
Print the current values and errors of pdf parameters.
Definition at line 360 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintSampleComponents | ( | const std::string & | channel, |
const std::string & | sample | ||
) |
Print the different components that make up a sample (NormFactors, Statistical Uncertainties, Interpolation, etc)
Definition at line 1088 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintSampleParameters | ( | const std::string & | channel, |
const std::string & | sample, | ||
bool | IncludeConstantParams = false |
||
) |
Print parameters that effect a particular sample.
Definition at line 435 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintState | ( | ) |
Should pretty print all channels and the current values
Definition at line 281 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::PrintState | ( | const std::string & | channel | ) |
Should pretty print this and the current values.
Definition at line 221 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::ReplaceNode | ( | const std::string & | ToReplace, |
RooAbsArg * | ReplaceWith | ||
) |
Find a node in the pdf and replace it with a new node These nodes can be functions, pdf's, RooRealVar's, etc Will do minimial checking to make sure the replacement makes sense.
Definition at line 1051 of file HistFactoryNavigation.cxx.
RooAbsReal * RooStats::HistFactory::HistFactoryNavigation::SampleFunction | ( | const std::string & | channel, |
const std::string & | sample | ||
) |
Get the RooAbsReal function for a given sample in a given channel.
Definition at line 520 of file HistFactoryNavigation.cxx.
void RooStats::HistFactory::HistFactoryNavigation::SetConstant | ( | const std::string & | regExpr = ".*" , |
bool | constant = true |
||
) |
Definition at line 1249 of file HistFactoryNavigation.cxx.
|
inline |
Definition at line 101 of file HistFactoryNavigation.h.
|
inline |
Definition at line 104 of file HistFactoryNavigation.h.
|
protected |
Set the title and bin widths.
Definition at line 289 of file HistFactoryNavigation.cxx.
RooRealVar * RooStats::HistFactory::HistFactoryNavigation::var | ( | const std::string & | varName | ) | const |
Definition at line 1290 of file HistFactoryNavigation.cxx.
|
private |
Definition at line 170 of file HistFactoryNavigation.h.
|
private |
Definition at line 169 of file HistFactoryNavigation.h.
|
private |
Definition at line 167 of file HistFactoryNavigation.h.
|
private |
Definition at line 166 of file HistFactoryNavigation.h.
|
private |
The list of channels.
Definition at line 173 of file HistFactoryNavigation.h.
|
private |
Map of channel names to their set of ovservables.
Definition at line 182 of file HistFactoryNavigation.h.
|
private |
Map of channel names to their full pdf's.
Definition at line 176 of file HistFactoryNavigation.h.
|
private |
Map of Map of Channel, Sample names to Function Nodes Used by doing: fChannelSampleFunctionMap["MyChannel"]["MySample"].
Definition at line 186 of file HistFactoryNavigation.h.
|
private |
Map of channel names to pdf without constraint.
Definition at line 179 of file HistFactoryNavigation.h.
|
private |
The HistFactory Pdf Pointer.
Definition at line 161 of file HistFactoryNavigation.h.
|
private |
The observables.
Definition at line 164 of file HistFactoryNavigation.h.