// @(#)root/roostats:$Id$
// Author: Kyle Cranmer, Lorenzo Moneta, Gregory Schott, Wouter Verkerke
/*************************************************************************
 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOSTATS_HypoTestInverterPlot
#define ROOSTATS_HypoTestInverterPlot

#include "TNamed.h"

class TGraphErrors; 
class TMultiGraph;

namespace RooStats {

   class HypoTestInverterResult; 
   class SamplingDistPlot;
   
   class HypoTestInverterPlot : public TNamed {
     
   public:

      // constructor
      HypoTestInverterPlot(HypoTestInverterResult* results ) ;
 
      HypoTestInverterPlot( const char* name, 
                            const char* title,
                            HypoTestInverterResult* results ) ;
     
      // return a TGraphErrors for the observed plot 
      TGraphErrors* MakePlot(Option_t *opt="") ;

      // return the TGraphAsymmErrors for the expected plots with the bands specified by 
      TMultiGraph* MakeExpectedPlot(double sig1=1, double sig2=2) ;

      // plot the test statistic distributions
      // type =0  null and alt 
      // type = 1 only null (S+B)
      // type = 2 only alt  (B)
      SamplingDistPlot * MakeTestStatPlot(int index, int type=0, int nbins = 100);

      // Draw method
      void Draw(Option_t *opt="");

      // destructor
      ~HypoTestInverterPlot() ;

   private:

      HypoTestInverterResult* fResults;

   protected:

      ClassDef(HypoTestInverterPlot,1)  // HypoTestInverterPlot class

   };
}

#endif
 HypoTestInverterPlot.h:1
 HypoTestInverterPlot.h:2
 HypoTestInverterPlot.h:3
 HypoTestInverterPlot.h:4
 HypoTestInverterPlot.h:5
 HypoTestInverterPlot.h:6
 HypoTestInverterPlot.h:7
 HypoTestInverterPlot.h:8
 HypoTestInverterPlot.h:9
 HypoTestInverterPlot.h:10
 HypoTestInverterPlot.h:11
 HypoTestInverterPlot.h:12
 HypoTestInverterPlot.h:13
 HypoTestInverterPlot.h:14
 HypoTestInverterPlot.h:15
 HypoTestInverterPlot.h:16
 HypoTestInverterPlot.h:17
 HypoTestInverterPlot.h:18
 HypoTestInverterPlot.h:19
 HypoTestInverterPlot.h:20
 HypoTestInverterPlot.h:21
 HypoTestInverterPlot.h:22
 HypoTestInverterPlot.h:23
 HypoTestInverterPlot.h:24
 HypoTestInverterPlot.h:25
 HypoTestInverterPlot.h:26
 HypoTestInverterPlot.h:27
 HypoTestInverterPlot.h:28
 HypoTestInverterPlot.h:29
 HypoTestInverterPlot.h:30
 HypoTestInverterPlot.h:31
 HypoTestInverterPlot.h:32
 HypoTestInverterPlot.h:33
 HypoTestInverterPlot.h:34
 HypoTestInverterPlot.h:35
 HypoTestInverterPlot.h:36
 HypoTestInverterPlot.h:37
 HypoTestInverterPlot.h:38
 HypoTestInverterPlot.h:39
 HypoTestInverterPlot.h:40
 HypoTestInverterPlot.h:41
 HypoTestInverterPlot.h:42
 HypoTestInverterPlot.h:43
 HypoTestInverterPlot.h:44
 HypoTestInverterPlot.h:45
 HypoTestInverterPlot.h:46
 HypoTestInverterPlot.h:47
 HypoTestInverterPlot.h:48
 HypoTestInverterPlot.h:49
 HypoTestInverterPlot.h:50
 HypoTestInverterPlot.h:51
 HypoTestInverterPlot.h:52
 HypoTestInverterPlot.h:53
 HypoTestInverterPlot.h:54
 HypoTestInverterPlot.h:55
 HypoTestInverterPlot.h:56
 HypoTestInverterPlot.h:57
 HypoTestInverterPlot.h:58
 HypoTestInverterPlot.h:59
 HypoTestInverterPlot.h:60
 HypoTestInverterPlot.h:61
 HypoTestInverterPlot.h:62
 HypoTestInverterPlot.h:63
 HypoTestInverterPlot.h:64