CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 #ifndef PhysicsTools_RooStatsCms_FeldmanCousinsBinomialInterval_h
00002 #define PhysicsTools_RooStatsCms_FeldmanCousinsBinomialInterval_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 FeldmanCousinsSorter {
00011   bool operator()(const BinomialProbHelper& l, const BinomialProbHelper& r) const {
00012     return l.lratio() > r.lratio();
00013   }
00014 };
00015 
00016 class FeldmanCousinsBinomialInterval : public BinomialNoncentralInterval<FeldmanCousinsSorter> {
00017   const char* name() const { return "Feldman-Cousins"; }
00018 
00019 #if (defined (STANDALONE) or defined (__CINT__) )
00020 ClassDef(FeldmanCousinsBinomialInterval,1)
00021 #endif
00022 };
00023 
00024 #endif