BOSS 8.0.0
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 declareProperty( "OldRootList", m_string_vec );
11}

Referenced by DummyLoadOldROOTAlg().

Member Function Documentation

◆ execute()

StatusCode DummyLoadOldROOTAlg::execute ( )

Definition at line 33 of file DummyLoadOldROOTAlg.cc.

33{ return StatusCode::SUCCESS; }

◆ finalize()

StatusCode DummyLoadOldROOTAlg::finalize ( )

Definition at line 35 of file DummyLoadOldROOTAlg.cc.

35{ return StatusCode::SUCCESS; }

◆ initialize()

StatusCode DummyLoadOldROOTAlg::initialize ( )

Definition at line 13 of file DummyLoadOldROOTAlg.cc.

13 {
14 MsgStream log( msgSvc(), name() );
15
16 std::vector<std::string>::iterator it;
17 for ( it = m_string_vec.begin(); it != m_string_vec.end(); ++it )
18 {
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 << endmsg;
24 if ( !tmp )
25 {
26 log << MSG::WARNING << "Load File Failed: " << *it << endmsg;
27 continue;
28 }
29 }
30 return StatusCode::SUCCESS;
31}
IMessageSvc * msgSvc()

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