BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
DummyLoadOldROOTAlg Class Reference

#include <DummyLoadOldROOTAlg.h>

+ Inheritance diagram for DummyLoadOldROOTAlg:

Public Member Functions

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

Detailed Description

Definition at line 7 of file DummyLoadOldROOTAlg.h.

Constructor & Destructor Documentation

◆ DummyLoadOldROOTAlg()

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

Definition at line 8 of file DummyLoadOldROOTAlg.cc.

9 : Algorithm(name, pSvcLocator)
10{
11 declareProperty("OldRootList", m_string_vec);
12}

Member Function Documentation

◆ execute()

StatusCode DummyLoadOldROOTAlg::execute ( )

Definition at line 32 of file DummyLoadOldROOTAlg.cc.

32 {
33 return StatusCode::SUCCESS;
34}

◆ finalize()

StatusCode DummyLoadOldROOTAlg::finalize ( )

Definition at line 36 of file DummyLoadOldROOTAlg.cc.

36 {
37 return StatusCode::SUCCESS;
38}

◆ initialize()

StatusCode DummyLoadOldROOTAlg::initialize ( )

Definition at line 14 of file DummyLoadOldROOTAlg.cc.

14 {
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}

The documentation for this class was generated from the following files: