Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

MarSysBinningFun Class Reference

#include <MarSysBinningFun.h>

Inheritance diagram for MarSysBinningFun:

Inheritance graph
[legend]
Collaboration diagram for MarSysBinningFun:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MarSysBinningFun (const TMarSyst &marsyst_, TFile *outfile_)
 Default: Create an empty binning.

virtual int operator() () const
 Returns a bin number between -1 and getNBins()-1.

virtual const char * getBinName (int i) const
 returns a name string.

virtual const char * getBinTitle (int i) const
 returns a title string.

virtual int getNBins () const

Protected Types

typedef map< string, int > SysStringMap
typedef map< int, string > SysIntMap

Protected Member Functions

virtual ~MarSysBinningFun ()
 Protected destructor to ensure creation on the heap.


Protected Attributes

const TMarSystmarsyst
TFile * outfile
int nbins
SysStringMap sysstringmap
SysIntMap sysintmap

Member Typedef Documentation

typedef map<string, int> MarSysBinningFun::SysStringMap [protected]
 

Definition at line 83 of file MarSysBinningFun.h.

typedef map<int, string> MarSysBinningFun::SysIntMap [protected]
 

Definition at line 84 of file MarSysBinningFun.h.


Constructor & Destructor Documentation

MarSysBinningFun::MarSysBinningFun const TMarSyst marsyst_,
TFile *  outfile_
 

Default: Create an empty binning.

Definition at line 8 of file MarSysBinningFun.C.

References marsyst, nbins, TMarSyst::ScalesToBeDone, sysintmap, and sysstringmap.

virtual MarSysBinningFun::~MarSysBinningFun  )  [inline, protected, virtual]
 

Protected destructor to ensure creation on the heap.

Definition at line 91 of file MarSysBinningFun.h.


Member Function Documentation

int MarSysBinningFun::operator()  )  const [virtual]
 

Returns a bin number between -1 and getNBins()-1.

Definition at line 25 of file MarSysBinningFun.C.

References marsyst, TMarSyst::Name, and sysstringmap.

const char * MarSysBinningFun::getBinName int  i  )  const [virtual]
 

returns a name string.

The name string MAY, and MUST, be destroyed by the user! therefore: you MUST NOT return a string constant here, like "dummy", but use new[] to allocate the string. The name string should be short, unique, and contain no spaces, like "tbin0".

Parameters:
i  The bin number

Definition at line 33 of file MarSysBinningFun.C.

References outfile, and sysintmap.

const char * MarSysBinningFun::getBinTitle int  i  )  const [virtual]
 

returns a title string.

The name string MAY, and MUST, be destroyed by the user! therefore: you MUST NOT return a string constant here, like "dummy", but use new[] to allocate the string. The name string should describe the bin, like "0.1 < t < 0.5".

Parameters:
i  The bin number

Definition at line 43 of file MarSysBinningFun.C.

References sysintmap.

virtual int MarSysBinningFun::getNBins  )  const [inline, virtual]
 

Definition at line 80 of file MarSysBinningFun.h.

References nbins.


Member Data Documentation

const TMarSyst& MarSysBinningFun::marsyst [protected]
 

Definition at line 85 of file MarSysBinningFun.h.

Referenced by MarSysBinningFun(), and operator()().

TFile* MarSysBinningFun::outfile [protected]
 

Definition at line 86 of file MarSysBinningFun.h.

Referenced by getBinName().

int MarSysBinningFun::nbins [protected]
 

Definition at line 87 of file MarSysBinningFun.h.

Referenced by getNBins(), and MarSysBinningFun().

SysStringMap MarSysBinningFun::sysstringmap [protected]
 

Definition at line 88 of file MarSysBinningFun.h.

Referenced by MarSysBinningFun(), and operator()().

SysIntMap MarSysBinningFun::sysintmap [protected]
 

Definition at line 89 of file MarSysBinningFun.h.

Referenced by getBinName(), getBinTitle(), and MarSysBinningFun().


The documentation for this class was generated from the following files:
Generated on Thu Jul 28 11:49:11 2005 for SFHMarana by doxygen 1.3.2