/usr/include/root/RooStats/PointSetInterval.h is in libroot-roofit-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84  | // @(#)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_PointSetInterval
#define RooStats_PointSetInterval
#ifndef ROO_ARG_SET
#include "RooArgSet.h"
#endif
#ifndef ROO_TREE_DATA
#include "RooAbsData.h"
#endif
#ifndef RooStats_ConfInterval
#include "RooStats/ConfInterval.h"
#endif
namespace RooStats {
 class PointSetInterval : public ConfInterval {
  public:
     // default constructors
    explicit PointSetInterval(const char* name = 0);
    // constructor from name and data set specifying the interval points
    PointSetInterval(const char* name, RooAbsData&);
    // destructor
    virtual ~PointSetInterval();
        
    // check if parameter is in the interval
    virtual Bool_t IsInInterval(const RooArgSet&) const;
    // set the confidence level for the interval
    virtual void SetConfidenceLevel(Double_t cl) {fConfidenceLevel = cl;}
    // return the confidence level for the interval
    virtual Double_t ConfidenceLevel() const {return fConfidenceLevel;}
 
    // Method to return lower limit on a given parameter 
    //  Double_t LowerLimit(RooRealVar& param) ; // could provide, but misleading?
    //      Double_t UpperLimit(RooRealVar& param) ; // could provide, but misleading?
    
    // return a cloned list with the parameter of interest
    virtual RooArgSet* GetParameters() const;
    // return a copy of the data set (points) defining this interval
    RooAbsData* GetParameterPoints() const {return (RooAbsData*)fParameterPointsInInterval->Clone();}
    // return a cloned list with the parameter of interest
    Bool_t CheckParameters(const RooArgSet&) const ;
    // return lower limit on a given parameter 
    Double_t LowerLimit(RooRealVar& param) ;
    // return upper limit on a given parameter 
    Double_t UpperLimit(RooRealVar& param) ;
    
  protected:
    ClassDef(PointSetInterval,1)  // Concrete implementation of ConfInterval for simple 1-D intervals in the form [a,b]
  private:
    //    RooArgSet* fParameters; // parameter of interest
    Double_t fConfidenceLevel; // confidence level
    RooAbsData* fParameterPointsInInterval; // either a histogram (RooDataHist) or a tree (RooDataSet)
      
  };
}
#endif
 |