51 _plc(0),_ul(0),_poi(0), _data(0),_cl(CL), _model(0)
53 std::cout<<
"RooUpperLimitConstructor ParName:"<<
_parName<<std::endl;
54 std::cout<<
"RooUpperLimitConstructor CL:"<<
_cl<<std::endl;
67 _plc(0),_ul(0),_poi(other._poi), _data(0), _cl(other._cl), _model(other._model)
101 coutE(
InputArguments) <<
"UpperLimitMCSModule::initializeInstance:: ERROR: No parameter named " <<
_parName <<
" in RooMCStudy!" << endl ;
107 std::cout<<
"RooUpperLimit Initialize Instance: POI Set:"<<std::endl;
109 std::cout<<
"RooUpperLimit Initialize Instance: End:"<<std::endl;
175 std::cout<<
"after generation Test"<<std::endl;
193 if (!pllint)
return kFALSE;
196 std::cout<<(static_cast<RooRealVar*>((
fitParams()->find(
_parName.c_str()))))->getVal()<<std::endl;
208 std::cout<<
"UL:"<<
_ul->
getVal()<<std::endl;
char * Form(const char *fmt,...)
RooAbsArg * first() const
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
RooAbsArg * find(const char *name) const
Find object with given name in list.
virtual Int_t numEntries() const
RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calc...
RooArgSet * fitInitParams()
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDataSet is a container class to hold unbinned data.
virtual void add(const RooArgSet &row, Double_t weight=1.0, Double_t weightError=0) override
Add a data point, with its coordinates specified in the 'data' argset, to the data set.
RooRealVar represents a variable that can be changed from the outside.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
virtual void SetTestSize(Double_t size)
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
ConfInterval is an interface class for a generic interval in the RooStats framework.
LikelihoodInterval is a concrete implementation of the RooStats::ConfInterval interface.
The ProfileLikelihoodCalculator is a concrete implementation of CombinedCalculator (the interface cla...
virtual LikelihoodInterval * GetInterval() const
Return a likelihood interval.
This class allow to compute in the ToyMcStudy framework the ProfileLikelihood upper limit for each to...
Bool_t initializeRun(Int_t)
Initialize module at beginning of RooCMStudy run.
Bool_t initializeInstance()
Initialize module after attachment to RooMCStudy object.
UpperLimitMCSModule(const RooArgSet *poi, Double_t CL=0.95)
virtual ~UpperLimitMCSModule()
Destructor.
RooStats::ProfileLikelihoodCalculator * _plc
RooDataSet * finalizeRun()
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
Bool_t processBetweenGenAndFit(Int_t)
const char * Data() const
std::string GetName(const std::string &scope_name)
Namespace for the RooStats classes.