#include <HanConfig.h>
Definition at line 76 of file HanConfig.h.
◆ RefVisitor()
| dqi::HanConfig::RefVisitor::RefVisitor |
( |
TFile * | outfile_, |
|
|
HanConfig::DirMap_t & | directories_, |
|
|
TMap * | refsourcedata ) |
Definition at line 366 of file HanConfig.cxx.
371{
372}
HanConfig::DirMap_t & m_directories
◆ Visit()
Implements dqi::MiniConfigTreeNode::Visitor.
Definition at line 376 of file HanConfig.cxx.
378{
380 std::string
name = node->GetAttribute(
"name");
381 std::string
fileName = node->GetAttribute(
"file");
382 if( fileName != "" && name != "" && name != "same_name" ) {
384 std::string refInfo = node->GetAttribute("info");
385 if (refInfo == "") {
386 std::cerr <<
"INFO: Reference " <<
name <<
" is defined without an \"info\" attribute. Consider adding one"
387 << std::endl;
388 }
391 if( key == 0 ) {
392 std::cerr <<
"WARNING: HanConfig::RefVisitor::Visit(): Reference not found: \"" <<
name <<
"\"\n";
393 return;
394 }
395
396
397
400
402
403
405 obj->Write(newHistoName.c_str());
407 TObjString* fnameostr =
new TObjString(
fileName.c_str());
409 fnameostr);
411 m_refsourcedata->Add(fnameostr->Clone(), refInfo !=
"" ?
new TObjString(refInfo.c_str())
412 : new TObjString("Reference"));
413 }
414 }
415}
static ConditionsSingleton & getInstance()
void setNewReferenceName(const std::string &, const std::string &)
std::string getNewRefHistoName()
std::string SplitReference(std::string refPath, const std::string &refName)
TKey * getObjKey(TDirectory *dir, const std::string &path)
◆ m_directories
◆ m_outfile
| TFile* dqi::HanConfig::RefVisitor::m_outfile {} |
|
protected |
◆ m_refsourcedata
| TMap* dqi::HanConfig::RefVisitor::m_refsourcedata {} |
|
protected |
The documentation for this class was generated from the following files: