#include <DummyLoadOldROOTAlg.h>
Public Member Functions | |
DummyLoadOldROOTAlg (const std::string &name, ISvcLocator *pSvcLocator) | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Private Attributes | |
std::vector< std::string > | m_string_vec |
Definition at line 7 of file DummyLoadOldROOTAlg.h.
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 }
StatusCode DummyLoadOldROOTAlg::execute | ( | ) |
StatusCode DummyLoadOldROOTAlg::finalize | ( | ) |
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 }
std::vector<std::string> DummyLoadOldROOTAlg::m_string_vec [private] |
Definition at line 17 of file DummyLoadOldROOTAlg.h.
Referenced by DummyLoadOldROOTAlg(), and initialize().