GammaCombo  Rev:Unversioneddirectory
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
CLIntervalPrinter Class Reference

Class that prints CL intervals and saves them to disk. More...

#include <CLIntervalPrinter.h>

Collaboration diagram for CLIntervalPrinter:
Collaboration graph
[legend]

Public Member Functions

void addIntervals (vector< CLInterval > &intervals)
 Set the intervals. More...
 
 CLIntervalPrinter (OptParser *arg, TString name, TString var, TString unit, TString method, int CLsType=0)
 
void print ()
 
void savePython ()
 
void setDegrees (bool yesno=true)
 
 ~CLIntervalPrinter ()
 

Static Private Member Functions

static bool compareByMin (const CLInterval &a, const CLInterval &b)
 Helper function to sort the intervals according to their lower boundary. More...
 

Private Attributes

OptParser_arg
 command line arguments More...
 
int _clstype
 Type of CLs intervals, 0 means no CLs method. More...
 
bool _degrees
 convert values into degrees More...
 
vector< vector< CLInterval > > _intervals
 container of intervals More...
 
TString _method
 method name (e.g. Prob) More...
 
TString _name
 name of combination More...
 
TString _unit
 unit of scan variable More...
 
TString _var
 name of scan variable More...
 

Detailed Description

Class that prints CL intervals and saves them to disk.

Definition at line 23 of file CLIntervalPrinter.h.

Constructor & Destructor Documentation

§ CLIntervalPrinter()

CLIntervalPrinter::CLIntervalPrinter ( OptParser arg,
TString  name,
TString  var,
TString  unit,
TString  method,
int  CLsType = 0 
)

Definition at line 3 of file CLIntervalPrinter.cpp.

§ ~CLIntervalPrinter()

CLIntervalPrinter::~CLIntervalPrinter ( )

Definition at line 15 of file CLIntervalPrinter.cpp.

Member Function Documentation

§ addIntervals()

void CLIntervalPrinter::addIntervals ( vector< CLInterval > &  intervals)

Set the intervals.

If more vectors of intervals are added, each of them will be printed in order.

Parameters
intervals- vector of confidence intervals, each one corresponding to one solution

Definition at line 24 of file CLIntervalPrinter.cpp.

§ compareByMin()

bool CLIntervalPrinter::compareByMin ( const CLInterval a,
const CLInterval b 
)
staticprivate

Helper function to sort the intervals according to their lower boundary.

Definition at line 33 of file CLIntervalPrinter.cpp.

§ print()

void CLIntervalPrinter::print ( )

Definition at line 39 of file CLIntervalPrinter.cpp.

§ savePython()

void CLIntervalPrinter::savePython ( )

Definition at line 86 of file CLIntervalPrinter.cpp.

§ setDegrees()

void CLIntervalPrinter::setDegrees ( bool  yesno = true)
inline

Definition at line 32 of file CLIntervalPrinter.h.

Member Data Documentation

§ _arg

OptParser* CLIntervalPrinter::_arg
private

command line arguments

Definition at line 39 of file CLIntervalPrinter.h.

§ _clstype

int CLIntervalPrinter::_clstype
private

Type of CLs intervals, 0 means no CLs method.

Definition at line 46 of file CLIntervalPrinter.h.

§ _degrees

bool CLIntervalPrinter::_degrees
private

convert values into degrees

Definition at line 44 of file CLIntervalPrinter.h.

§ _intervals

vector< vector<CLInterval> > CLIntervalPrinter::_intervals
private

container of intervals

Definition at line 45 of file CLIntervalPrinter.h.

§ _method

TString CLIntervalPrinter::_method
private

method name (e.g. Prob)

Definition at line 43 of file CLIntervalPrinter.h.

§ _name

TString CLIntervalPrinter::_name
private

name of combination

Definition at line 40 of file CLIntervalPrinter.h.

§ _unit

TString CLIntervalPrinter::_unit
private

unit of scan variable

Definition at line 42 of file CLIntervalPrinter.h.

§ _var

TString CLIntervalPrinter::_var
private

name of scan variable

Definition at line 41 of file CLIntervalPrinter.h.


The documentation for this class was generated from the following files: