/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Utilities/DummyLoadOldROOT/DummyLoadOldROOT-00-00-01/src/DummyLoadOldROOTAlg.cc

Go to the documentation of this file.
00001 
00002 #include "DummyLoadOldROOTAlg.h"
00003 #include "GaudiKernel/MsgStream.h"
00004 
00005 #include "TFile.h"
00006 #include "TSystem.h"
00007 
00008 DummyLoadOldROOTAlg::DummyLoadOldROOTAlg(const std::string& name, ISvcLocator* pSvcLocator)
00009         : Algorithm(name, pSvcLocator) 
00010 {
00011         declareProperty("OldRootList", m_string_vec);
00012 }
00013 
00014 StatusCode DummyLoadOldROOTAlg::initialize() {
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 }
00031 
00032 StatusCode DummyLoadOldROOTAlg::execute() {
00033         return StatusCode::SUCCESS;
00034 }
00035 
00036 StatusCode DummyLoadOldROOTAlg::finalize() {
00037         return StatusCode::SUCCESS;
00038 }

Generated on Tue Nov 29 23:14:43 2016 for BOSS_7.0.2 by  doxygen 1.4.7