DummyLoadOldROOTAlg Class Reference

#include <DummyLoadOldROOTAlg.h>

List of all members.

Public Member Functions

 DummyLoadOldROOTAlg (const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()

Private Attributes

std::vector< std::stringm_string_vec


Detailed Description

Definition at line 7 of file DummyLoadOldROOTAlg.h.


Constructor & Destructor Documentation

DummyLoadOldROOTAlg::DummyLoadOldROOTAlg ( const std::string name,
ISvcLocator *  pSvcLocator 
)

Definition at line 8 of file DummyLoadOldROOTAlg.cc.

References m_string_vec.

00009         : Algorithm(name, pSvcLocator) 
00010 {
00011         declareProperty("OldRootList", m_string_vec);
00012 }


Member Function Documentation

StatusCode DummyLoadOldROOTAlg::execute (  ) 

Definition at line 32 of file DummyLoadOldROOTAlg.cc.

00032                                         {
00033         return StatusCode::SUCCESS;
00034 }

StatusCode DummyLoadOldROOTAlg::finalize (  ) 

Definition at line 36 of file DummyLoadOldROOTAlg.cc.

00036                                          {
00037         return StatusCode::SUCCESS;
00038 }

StatusCode DummyLoadOldROOTAlg::initialize (  ) 

Definition at line 14 of file DummyLoadOldROOTAlg.cc.

References Bes_Common::DEBUG, m_string_vec, msgSvc(), and Bes_Common::WARNING.

00014                                            {
00015   MsgStream log(msgSvc(), name());
00016 
00017         std::vector<std::string>::iterator it;
00018         for (it = m_string_vec.begin(); it != m_string_vec.end(); ++it) {
00019                 TString tmpfn = (*it).c_str();
00020                 gSystem->ExpandPathName(tmpfn);
00021 
00022                 TFile* tmp = new TFile(tmpfn);
00023                 log << MSG::DEBUG << "Try to Load File: " << *it << endreq;
00024                 if (!tmp) {
00025                         log << MSG::WARNING << "Load File Failed: " << *it << endreq;
00026                         continue;
00027                 }
00028         }
00029         return StatusCode::SUCCESS;
00030 }


Member Data Documentation

std::vector<std::string> DummyLoadOldROOTAlg::m_string_vec [private]

Definition at line 17 of file DummyLoadOldROOTAlg.h.

Referenced by DummyLoadOldROOTAlg(), and initialize().


Generated on Tue Nov 29 23:18:35 2016 for BOSS_7.0.2 by  doxygen 1.4.7