CMS 3D CMS Logo

SterneBinomialInterval.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_RooStatsCms_SterneBinomialInterval_h
2 #define PhysicsTools_RooStatsCms_SterneBinomialInterval_h
3 
4 #if (defined(STANDALONE) or defined(__CINT__))
6 #else
8 #endif
9 
10 struct SterneSorter {
11  bool operator()(const BinomialProbHelper& l, const BinomialProbHelper& r) const { return l.prob() > r.prob(); }
12 };
13 
14 class SterneBinomialInterval : public BinomialNoncentralInterval<SterneSorter> {
15  const char* name() const override { return "Feldman-Cousins"; }
16 
17 #if (defined(STANDALONE) or defined(__CINT__))
18  ClassDef(SterneBinomialInterval, 1)
19 #endif
20 };
21 
22 #endif
bool operator()(const BinomialProbHelper &l, const BinomialProbHelper &r) const
double prob() const
const char * name() const override