Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

Anaphe::AIDA_HBook::AIDAHistoManager Class Reference

#include <AIDAHistoManager.h>

List of all members.

Public Methods

 AIDAHistoManager (IHistoFactory *f=0)
virtual ~AIDAHistoManager (void)
bool unregister (IHistogram *)
bool register1D (IHistogram1D *)
bool register2D (IHistogram2D *)
bool register3D (IHistogram3D *)
bool registerProf (IProfileHistogram *)
IHistogram1D * retrieveHisto1D (const char *label)
IHistogram2D * retrieveHisto2D (const char *label)
IHistogram3D * retrieveHisto3D (const char *label)
IProfileHistogram * retrieveProf (const char *label)
void deleteHisto (const char *label)
void list (AIDA_STD::ostream &os)
void disableOverwrite (void)
void enableOverwrite (void)
void disableWarnOverwrite (void)
void enableWarnOverwrite (void)
void setFactory (IHistoFactory *)
IHistogram1D * create1D (const char *label, const char *title="", int nBinsx=10, double xmin=0.0, double xmax=10.0, const char *options=0)
IHistogram2D * create2D (const char *label, const char *title="", int nBinsx=10, double xmin=0.0, double xmax=10.0, int nBinsy=10, double ymin=0.0, double ymax=10.0, const char *options=0)
IHistogram3D * create3D (const char *label, const char *title="", int nBinsx=10, double xmin=0.0, double xmax=10.0, int nBinsy=10, double ymin=0.0, double ymax=10.0, int nBinsz=10, double zmin=0.0, double zmax=10.0, const char *options=0)
virtual IProfileHistogram * createProfile (const char *label, const char *title, int nBinsx=10, double xmin=0.0, double xmax=10.0, const char *options=0)
IHistogram1D * createDynamic1D (const char *label, const char *title="", const int nBinsx=100)
virtual IHistogram1D * create1DVar (const char *label, const char *title, AIDA_STD::vector< float > binEdge, const char *options=0)
virtual IHistogram2D * create2DVar (const char *label, const char *title, AIDA_STD::vector< float > binEdgeX, AIDA_STD::vector< float > binEdgeY, const char *options=0)
IHistogram1D * load1D (const char *label)
IHistogram2D * load2D (const char *label)
IHistogram3D * load3D (const char *label)
IProfileHistogram * loadProf (const char *label)
void scratchHisto (const char *label)
void store (const char *label)
void selectStore (const char *name, const char *topDir=0)
void mkdir (const char *name)
void rmdir (const char *name)
void cd (const char *name)
void ls (void) const
void pwd (void) const

Private Methods

void notDoneMessage (const AIDA_STD::string &featureName) const
void notInHBOOKMessage (const AIDA_STD::string &featureName) const
void registerErrorMessage (void) const
void histoNotFoundMessage (const AIDA_STD::string &label) const
void noOverwriteMessage (const AIDA_STD::string &label) const
void deletionSuccessfulMessage (const AIDA_STD::string &label) const
void crisisMessage (const AIDA_STD::string &featureName) const
void cleanUp (void)
bool checkAndDeleteHisto (const AIDA_STD::string &label)
bool in1DList (const AIDA_STD::string &label) const
bool in2DList (const AIDA_STD::string &label) const
bool inProfList (const AIDA_STD::string &label) const
void formPrint (AIDA_STD::ostream &, const AIDA_STD::string &label, const AIDA_STD::string &title) const
bool removeWithWarnings (const AIDA_STD::string &label, IHistogram *histo)

Private Attributes

AIDA_STD::map< AIDA_STD::string,
IHistogram1D * > 
histo1DList
AIDA_STD::map< AIDA_STD::string,
IHistogram2D * > 
histo2DList
AIDA_STD::map< AIDA_STD::string,
IProfileHistogram * > 
histoProfList
IHistoFactory * hFact
bool ownsFactory
bool overwriteHisto
bool warnOverwrite


Constructor & Destructor Documentation

AIDAHistoManager::AIDAHistoManager IHistoFactory *    f = 0
 

Definition at line 53 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, and ownsFactory.

AIDAHistoManager::~AIDAHistoManager void    [virtual]
 

Definition at line 71 of file AIDAHistoManager.cpp.

References cleanUp(), and hFact.


Member Function Documentation

void AIDAHistoManager::cd const char *    name
 

Definition at line 522 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

bool AIDAHistoManager::checkAndDeleteHisto const AIDA_STD::string &    label [private]
 

