tdaq-develop-2025-02-12
|
Public Member Functions | |
RootFileExplorer (string fSystemPath, string fRootPath, string fFoldersPath, string fHistName, string fRFoldersPath, string fFileName, TFile *rootFile=((void *) 0)) | |
xercesc::DOMDocument * | initialize (bool liveDQMFlag) |
void | makeDirectoryBinaryTree (TDirectory *currentDirectory, int indent, xercesc::DOMElement *anchorNode) |
void | makeLiveDQMBinaryTree (TDirectory *currentDirectory, int indent, std::string subDirName, xercesc::DOMElement *anchorNode) |
xercesc::DOMElement * | populateBinaryTreeNode (xercesc::DOMElement *anchorNode, std::string name, bool isLeaf) |
void | initializeXMLWriter (void) |
Definition at line 77 of file RootFileExplorer.h.
void RootFileExplorer::makeDirectoryBinaryTree | ( | TDirectory * | currentDirectory, |
int | indent, | ||
xercesc::DOMElement * | anchorNode | ||
) |
STDLINE(currentDirectory->GetName(),string(ACCyan)+string(ACReverse)) ;
STDLINE(ss_.str(),"") ;
STDLINE(ss_.str(),"") ;
anchorNodeLast_ = this->populateBinaryTreeNode(anchorNode, objName, level, false) ;
anchorNode = this->populateBinaryTreeNode(anchorNodeLast_, objName, level, true ) ;
Definition at line 306 of file RootFileExplorer.cpp.
void RootFileExplorer::makeLiveDQMBinaryTree | ( | TDirectory * | currentDirectory, |
int | indent, | ||
std::string | subDirName, | ||
xercesc::DOMElement * | anchorNode | ||
) |
xercesc::DOMElement * node = NULL ;
STDLINE(currentDir->GetName(),string(ACCyan)+string(ACReverse)) ;
STDLINE("currentDir->ls()",ACReverse) ; currentDir->ls() ;
Definition at line 247 of file RootFileExplorer.cpp.
xercesc::DOMElement * RootFileExplorer::populateBinaryTreeNode | ( | xercesc::DOMElement * | anchorNode, |
std::string | name, | ||
bool | isLeaf | ||
) |
theSerializer_->write(theDocument_, theOutput_);
xercesc::DOMElement * iconCls = theDocument_->createElement( xercesc::XMLString::transcode("iconCls" )); node->appendChild(iconCls);
if(isLeaf) { xercesc::DOMText * iconVal = theDocument_->createTextNode(xercesc::XMLString::transcode("histogram-leaf-icon" )); iconCls->appendChild(iconVal); } else { xercesc::DOMText * iconVal = theDocument_->createTextNode(xercesc::XMLString::transcode("x-tree-icon x-tree-icon-parent" )); iconCls->appendChild(iconVal); }
if( debug_ ) { STDLINE(string("fSystemPath_ : ")+fSystemPath_ ,ACRed); STDLINE(string("fRootPath_ : ")+fRootPath_ ,ACRed); STDLINE(string("fFoldersPath_ : ")+fFoldersPath_ ,ACRed); STDLINE(string("fFileName_ : ")+fFileName_ ,ACRed); STDLINE(string("fRFoldersPath_: ")+fRFoldersPath_,string(ACRed)+string(ACReverse)); STDLINE(string("fHistName_ : ")+name ,ACRed); }
name | int level , |
isLeaf | int level , |
Definition at line 126 of file RootFileExplorer.cpp.