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

MaranaEventLoop Class Reference

#include <MaranaEventLoop.h>

Inheritance diagram for MaranaEventLoop:

Inheritance graph
[legend]
Collaboration diagram for MaranaEventLoop:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MaranaEventLoop (const TRunHisto &run, string Tag, string textfile="")
 ~MaranaEventLoop ()
void Fill ()
 trigger self-filling process

void Draw (TPad *pad, TVirtualPS *ps, Option_t *option, bool across, Int_t nx, Int_t ny, bool log, bool recursive)
 Draw all histograms in rolist.

bool ParseHistos (istringstream &inParams, string &type, Int_t hoffset, string Tag, list< string > &PartTags, const Short_t SysNum=0)
 overwrite parsing from THistoManager

void ReadParamssfh1f (istream &inParams, const string &type, Int_t hoffset, Short_t SysNum, Bool_t BookforSys)
 parse steering for self-filling set of 1d histograms

void ReadParamssfhprof (istream &inParams, const string &type, Int_t hoffset, Short_t SysNum, Bool_t BookforSys)
 parse steering for self-filling set of profile histograms

void ReadParamssfh2f (istream &inParams, const string &type, Int_t hoffset, Short_t SysNum, Bool_t BookforSys)
 parse steering for self-filling set of 2d histograms

void ReadParamsdef (istream &inParams, Short_t SysNum)
 parse steering for definition of function objects

void ReadParamsbin (istream &inParams, Short_t SysNum)
 parse steering for binning

void ReadParamssfseth1f (istream &inParams, const string &type, Int_t hoffset, Short_t SysNum, Bool_t BookforSys)
 parse steering for self-filling differential set of 1d histograms

void ReadParamstypecut (istream &inParams, const string &type)
 parse steering for cut definition for a type


Static Public Member Functions

Binning * ReadBinningInfo (istream &is)
 Read in binning information.

BinningFunReadBinningFunInfo (istream &is)
 Read in binning function information.

std::string ReadString (istream &is, char delim='\0')
 Read in a string (with or without quotation marks), remove leading and trailing spaces.


Private Attributes

SFROList * fillrolist
 The "master" list of all self-filling objects.

SFCutROList * rolist
 A pointer to the "current" list of all self-filling objects.

MarSysBinningFunsysfun
BaseCutsyscut

Constructor & Destructor Documentation

MaranaEventLoop::MaranaEventLoop const TRunHisto run,
string  Tag,
string  textfile = ""
 

MaranaEventLoop::~MaranaEventLoop  ) 
 

Definition at line 139 of file MaranaEventLoop.C.


Member Function Documentation

void MaranaEventLoop::Fill  ) 
 

trigger self-filling process

Definition at line 143 of file MaranaEventLoop.C.

References fillrolist.

Referenced by main().

void MaranaEventLoop::Draw TPad *  pad,
TVirtualPS *  ps,
Option_t *  option,
bool  across,
Int_t  nx,
Int_t  ny,
bool  log,
bool  recursive
 

Draw all histograms in rolist.

Definition at line 150 of file MaranaEventLoop.C.

References fillrolist.

Referenced by main().

bool MaranaEventLoop::ParseHistos istringstream &  inParams,
string &  type,
Int_t  hoffset,
string  Tag,
list< string > &  PartTags,
const Short_t  SysNum = 0
[virtual]
 

overwrite parsing from THistoManager

Parameters:
inParams  The input stream
type  The type name string
hoffset  The number offset for the histograms
Tag  The tag string, i.e. the name of the steering file
SysNum  The systematics number

Reimplemented from THistoManager.

Definition at line 161 of file MaranaEventLoop.C.

References fillrolist, THistoManager::ReadParams1binfh1f(), THistoManager::ReadParams1binVarSizeh1f(), THistoManager::ReadParams1binvh1f(), THistoManager::ReadParams2binfh1f(), THistoManager::ReadParams2binvh1f(), THistoManager::ReadParams2dbin(), ReadParamsbin(), ReadParamsdef(), THistoManager::ReadParamsh1f(), THistoManager::ReadParamsh1fgeneric(), THistoManager::ReadParamsh2f(), ReadParamssfh1f(), ReadParamssfh2f(), ReadParamssfhprof(), ReadParamssfseth1f(), ReadParamstypecut(), and rolist.

void MaranaEventLoop::ReadParamssfh1f istream &  inParams,
const string &  type,
Int_t  hoffset,
Short_t  SysNum,
Bool_t  BookforSys
 

parse steering for self-filling set of 1d histograms

Parameters:
inParams  The input stream
type  The type name string
hoffset  The number offset for the histograms
SysNum  The systematics number
BookforSys  Flag whether systematics histos should also be booked

Definition at line 291 of file MaranaEventLoop.C.

References ReadBinningInfo(), ReadString(), rolist, syscut, and sysfun.

Referenced by ParseHistos().

void MaranaEventLoop::ReadParamssfhprof istream &  inParams,
const string &  type,
Int_t  hoffset,
Short_t  SysNum,
Bool_t  BookforSys
 

parse steering for self-filling set of profile histograms

Parameters:
inParams  The input stream
type  The type name string
hoffset  The number offset for the histograms
SysNum  The systematics number
BookforSys  Flag whether systematics histos should also be booked

Definition at line 373 of file MaranaEventLoop.C.

References ReadBinningInfo(), ReadString(), rolist, syscut, and sysfun.

Referenced by ParseHistos().

void MaranaEventLoop::ReadParamssfh2f istream &  inParams,
const string &  type,
Int_t  hoffset,
Short_t  SysNum,
Bool_t  BookforSys
 

parse steering for self-filling set of 2d histograms

Parameters:
inParams  The input stream
type  The type name string
hoffset  The number offset for the histograms
SysNum  The systematics number
BookforSys  Flag whether systematics histos should also be booked

Definition at line 468 of file MaranaEventLoop.C.

References ReadBinningInfo(), ReadString(), rolist, syscut, and sysfun.

Referenced by ParseHistos().

void MaranaEventLoop::ReadParamsdef istream &  inParams,
Short_t  SysNum
 

parse steering for definition of function objects

Parameters:
inParams  The input stream
SysNum  The systematics number

Definition at line 563 of file MaranaEventLoop.C.

Referenced by ParseHistos().

void MaranaEventLoop::ReadParamsbin istream &  inParams,
Short_t  SysNum
 

parse steering for binning

Parameters:
inParams  The input stream
SysNum  The systematics number

Definition at line 695 of file MaranaEventLoop.C.

References ReadBinningInfo().

Referenced by ParseHistos().

void MaranaEventLoop::ReadParamssfseth1f istream &  inParams,
const string &  type,
Int_t  hoffset,
Short_t  SysNum,
Bool_t  BookforSys
 

parse steering for self-filling differential set of 1d histograms

Parameters:
inParams  The input stream
type  The type name string
hoffset  The number offset for the histograms
SysNum  The systematics number
BookforSys  Flag whether systematics histos should also be booked

Definition at line 609 of file MaranaEventLoop.C.

References ReadBinningFunInfo(), ReadBinningInfo(), ReadString(), rolist, syscut, and sysfun.

Referenced by ParseHistos().

void MaranaEventLoop::ReadParamstypecut istream &  inParams,
const string &  type
 

parse steering for cut definition for a type

Parameters:
inParams  The input stream
type  The type name string

Definition at line 732 of file MaranaEventLoop.C.

References ReadString(), and rolist.

Referenced by ParseHistos().

Binning * MaranaEventLoop::ReadBinningInfo istream &  is  )  [static]
 

Read in binning information.

There are three types of binnings that can be read in by this function:

  • Named binnings (existing Binning objects): Characterized by the name
  • equidistant binning: Characterized by three numbers: nbins xlow xup
  • non-equidistant binning: Characterized by the bin edges in curly braces: {x0 x1 ... xn}

Definition at line 764 of file MaranaEventLoop.C.

Referenced by ReadBinningFunInfo(), ReadParamsbin(), ReadParamssfh1f(), ReadParamssfh2f(), ReadParamssfhprof(), and ReadParamssfseth1f().

BinningFun * MaranaEventLoop::ReadBinningFunInfo istream &  is  )  [static]
 

Read in binning function information.

A BinningFun definition consists of a FloatFun function object plus a binning in [] brackets

Examples: Q2h is a FloatFun object, Q2binning is a named binning:

 [ Q2h Q2binning ]
 [ Q2h 20 0 20000 ]
 [ Q2h { 100 200 500 1000 2000 5000 10000 20000} ]

Warning: always insert a blank before the right ']' brace, otherwise the ] may be considered a part of the binning name!

Definition at line 829 of file MaranaEventLoop.C.

References ReadBinningInfo().

Referenced by ReadParamssfseth1f().

std::string MaranaEventLoop::ReadString istream &  is,
char  delim = '\0'
[static]
 

Read in a string (with or without quotation marks), remove leading and trailing spaces.

Parameters:
is  The input stream
delim  An optional delimiter (like ',')

Definition at line 885 of file MaranaEventLoop.C.

Referenced by ReadParamssfh1f(), ReadParamssfh2f(), ReadParamssfhprof(), ReadParamssfseth1f(), and ReadParamstypecut().


Member Data Documentation

SFROList* MaranaEventLoop::fillrolist [private]
 

The "master" list of all self-filling objects.

Definition at line 137 of file MaranaEventLoop.h.

Referenced by ClassImp(), Draw(), Fill(), and ParseHistos().

SFCutROList* MaranaEventLoop::rolist [private]
 

A pointer to the "current" list of all self-filling objects.

Definition at line 138 of file MaranaEventLoop.h.

Referenced by ClassImp(), ParseHistos(), ReadParamssfh1f(), ReadParamssfh2f(), ReadParamssfhprof(), ReadParamssfseth1f(), and ReadParamstypecut().

MarSysBinningFun* MaranaEventLoop::sysfun [private]
 

Definition at line 139 of file MaranaEventLoop.h.

Referenced by ClassImp(), ReadParamssfh1f(), ReadParamssfh2f(), ReadParamssfhprof(), and ReadParamssfseth1f().

BaseCut* MaranaEventLoop::syscut [private]
 

Definition at line 140 of file MaranaEventLoop.h.

Referenced by ClassImp(), ReadParamssfh1f(), ReadParamssfh2f(), ReadParamssfhprof(), and ReadParamssfseth1f().


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