-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rand-start-pts-v2' of github.com:kmohrman/HiggsAnalysis…
…-CombinedLimit into kmohrman-rand-start-pts
- Loading branch information
Showing
6 changed files
with
430 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef HiggsAnalysis_CombinedLimit_RandStartPt_h | ||
#define HiggsAnalaysis_CombinedLimit_RandStartPt_h | ||
|
||
#include "HiggsAnalysis/CombinedLimit/interface/CascadeMinimizer.h" | ||
#include "HiggsAnalysis/CombinedLimit/interface/MultiDimFit.h" | ||
|
||
#include <vector> | ||
#include <string> | ||
#include "RooRealVar.h" | ||
#include "RooAbsReal.h" | ||
#include "RooArgSet.h" | ||
#include "RooCategory.h" | ||
|
||
class RandStartPt { | ||
private: | ||
RooAbsReal& nll_; | ||
std::vector<RooRealVar* > &specifiedvars_; | ||
std::vector<float> &specifiedvals_; | ||
bool skipdefaultstart_; | ||
std::string parameterRandInitialValranges_; | ||
int numrandpts_; | ||
int verbosity_; | ||
bool fastscan_; | ||
bool hasmaxdeltaNLLforprof_; | ||
float maxdeltaNLLforprof_; | ||
std::vector<std::string> &specifiednuis_; | ||
std::vector<std::string> &specifiedfuncnames_; | ||
std::vector<RooAbsReal*> &specifiedfunc_; | ||
std::vector<float> &specifiedfuncvals_; | ||
std::vector<std::string> &specifiedcatnames_; | ||
std::vector<RooCategory*> &specifiedcat_; | ||
std::vector<int> &specifiedcatvals_; | ||
unsigned int nOtherFloatingPOI_; | ||
public: | ||
RandStartPt(RooAbsReal& nll, std::vector<RooRealVar* > &specifiedvars, std::vector<float> &specifiedvals, bool skipdefaultstart, std::string parameterRandInitialValranges, int numrandpts, int verbose, bool fastscan, bool hasmaxdeltaNLLforprof, float maxdeltaNLLforprof, std::vector<std::string> &specifiednuis, std::vector<std::string> &specifiedfuncnames, std::vector<RooAbsReal*> &specifiedfunc, std::vector<float> &specifiedfuncvals, std::vector<std::string> &specifiedcatnames, std::vector<RooCategory*> &specifiedcat, std::vector<int> &specifiedcatvals, unsigned int nOtherFloatingPOI); | ||
std::map<std::string, std::vector<float>> getRangesDictFromInString(std::string params_ranges_string_in); | ||
std::vector<std::vector<float>> vectorOfPointsToTry (); | ||
void commitBestNLLVal(unsigned int idx, float &nllVal, double &probVal); | ||
void setProfPOIvalues(unsigned int startptIdx, std::vector<std::vector<float>> &nested_vector_of_wc_vals); | ||
void setValSpecifiedObjs(); | ||
void doRandomStartPt1DGridScan(double &xval, unsigned int poiSize, std::vector<float> &poival, std::vector<RooRealVar* > &poivars, std::unique_ptr <RooArgSet> ¶m, RooArgSet &snap, float &deltaNLL, double &nll_init, CascadeMinimizer &minimObj); | ||
void doRandomStartPt2DGridScan(double &xval, double &yval, unsigned int poiSize, std::vector<float> &poival, std::vector<RooRealVar* > &poivars, std::unique_ptr <RooArgSet> ¶m, RooArgSet &snap, float &deltaNLL, double &nll_init, MultiDimFit::GridType gridType, double deltaX, double deltaY, CascadeMinimizer &minimObj); | ||
|
||
}; | ||
#endif |
Oops, something went wrong.