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 {
12  return l.prob() > r.prob();
13  }
14 };
15 
16 class SterneBinomialInterval : public BinomialNoncentralInterval<SterneSorter> {
17  const char* name() const { return "Feldman-Cousins"; }
18 
19 #if (defined (STANDALONE) or defined (__CINT__) )
20 ClassDef(SterneBinomialInterval,1)
21 #endif
22 };
23 
24 #endif
bool operator()(const BinomialProbHelper &l, const BinomialProbHelper &r) const
double prob() const
const char * name() const