// ---------------------------------------------------------------------- // // HepFileManager.icc - header file for abstract base class providing // interface to any concrete histogram/Ntuple file manager // // History: // 08-Sep-1997 Walter Brown Split out from HepFileManager.h // // ---------------------------------------------------------------------- ZM_BEGIN_NAMESPACE( zmht ) /* namespace zmht { */ // accessors: inline std::string HepFileManager::fileName() const { return fileName_; } inline std::string HepFileManager::rootDir() const { return rootDir_; } inline bool HepFileManager::isReadOnly() const { return isReadOnly_; } inline bool HepFileManager::setReadOnly ( bool flag ) { bool old = isReadOnly_; isReadOnly_ = flag; return old; } #ifdef BABAR // ************************************************************************* // // define accessor that return pointers instead of reference to ease // // babar's transition // inline HepHist1D* HepFileManager::newHist1D ( const char title[], const int nBins, const float low, const float high, const int hid ) { return &(hist1D(title,nBins,low,high,hid)); } inline HepHist2D* HepFileManager::newHist2D( // 2-D const char title[], const int nBinsX, const float lowX, const float highX, const int nBinsY, const float lowY, const float highY, const int hid ) { return &(hist2D(title,nBinsX,lowX,highX,nBinsY,lowY,highY,hid)); } inline HepHistProf* HepFileManager::newHistProf( // profile plot const char title[], const int nBinsX, const float lowX, const float highX, const float lowY, const float highY, const char chopt[], const int hid ) { return &(histProf(title,nBinsX,lowX,highX,lowY,highY,hid)); } inline HepHistProf* HepFileManager::newHistProf( // profile plot const char title[], const int nBinsX, const float lowX, const float highX, const float lowY, const float highY, const int hid ) { return &(histProf(title,nBinsX,lowX,highX,lowY,highY,hid)); } inline HepNtuple* HepFileManager::newNtuple( // Ntuple const char title[], const int hid ) { return &(ntuple(title,hid)); } #endif ZM_END_NAMESPACE( zmht ) /* } // namespace zmht */