CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/PhysicsTools/RooStatsCms/interface/SterneBinomialInterval.h

Go to the documentation of this file.
00001 #ifndef PhysicsTools_RooStatsCms_SterneBinomialInterval_h
00002 #define PhysicsTools_RooStatsCms_SterneBinomialInterval_h
00003 
00004 #if (defined (STANDALONE) or defined (__CINT__) )
00005 #include "BinomialNoncentralInterval.h"
00006 #else
00007 #include "PhysicsTools/RooStatsCms/interface/BinomialNoncentralInterval.h"
00008 #endif
00009 
00010 struct SterneSorter {
00011   bool operator()(const BinomialProbHelper& l, const BinomialProbHelper& r) const {
00012     return l.prob() > r.prob();
00013   }
00014 };
00015 
00016 class SterneBinomialInterval : public BinomialNoncentralInterval<SterneSorter> {
00017   const char* name() const { return "Feldman-Cousins"; }
00018 
00019 #if (defined (STANDALONE) or defined (__CINT__) )
00020 ClassDef(SterneBinomialInterval,1)
00021 #endif
00022 };
00023 
00024 #endif