Definition at line 438 of file hcg.cxx.
◆ reference() [1/2]
| reference::reference |
( |
const std::string & |
n, |
|
|
const std::string & |
f |
|
) |
| |
|
inline |
oh dear, find the run number from the specified file
go through sub directories
Definition at line 442 of file hcg.cxx.
447 std::cerr <<
"opening file " <<
f << std::endl;
449 TFile*
r = TFile::Open(
f.c_str());
451 std::cerr <<
"cannot open root file " <<
f << std::endl;
461 for (
int i=0 ;
i<
tl->GetSize() ;
i++ ) {
463 TKey* tobj = (TKey*)
tl->At(
i);
465 if ( std::string(tobj->GetClassName()).find(
"TDirectory")!=std::string::npos ) {
468 TDirectory* tnd = (TDirectory*)tobj->ReadObj();
470 std::string
dir = tnd->GetName();
473 dir.erase( 0, std::string(
"run_").size() );
◆ reference() [2/2]
◆ file()
| const std::string& reference::file |
( |
| ) |
const |
|
inline |
◆ name()
| const std::string& reference::name |
( |
| ) |
const |
|
inline |
◆ run()
| int reference::run |
( |
| ) |
const |
|
inline |
◆ m_file
| std::string reference::m_file |
|
private |
◆ m_name
| std::string reference::m_name |
|
private |
◆ m_run
The documentation for this class was generated from the following file: