CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
LRHelpFunctions Class Reference

Help functionalities to implement and evaluate LR ratio method. More...

#include "TopQuarkAnalysis/TopTools/interface/LRHelpFunctions.h"

Public Member Functions

double calcLRval (const std::vector< double > &)
 
double calcProb (double)
 
double calcPtdrLRval (const std::vector< double > &vals, bool useCorrelation=false)
 
void fillLRBackgroundHist (double, double weight=1.0)
 
void fillLRSignalHist (double, double weight=1.0)
 
void fillToBackgroundHists (const std::vector< double > &, double weight=1.0)
 
void fillToBackgroundHists (int, double, double weight=1.0)
 
void fillToSignalCorrelation (int obsNbr1, double obsVal1, int obsNbr2, double obsVal2, double weight)
 
void fillToSignalHists (const std::vector< double > &, double weight=1.0)
 
void fillToSignalHists (int, double, double weight=1.0)
 
void initLRHistsAndFits (int, double, double, const char *)
 
 LRHelpFunctions ()
 
 LRHelpFunctions (const std::vector< int > &, int, const std::vector< double > &, const std::vector< double > &, const std::vector< const char * > &)
 
 LRHelpFunctions (int, double, double, const char *)
 
void makeAndFitPurityHists ()
 
void makeAndFitSoverSplusBHists ()
 
void normalizeSandBhists ()
 
bool obsFitIncluded (int)
 
void purityPlot (const TString &fname, const TString &extension=TString("eps"))
 
void readObsHistsAndFits (const TString &, const std::vector< int > &, bool)
 
void recreateFitFct (const std::vector< int > &obsNr, const std::vector< const char * > &functions)
 
void setObsFitParameters (int obs, const std::vector< double > &)
 
void setXlabels (const std::vector< std::string > &xLabels)
 
void setYlabels (const std::vector< std::string > &yLabels)
 
void singlePlot (const TString &fname, int obsNbr, const TString &extension=TString("eps"))
 
void storeControlPlots (const TString &)
 
void storeToROOTfile (const TString &)
 
 ~LRHelpFunctions ()
 

Private Attributes

bool constructPurity
 
TF1 * fLRtotSoverSplusB
 
std::vector< TF1 * > fObsSoverSplusB
 
TGraph * hEffvsPur
 
TH1F * hLRtotB
 
TH1F * hLRtotS
 
TH1F * hLRtotSoverSplusB
 
TGraph * hLRValvsEff
 
TGraph * hLRValvsPur
 
std::vector< TH1F * > hObsB
 
std::vector< TH2F * > hObsCorr
 
std::vector< TH1F * > hObsS
 
std::vector< TH1F * > hObsSoverSplusB
 
std::vector< int > obsNumbers
 

Detailed Description

Help functionalities to implement and evaluate LR ratio method.

Author
Jan Heyninck
Version
Id:
LRHelpFunctions.h,v 1.10 2008/06/19 12:28:27 rwolf Exp

Definition at line 36 of file LRHelpFunctions.h.

Constructor & Destructor Documentation

LRHelpFunctions::LRHelpFunctions ( )

Definition at line 5 of file LRHelpFunctions.cc.

LRHelpFunctions::LRHelpFunctions ( const std::vector< int > &  obsNr,
int  nrBins,
const std::vector< double > &  obsMin,
const std::vector< double > &  obsMax,
const std::vector< const char * > &  functions 
)

Definition at line 12 of file LRHelpFunctions.cc.

LRHelpFunctions::LRHelpFunctions ( int  nrLRbins,
double  LRmin,
double  LRmax,
const char *  LRfunction 
)

Definition at line 47 of file LRHelpFunctions.cc.

LRHelpFunctions::~LRHelpFunctions ( )

Definition at line 65 of file LRHelpFunctions.cc.

Member Function Documentation

double LRHelpFunctions::calcLRval ( const std::vector< double > &  vals)
double LRHelpFunctions::calcProb ( double  logLR)
double LRHelpFunctions::calcPtdrLRval ( const std::vector< double > &  vals,
bool  useCorrelation = false 
)

Definition at line 375 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillLRBackgroundHist ( double  val,
double  weight = 1.0 
)

Definition at line 410 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillLRSignalHist ( double  val,
double  weight = 1.0 
)

Definition at line 402 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillToBackgroundHists ( const std::vector< double > &  obsVals,
double  weight = 1.0 
)

Definition at line 138 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillToBackgroundHists ( int  obsNbr,
double  obsVal,
double  weight = 1.0 
)