Definition at line 643 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, histo1DList, histo2DList, histoProfList, Anaphe::AIDA_HBook::map1DIt, Anaphe::AIDA_HBook::map2DIt, Anaphe::AIDA_HBook::mapProfIt, and removeWithWarnings().

Referenced by deleteHisto(), register1D(), register2D(), and registerProf().

void AIDAHistoManager::cleanUp void    [private]
 

Definition at line 623 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, histo1DList, histo2DList, histoProfList, Anaphe::AIDA_HBook::map1DIt, Anaphe::AIDA_HBook::map2DIt, and Anaphe::AIDA_HBook::mapProfIt.

Referenced by deleteHisto(), and ~AIDAHistoManager().

IHistogram1D * AIDAHistoManager::create1D const char *    label,
const char *    title = "",
int    nBinsx = 10,
double    xmin = 0.0,
double    xmax = 10.0,
const char *    options = 0
 

Definition at line 291 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, register1D(), and registerErrorMessage().

IHistogram1D * AIDAHistoManager::create1DVar const char *    label,
const char *    title,
AIDA_STD::vector< float >    binEdge,
const char *    options = 0
[virtual]
 

Definition at line 383 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, register1D(), and registerErrorMessage().

IHistogram2D * AIDAHistoManager::create2D const char *    label,
const char *    title = "",
int    nBinsx = 10,
double    xmin = 0.0,
double    xmax = 10.0,
int    nBinsy = 10,
double    ymin = 0.0,
double    ymax = 10.0,
const char *    options = 0
 

Definition at line 310 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, register2D(), and registerErrorMessage().

IHistogram2D * AIDAHistoManager::create2DVar const char *    label,
const char *    title,
AIDA_STD::vector< float >    binEdgeX,
AIDA_STD::vector< float >    binEdgeY,
const char *    options = 0
[virtual]
 

Definition at line 402 of file AIDAHistoManager.cpp.

References notInHBOOKMessage().

IHistogram3D * AIDAHistoManager::create3D const char *    label,
const char *    title = "",
int    nBinsx = 10,
double    xmin = 0.0,
double    xmax = 10.0,
int    nBinsy = 10,
double    ymin = 0.0,
double    ymax = 10.0,
int    nBinsz = 10,
double    zmin = 0.0,
double    zmax = 10.0,
const char *    options = 0
 

Definition at line 331 of file AIDAHistoManager.cpp.

References notInHBOOKMessage().

IHistogram1D * AIDAHistoManager::createDynamic1D const char *    label,
const char *    title = "",
const int    nBinsx = 100
 

Definition at line 365 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, register1D(), and registerErrorMessage().

IProfileHistogram * AIDAHistoManager::createProfile const char *    label,
const char *    title,
int    nBinsx = 10,
double    xmin = 0.0,
double    xmax = 10.0,
const char *    options = 0
[virtual]
 

Definition at line 345 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, registerErrorMessage(), and registerProf().

void AIDAHistoManager::crisisMessage const AIDA_STD::string &    featureName const [private]
 

Definition at line 613 of file AIDAHistoManager.cpp.

Referenced by AIDAHistoManager(), cd(), checkAndDeleteHisto(), cleanUp(), create1D(), create1DVar(), create2D(), createDynamic1D(), createProfile(), load1D(), load2D(), loadProf(), ls(), mkdir(), pwd(), rmdir(), scratchHisto(), selectStore(), and store().

void AIDAHistoManager::deleteHisto const char *    label
 

Definition at line 201 of file AIDAHistoManager.cpp.

References checkAndDeleteHisto(), cleanUp(), and overwriteHisto.

void AIDAHistoManager::deletionSuccessfulMessage const AIDA_STD::string &    label const [private]
 

Definition at line 604 of file AIDAHistoManager.cpp.

Referenced by removeWithWarnings().

void AIDAHistoManager::disableOverwrite void   
 

Definition at line 249 of file AIDAHistoManager.cpp.

References overwriteHisto.

void AIDAHistoManager::disableWarnOverwrite void   
 

Definition at line 265 of file AIDAHistoManager.cpp.

References warnOverwrite.

void AIDAHistoManager::enableOverwrite void   
 

Definition at line 257 of file AIDAHistoManager.cpp.

References overwriteHisto.

void AIDAHistoManager::enableWarnOverwrite void   
 

Definition at line 273 of file AIDAHistoManager.cpp.

References warnOverwrite.

void AIDAHistoManager::formPrint AIDA_STD::ostream &   ,
const AIDA_STD::string &    label,
const AIDA_STD::string &    title
const [private]
 

Definition at line 706 of file AIDAHistoManager.cpp.

Referenced by list().

void AIDAHistoManager::histoNotFoundMessage const AIDA_STD::string &    label const [private]
 

Definition at line 586 of file AIDAHistoManager.cpp.

Referenced by store().

bool AIDAHistoManager::in1DList const AIDA_STD::string &    label const [private]
 

Definition at line 673 of file AIDAHistoManager.cpp.

References histo1DList, and Anaphe::AIDA_HBook::map1DCIt.

Referenced by store().

bool AIDAHistoManager::in2DList const AIDA_STD::string &    label const [private]
 

Definition at line 684 of file AIDAHistoManager.cpp.

References histo2DList, and Anaphe::AIDA_HBook::map2DCIt.

Referenced by store().

bool AIDAHistoManager::inProfList const AIDA_STD::string &    label const [private]
 

Definition at line 695 of file AIDAHistoManager.cpp.

References histoProfList, and Anaphe::AIDA_HBook::mapProfCIt.

Referenced by store().

void AIDAHistoManager::list AIDA_STD::ostream &    os
 

Definition at line 218 of file AIDAHistoManager.cpp.

References formPrint(), histo1DList, histo2DList, histoProfList, Anaphe::AIDA_HBook::map1DIt, Anaphe::AIDA_HBook::map2DIt, and Anaphe::AIDA_HBook::mapProfIt.

IHistogram1D * AIDAHistoManager::load1D const char *    label
 

Definition at line 414 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, register1D(), and registerErrorMessage().

IHistogram2D * AIDAHistoManager::load2D const char *    label
 

Definition at line 430 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, register2D(), and registerErrorMessage().

IHistogram3D * AIDAHistoManager::load3D const char *    label
 

Definition at line 446 of file AIDAHistoManager.cpp.

References notInHBOOKMessage().

IProfileHistogram * AIDAHistoManager::loadProf const char *    label
 

Definition at line 455 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, registerErrorMessage(), and registerProf().

void AIDAHistoManager::ls void    const
 

Definition at line 531 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

void AIDAHistoManager::mkdir const char *    name
 

Definition at line 504 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

void AIDAHistoManager::noOverwriteMessage const AIDA_STD::string &    label const [private]
 

Definition at line 595 of file AIDAHistoManager.cpp.

Referenced by removeWithWarnings().

void AIDAHistoManager::notDoneMessage const AIDA_STD::string &    featureName const [private]
 

Definition at line 554 of file AIDAHistoManager.cpp.

void AIDAHistoManager::notInHBOOKMessage const AIDA_STD::string &    featureName const [private]
 

Definition at line 565 of file AIDAHistoManager.cpp.

Referenced by create2DVar(), create3D(), load3D(), register3D(), and retrieveHisto3D().

void AIDAHistoManager::pwd void    const
 

Definition at line 540 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

bool AIDAHistoManager::register1D IHistogram1D *   
 

Definition at line 112 of file AIDAHistoManager.cpp.

References checkAndDeleteHisto(), and histo1DList.

Referenced by create1D(), create1DVar(), createDynamic1D(), and load1D().

bool AIDAHistoManager::register2D IHistogram2D *   
 

Definition at line 124 of file AIDAHistoManager.cpp.

References checkAndDeleteHisto(), and histo2DList.

Referenced by create2D(), and load2D().

bool AIDAHistoManager::register3D IHistogram3D *   
 

Definition at line 136 of file AIDAHistoManager.cpp.

References notInHBOOKMessage().

void AIDAHistoManager::registerErrorMessage void    const [private]
 

Definition at line 577 of file AIDAHistoManager.cpp.

Referenced by create1D(), create1DVar(), create2D(), createDynamic1D(), createProfile(), load1D(), load2D(), and loadProf().

bool AIDAHistoManager::registerProf IProfileHistogram *   
 

Definition at line 145 of file AIDAHistoManager.cpp.

References checkAndDeleteHisto(), and histoProfList.

Referenced by createProfile(), and loadProf().

bool AIDAHistoManager::removeWithWarnings const AIDA_STD::string &    label,
IHistogram *    histo
[private]
 

Definition at line 719 of file AIDAHistoManager.cpp.

References deletionSuccessfulMessage(), hFact, noOverwriteMessage(), and overwriteHisto.

