Definition at line 437 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 441 of file hcg.cxx.
446 std::cerr <<
"opening file " <<
f << std::endl;
448 TFile*
r = TFile::Open(
f.c_str());
450 std::cerr <<
"cannot open root file " <<
f << std::endl;
460 for (
int i=0 ;
i<
tl->GetSize() ;
i++ ) {
462 TKey* tobj = (TKey*)
tl->At(
i);
464 if ( std::string(tobj->GetClassName()).find(
"TDirectory")!=std::string::npos ) {
467 TDirectory* tnd = (TDirectory*)tobj->ReadObj();
469 std::string
dir = tnd->GetName();
472 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: