42 coutI(InputArguments)<<
"RooUpperLimitConstructor ParName:"<<
_parName<<std::endl;
43 coutI(InputArguments)<<
"RooUpperLimitConstructor CL:"<<
_cl<<std::endl;
90 coutE(InputArguments) <<
"UpperLimitMCSModule::initializeInstance:: ERROR: No parameter named " <<
_parName <<
" in RooMCStudy!" << std::endl ;
96 coutI(Eval)<<
"RooUpperLimit Initialize Instance: POI Set:"<<std::endl;
98 coutI(Eval)<<
"RooUpperLimit Initialize Instance: End:"<<std::endl;
102 std::string ulName =
"ul_" +
_parName;
103 std::string ulTitle =
"UL for parameter " +
_parName;
139 coutI(Eval)<<
"UL:"<<
_ul->getVal()<<std::endl;
178 coutI(Eval)<<
"after generation Test"<<std::endl;
196 if (!pllint)
return false;
198 coutI(Eval)<<
"poi value: "<<(
static_cast<RooRealVar*
>(
_poi->first()))->getVal()<<std::endl;
int Int_t
Signed integer 4 bytes (int).
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
RooAbsArg * find(const char *name) const
Find object with given name in list.
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
RooAbsData * genSample()
Return generate sample.
RooAbsMCStudyModule(const char *name, const char *title)
Constructor.
RooAbsPdf * fitModel()
Return fit model.
RooArgSet * fitParams()
Return current value of parameters of fit model.
RooArgSet * fitInitParams()
Return initial value of parameters of fit model.
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
Variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
void setBins(Int_t nBins, const char *name=nullptr, bool shared=true)
Create a uniform binning under name 'name' for this variable.
void SetTestSize(double size) override
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...
LikelihoodInterval * GetInterval() const override
Return a likelihood interval.
bool processBetweenGenAndFit(Int_t sampleNum) override
Method called after generation of toy data sample and resetting of fit parameters to initial values a...
const RooArgSet * _poi
parameters of interest
UpperLimitMCSModule(const RooArgSet *poi, double CL=0.95)
RooDataSet * finalizeRun() override
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
bool processAfterFit(bool fitOk) override
Method called after fit has been performed.
~UpperLimitMCSModule() override
Destructor.
bool initializeRun(Int_t numSamples) override
Initialize module at beginning of RooCMStudy run.
RooStats::ProfileLikelihoodCalculator * _plc
std::string _parName
Name of Nsignal parameter.
RooDataSet * _data
Summary dataset to store results.
bool initializeInstance() override
Initialize module after attachment to RooMCStudy object.
const char * GetName() const override
Returns name of object.
Namespace for the RooStats classes.