CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
DummyLoadOldROOTAlg.cc
Go to the documentation of this file.
1
3#include "GaudiKernel/MsgStream.h"
4
5#include "TFile.h"
6#include "TSystem.h"
7
8DummyLoadOldROOTAlg::DummyLoadOldROOTAlg(const std::string& name, ISvcLocator* pSvcLocator)
9 : Algorithm(name, pSvcLocator)
10{
11 declareProperty("OldRootList", m_string_vec);
12}
13
15 MsgStream log(msgSvc(), name());
16
17 std::vector<std::string>::iterator it;
18 for (it = m_string_vec.begin(); it != m_string_vec.end(); ++it) {
19 TString tmpfn = (*it).c_str();
20 gSystem->ExpandPathName(tmpfn);
21
22 TFile* tmp = new TFile(tmpfn);
23 log << MSG::DEBUG << "Try to Load File: " << *it << endreq;
24 if (!tmp) {
25 log << MSG::WARNING << "Load File Failed: " << *it << endreq;
26 continue;
27 }
28 }
29 return StatusCode::SUCCESS;
30}
31
33 return StatusCode::SUCCESS;
34}
35
37 return StatusCode::SUCCESS;
38}
IMessageSvc * msgSvc()
DummyLoadOldROOTAlg(const std::string &name, ISvcLocator *pSvcLocator)