Referenced by checkAndDeleteHisto().

IHistogram1D * AIDAHistoManager::retrieveHisto1D const char *    label
 

Definition at line 158 of file AIDAHistoManager.cpp.

References histo1DList, and Anaphe::AIDA_HBook::map1DIt.

IHistogram2D * AIDAHistoManager::retrieveHisto2D const char *    label
 

Definition at line 169 of file AIDAHistoManager.cpp.

References histo2DList, and Anaphe::AIDA_HBook::map2DIt.

IHistogram3D * AIDAHistoManager::retrieveHisto3D const char *    label
 

Definition at line 180 of file AIDAHistoManager.cpp.

References notInHBOOKMessage().

IProfileHistogram * AIDAHistoManager::retrieveProf const char *    label
 

Definition at line 189 of file AIDAHistoManager.cpp.

References histoProfList, and Anaphe::AIDA_HBook::mapProfIt.

void AIDAHistoManager::rmdir const char *    name
 

Definition at line 513 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

void AIDAHistoManager::scratchHisto const char *    label
 

Definition at line 472 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

void AIDAHistoManager::selectStore const char *    name,
const char *    topDir = 0
 

Definition at line 494 of file AIDAHistoManager.cpp.

References crisisMessage(), and hFact.

void AIDAHistoManager::setFactory IHistoFactory *   
 

Definition at line 281 of file AIDAHistoManager.cpp.

References hFact.

void AIDAHistoManager::store const char *    label
 

Definition at line 481 of file AIDAHistoManager.cpp.

References crisisMessage(), hFact, histo1DList, histo2DList, histoNotFoundMessage(), histoProfList, in1DList(), in2DList(), and inProfList().

bool AIDAHistoManager::unregister IHistogram *   
 

Definition at line 85 of file AIDAHistoManager.cpp.

References histo1DList, histo2DList, histoProfList, Anaphe::AIDA_HBook::map1DIt, Anaphe::AIDA_HBook::map2DIt, and Anaphe::AIDA_HBook::mapProfIt.


Member Data Documentation

IHistoFactory* Anaphe::AIDA_HBook::AIDAHistoManager::hFact [private]
 

Definition at line 138 of file AIDAHistoManager.h.

Referenced by AIDAHistoManager(), cd(), checkAndDeleteHisto(), cleanUp(), create1D(), create1DVar(), create2D(), createDynamic1D(), createProfile(), load1D(), load2D(), loadProf(), ls(), mkdir(), pwd(), removeWithWarnings(), rmdir(), scratchHisto(), selectStore(), setFactory(), store(), and ~AIDAHistoManager().

AIDA_STD::map<AIDA_STD::string,IHistogram1D*> Anaphe::AIDA_HBook::AIDAHistoManager::histo1DList [private]
 

Definition at line 135 of file AIDAHistoManager.h.

Referenced by checkAndDeleteHisto(), cleanUp(), in1DList(), list(), register1D(), retrieveHisto1D(), store(), and unregister().

AIDA_STD::map<AIDA_STD::string,IHistogram2D*> Anaphe::AIDA_HBook::AIDAHistoManager::histo2DList [private]
 

Definition at line 136 of file AIDAHistoManager.h.

Referenced by checkAndDeleteHisto(), cleanUp(), in2DList(), list(), register2D(), retrieveHisto2D(), store(), and unregister().

AIDA_STD::map<AIDA_STD::string,IProfileHistogram*> Anaphe::AIDA_HBook::AIDAHistoManager::histoProfList [private]
 

Definition at line 137 of file AIDAHistoManager.h.

Referenced by checkAndDeleteHisto(), cleanUp(), inProfList(), list(), registerProf(), retrieveProf(), store(), and unregister().

bool Anaphe::AIDA_HBook::AIDAHistoManager::overwriteHisto [private]
 

Definition at line 140 of file AIDAHistoManager.h.

Referenced by deleteHisto(), disableOverwrite(), enableOverwrite(), and removeWithWarnings().

bool Anaphe::AIDA_HBook::AIDAHistoManager::ownsFactory [private]
 

Definition at line 139 of file AIDAHistoManager.h.

Referenced by AIDAHistoManager().

bool Anaphe::AIDA_HBook::AIDAHistoManager::warnOverwrite [private]
 

Definition at line 141 of file AIDAHistoManager.h.

Referenced by disableWarnOverwrite(), and enableWarnOverwrite().


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

Anaphe documentation generated by Doxygen (www.doxygen.org)