ROOT logo
ROOT » ROOFIT » ROOSTATS » RooStats::HybridResult

class RooStats::HybridResult: public RooStats::HypoTestResult

HybridResult class: this class is a fresh rewrite in RooStats of
	RooStatsCms/LimitResults developped by D. Piparo and G. Schott

The objects of this class store and access with lightweight methods the
information calculated by LimitResults through a Lent calculation using
MC toy experiments.
In some ways can be considered an extended and extensible implementation of the
TConfidenceLevel class (

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
voidAdd(RooStats::HybridResult* other)
virtual Double_tAlternatePValue() const
virtual Double_tRooStats::HypoTestResult::AlternatePValue() const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
static TClass*RooStats::HypoTestResult::Class()
static TClass*TNamed::Class()
static TClass*TObject::Class()
virtual const char*TObject::ClassName() const
virtual Double_tRooStats::HypoTestResult::CLb() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Double_tRooStats::HypoTestResult::CLs() const
virtual Double_tRooStats::HypoTestResult::CLsplusb() const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
RooStats::HybridPlot*GetPlot(const char* name, const char* title, int n_bins)
virtual const char*TNamed::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
RooStats::HybridResultHybridResult(const RooStats::HybridResult&)
RooStats::HybridResultHybridResult(const char* name, const char* title)
RooStats::HybridResultHybridResult(const char* name, const char* title, vector<double>& testStat_sb_vals, vector<double>& testStat_b_vals)
RooStats::HypoTestResultRooStats::HypoTestResult::HypoTestResult(const RooStats::HypoTestResult&)
RooStats::HypoTestResultRooStats::HypoTestResult::HypoTestResult(const char* name, Double_t nullp, Double_t altp)
RooStats::HypoTestResultRooStats::HypoTestResult::HypoTestResult(const char* name, const char* title, Double_t nullp, Double_t altp)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*RooStats::HypoTestResult::IsA() const
virtual TClass*TNamed::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
virtual Double_tNullPValue() const
virtual Double_tRooStats::HypoTestResult::NullPValue() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooStats::HybridResult&operator=(const RooStats::HybridResult&)
RooStats::HypoTestResult&RooStats::HypoTestResult::operator=(const RooStats::HypoTestResult&)
TNamed&TNamed::operator=(const TNamed& rhs)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
voidPrintMore(const char* options)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDataTestStatistics(double testStat_data_val)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidRooStats::HypoTestResult::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTNamed::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual Double_tRooStats::HypoTestResult::Significance() const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidRooStats::HypoTestResult::StreamerNVirtual(TBuffer& b)
voidTNamed::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const

Data Members

Double_tRooStats::HypoTestResult::fAlternatePValuep-value for the alternate hypothesis (small number means disfavored)
TStringTNamed::fNameobject identifier
Double_tRooStats::HypoTestResult::fNullPValuep-value for the null hypothesis (small number means disfavored)
TStringTNamed::fTitleobject title
boolfComputationsAltDoneFlagflag if the fAlternatePValue computation have been already done or not (ie need to be refreshed)
boolfComputationsNulDoneFlagflag if the fNullPValue computation have been already done or not (ie need to be refreshed)
vector<double>fTestStat_bvector of results for B-only toy-MC
doublefTestStat_dataresults (test statistics) evaluated for data
vector<double>fTestStat_sbvector of results for S+B toy-MC

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HybridResult(const char* name, const char* title, vector<double>& testStat_sb_vals, vector<double>& testStat_b_vals)
 HybridResult constructor (with name, title and vectors of S+B and B values)
HybridResult(const char* name, const char* title)
 HybridResult constructor (with name and title)
 HybridResult default constructor
 HybridResult destructor
void SetDataTestStatistics(double testStat_data_val)
 set the value of the test statistics on data
double NullPValue() const
 return 1-CL_b : the B p-value
double AlternatePValue() const
 return CL_s+b : the S+B p-value
void Add(RooStats::HybridResult* other)
 add additional toy-MC experiments to the current results
 use the data test statistics of the added object if none is already present (otherwise, ignore the new one)
HybridPlot* GetPlot(const char* name, const char* title, int n_bins)
 prepare a plot showing a result and return a pointer to a HybridPlot object
 the needed arguments are: an object name, a title and the number of bins in the plot
void PrintMore(const char* options)
 Print out some information about the results
HybridResult(const char* name, const char* title, vector<double>& testStat_sb_vals, vector<double>& testStat_b_vals)
 Constructor for HybridResult
std::vector<double> GetTestStat_sb()
 Get test statistics values for the sb model
{return fTestStat_sb;}
std::vector<double> GetTestStat_b()
 Get test statistics values for the b model
{return fTestStat_b;}
double GetTestStat_data()
 Get test statistics value for data
{ return fTestStat_data;}