47 _parName(poi->
first()->GetName()),
48 _plc(0),_ul(0),_poi(0), _data(0),_cl(CL), _model(0)
50 std::cout<<
"RooUpperLimitConstructor ParName:"<<
_parName<<std::endl;
51 std::cout<<
"RooUpperLimitConstructor CL:"<<
_cl<<std::endl;
63 _parName(other._poi->
first()->GetName()),
64 _plc(0),_ul(0),_poi(other._poi), _data(0), _cl(other._cl), _model(other._model)
98 coutE(InputArguments) <<
"UpperLimitMCSModule::initializeInstance:: ERROR: No parameter named " <<
_parName <<
" in RooMCStudy!" << endl ;
104 std::cout<<
"RooUpperLimit Initialize Instance: POI Set:"<<std::endl;
106 std::cout<<
"RooUpperLimit Initialize Instance: End:"<<std::endl;
172 std::cout<<
"after generation Test"<<std::endl;
190 if (!pllint)
return kFALSE;
193 std::cout<<(static_cast<RooRealVar*>((
fitParams()->find(
_parName.c_str()))))->getVal()<<std::endl;
205 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
Return number of entries in dataset, i.e., count unweighted entries.
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.
Double_t UpperLimit(const RooRealVar ¶m)
return the upper bound of the interval on a given parameter
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
Namespace for the RooStats classes.