This file is indexed.

/usr/include/root/TMVA/ROCCalc.h is in libroot-tmva-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
#ifndef ROOT_TMVA_ROCCalc
#define ROOT_TMVA_ROCCalc
#include <vector>
#include <sstream>
#include <iostream>
#include <iomanip>

class TList;
class TTree;
class TString;
class TH1;
class TH2;
class TH2F;
class TSpline;
class TSpline1;

namespace TMVA {

  class MsgLogger;


  class ROCCalc {
    
  public:
     ROCCalc(TH1* mvaS, TH1* mvaB, TString nameSuffix="");
    
    ~ROCCalc();
    

    TH1D* GetROC();
    // return the signal eff for a given backgr. efficiency
    Double_t GetEffSForEffBof(Double_t effBref, Double_t &effSerr);
    // return the cut value 
    Double_t GetSignalReferenceCut(){return fSignalCut;} 
    // return the area under the ROC curve
    Double_t GetROCIntegral();
    // return the statistical significance as function of the mva cut value
    TH1* GetSignificance( Int_t nStot, Int_t nBtot);
    TH1* GetPurity(Int_t nStot, Int_t nBtot);
    
    void ApplySignalAndBackgroundStyle( TH1* sig, TH1* bkg, TH1* any = 0 );
    
    TH1* GetMvaSpdf(){return fmvaSpdf;}
    TH1* GetMvaBpdf(){return fmvaBpdf;}
    
  private:
    Double_t        Root(Double_t);
    Double_t        GetEffForRoot( Double_t theCut );
    Int_t           fMaxIter;  // maximum number of iterations
    Double_t        fAbsTol;   // absolute tolerance deviation
    
    UInt_t          fNbins;
    Bool_t          fUseSplines;

    TH1*            fmvaS, *fmvaB;       // the input mva distributions
    TH1*            fmvaSpdf, *fmvaBpdf;       // the normalized (and rebinned) input mva distributions
    Float_t         fXmin, fXmax;       // min and max of the mva distribution  
    Double_t        fNevtS;             // number of signal events (used in error calculation)
    Int_t           fCutOrientation;    //+1 if larger mva value means more signal like, -1 otherwise
    TSpline*        fSplS, *fSplB;
    TSpline*        fSplmvaCumS, *fSplmvaCumB;  // spline of cumulated mva distributions
    TSpline*        fSpleffBvsS;    
    TH1*            fmvaScumul, *fmvaBcumul;
    Int_t           fnStot, fnBtot;
    TH1*            fSignificance;
    TH1*            fPurity;

    Double_t        fSignalCut;  // MVA cut value for last demanded background rejection or signal efficiency

    TString         fSuffix;
    mutable MsgLogger* fLogger;   //! message logger
    MsgLogger& Log() const { return *fLogger; }                       

  };
}
#endif