1 #ifndef HiggsAnalysis_CombinedLimit_CachingNLL_h
2 #define HiggsAnalysis_CombinedLimit_CachingNLL_h
8 #include <RooRealSumPdf.h>
9 #include <RooProdPdf.h>
10 #include <RooAbsData.h>
11 #include <RooArgSet.h>
12 #include <RooSetProxy.h>
13 #include <RooRealVar.h>
14 #include <RooSimultaneous.h>
15 #include <RooGaussian.h>
18 namespace cacheutils {
23 bool changed(
bool updateIfChanged=
false) ;
25 std::vector<RooRealVar *>
vars_;
39 std::pair<std::vector<Double_t> *,
bool>
get();
59 const std::vector<Double_t> &
eval(
const RooAbsData &
data) ;
60 const RooAbsReal *
pdf()
const {
return pdf_; }
81 void setData(
const RooAbsData &data) ;
82 virtual RooArgSet*
getObservables(
const RooArgSet* depList, Bool_t valueOnly = kTRUE)
const ;
83 virtual RooArgSet*
getParameters(
const RooArgSet* depList, Bool_t stripDisconnected = kTRUE)
const ;
85 const RooAbsPdf *
pdf()
const {
return pdf_; }
97 mutable std::vector<CachingPdf>
pdfs_;
113 void setData(
const RooAbsData &data) ;
114 virtual RooArgSet*
getObservables(
const RooArgSet* depList, Bool_t valueOnly = kTRUE)
const ;
115 virtual RooArgSet*
getParameters(
const RooArgSet* depList, Bool_t stripDisconnected = kTRUE)
const ;
116 void splitWithWeights(
const RooAbsData &data,
const RooAbsCategory& splitCat, Bool_t createEmptyDataSets) ;
127 Double_t sig = sigma ;
128 return -0.5*arg*arg/(sig*sig);
virtual CachingSimNLL * clone(const char *name=0) const
const RooAbsData * lastData_
double sumWeights() const
virtual CachingAddNLL * clone(const char *name=0) const
std::vector< RooAbsPdf * > constrainPdfs_
virtual RooArgSet * getObservables(const RooArgSet *depList, Bool_t valueOnly=kTRUE) const
void setData(const RooAbsData &data)
void splitWithWeights(const RooAbsData &data, const RooAbsCategory &splitCat, Bool_t createEmptyDataSets)
virtual Double_t defaultErrorLevel() const
SimpleGaussianConstraint(const RooGaussian &g)
std::vector< CachingPdf > pdfs_
Item(const ArgSetChecker &check)
virtual Bool_t isDerived() const
std::vector< SimpleGaussianConstraint * > constrainPdfsFast_
std::auto_ptr< RooSimultaneous > factorizedPdf_
std::vector< double > constrainZeroPointsFast_
RooSimultaneous * pdfOriginal_
std::vector< Double_t > values
virtual RooArgSet * getParameters(const RooArgSet *depList, Bool_t stripDisconnected=kTRUE) const
virtual Double_t defaultErrorLevel() const
const RooAbsData * dataOriginal_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
const RooAbsReal * pdf() const
CachingAddNLL(const char *name, const char *title, RooAbsPdf *pdf, RooAbsData *data)
std::vector< RooDataSet * > datasets_
virtual Double_t evaluate() const
RooAbsReal * pdfOriginal_
ValuesCache(const RooAbsReal &pdf, const RooArgSet &obs, int size=MaxItems_)
CachingSimNLL(RooSimultaneous *pdf, RooAbsData *data, const RooArgSet *nuis=0)
void setData(const RooAbsData &data)
bool check(const DataFrame &df, bool capcheck, bool dvercheck)
bool changed(bool updateIfChanged=false)
std::vector< CachingAddNLL * > pdfs_
CachingPdf(RooAbsReal *pdf, const RooArgSet *obs)
const std::vector< Double_t > & eval(const RooAbsData &data)
virtual Bool_t isDerived() const
const RooAbsPdf * pdf() const
std::vector< double > vals_
std::vector< double > constrainZeroPoints_
std::auto_ptr< TList > dataSets_
std::vector< RooRealVar * > vars_
Item(const RooAbsCollection &set)
void realFill_(const RooAbsData &data, std::vector< Double_t > &values)
char data[epos_bytes_allocation]
virtual RooArgSet * getObservables(const RooArgSet *depList, Bool_t valueOnly=kTRUE) const
virtual Double_t evaluate() const
std::vector< Double_t > weights_
RooArgSet piecesForCloning_
std::vector< RooAbsReal * > integrals_
std::vector< RooAbsReal * > coeffs_
tuple size
Write out results.
virtual RooArgSet * getParameters(const RooArgSet *depList, Bool_t stripDisconnected=kTRUE) const
double getLogValFast() const
static void setNoDeepLogEvalError(bool noDeep)
std::vector< Double_t > partialSum_
void set(const std::string &name, int value)
set the flag, with a run-time name