Definition at line 143 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillToSignalCorrelation ( int  obsNbr1,
double  obsVal1,
int  obsNbr2,
double  obsVal2,
double  weight 
)

Definition at line 121 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillToSignalHists ( const std::vector< double > &  obsVals,
double  weight = 1.0 
)

Definition at line 98 of file LRHelpFunctions.cc.

void LRHelpFunctions::fillToSignalHists ( int  obsNbr,
double  obsVal,
double  weight = 1.0 
)

Definition at line 110 of file LRHelpFunctions.cc.

void LRHelpFunctions::initLRHistsAndFits ( int  nrLRbins,
double  LRmin,
double  LRmax,
const char *  LRfunction 
)

Definition at line 69 of file LRHelpFunctions.cc.

void LRHelpFunctions::makeAndFitPurityHists ( )

Definition at line 418 of file LRHelpFunctions.cc.

void LRHelpFunctions::makeAndFitSoverSplusBHists ( )

Definition at line 176 of file LRHelpFunctions.cc.

void LRHelpFunctions::normalizeSandBhists ( )

Definition at line 154 of file LRHelpFunctions.cc.

bool LRHelpFunctions::obsFitIncluded ( int  o)
void LRHelpFunctions::purityPlot ( const TString &  fname,
const TString &  extension = TString("eps") 
)

Definition at line 563 of file LRHelpFunctions.cc.

void LRHelpFunctions::readObsHistsAndFits ( const TString &  fileName,
const std::vector< int > &  observables,
bool  readLRplots 
)

Definition at line 192 of file LRHelpFunctions.cc.

void LRHelpFunctions::recreateFitFct ( const std::vector< int > &  obsNr,
const std::vector< const char * > &  functions 
)

Definition at line 38 of file LRHelpFunctions.cc.

void LRHelpFunctions::setObsFitParameters ( int  obs,
const std::vector< double > &  fitPars 
)

Definition at line 82 of file LRHelpFunctions.cc.

void LRHelpFunctions::setXlabels ( const std::vector< std::string > &  xLabels)

Definition at line 489 of file LRHelpFunctions.cc.

void LRHelpFunctions::setYlabels ( const std::vector< std::string > &  yLabels)

Definition at line 505 of file LRHelpFunctions.cc.

void LRHelpFunctions::singlePlot ( const TString &  fname,
int  obsNbr,
const TString &  extension = TString("eps") 
)

Definition at line 519 of file LRHelpFunctions.cc.

void LRHelpFunctions::storeControlPlots ( const TString &  fname)

Definition at line 291 of file LRHelpFunctions.cc.

void LRHelpFunctions::storeToROOTfile ( const TString &  fname)

Definition at line 256 of file LRHelpFunctions.cc.

Member Data Documentation

bool LRHelpFunctions::constructPurity
private

Definition at line 77 of file LRHelpFunctions.h.

TF1* LRHelpFunctions::fLRtotSoverSplusB
private

Definition at line 75 of file LRHelpFunctions.h.

std::vector<TF1*> LRHelpFunctions::fObsSoverSplusB
private

Definition at line 73 of file LRHelpFunctions.h.

TGraph* LRHelpFunctions::hEffvsPur
private

Definition at line 76 of file LRHelpFunctions.h.

TH1F * LRHelpFunctions::hLRtotB
private

Definition at line 74 of file LRHelpFunctions.h.

TH1F* LRHelpFunctions::hLRtotS
private

Definition at line 74 of file LRHelpFunctions.h.

TH1F * LRHelpFunctions::hLRtotSoverSplusB
private

Definition at line 74 of file LRHelpFunctions.h.

TGraph * LRHelpFunctions::hLRValvsEff
private

Definition at line 76 of file LRHelpFunctions.h.

TGraph * LRHelpFunctions::hLRValvsPur
private

Definition at line 76 of file LRHelpFunctions.h.

std::vector<TH1F*> LRHelpFunctions::hObsB
private

Definition at line 71 of file LRHelpFunctions.h.

std::vector<TH2F*> LRHelpFunctions::hObsCorr
private

Definition at line 72 of file LRHelpFunctions.h.

std::vector<TH1F*> LRHelpFunctions::hObsS
private

Definition at line 71 of file LRHelpFunctions.h.

std::vector<TH1F*> LRHelpFunctions::hObsSoverSplusB
private

Definition at line 71 of file LRHelpFunctions.h.

std::vector<int> LRHelpFunctions::obsNumbers
private

Definition at line 78 of file LRHelpFunctions.h.