#include <TGoodRunsListReader.h>
Definition at line 34 of file TGoodRunsListReader.h.
 
◆ TGoodRunsListReader() [1/2]
      
        
          | Root::TGoodRunsListReader::TGoodRunsListReader | ( | Bool_t | checkGRLInfo = kFALSE | ) |  | 
      
 
 
◆ TGoodRunsListReader() [2/2]
      
        
          | Root::TGoodRunsListReader::TGoodRunsListReader | ( | const TString & | dataCardName, | 
        
          |  |  | Bool_t | checkGRLInfo = kFALSE | 
        
          |  | ) |  |  | 
      
 
 
◆ ~TGoodRunsListReader()
      
        
          | Root::TGoodRunsListReader::~TGoodRunsListReader | ( |  | ) |  | 
      
 
 
◆ AddXMLFile()
  
  | 
        
          | void Root::TGoodRunsListReader::AddXMLFile | ( | const TString & | xmlfile | ) |  |  | inline | 
 
 
◆ AddXMLString()
  
  | 
        
          | void Root::TGoodRunsListReader::AddXMLString | ( | const TString & | xmlstring | ) |  |  | inline | 
 
 
◆ GetGoodRunsList()
◆ GetGRLCollection()
◆ GetLumiBlockCollection()
  
  | 
        
          | Root::TGoodRun Root::TGoodRunsListReader::GetLumiBlockCollection | ( | TXMLNode * | dataNode | ) |  |  | private | 
 
Definition at line 212 of file TGoodRunsListReader.cxx.
  217   if (!dataNode->HasChildren()) {
 
  223   TXMLNode* 
node = dataNode->GetChildren();
 
  227     if (TString(
"Run")==
node->GetNodeName()) {
 
  232     if (TString(
"LBRange")==
node->GetNodeName() && 
node->HasAttributes()) {
 
  235       TXMLAttr* curAttr( 0 );
 
  236       TListIter attribIt(
node->GetAttributes());
 
  237       while ((curAttr = (TXMLAttr*)attribIt()) != 0) {
 
  238         if (TString(
"Start")==curAttr->GetName()) {
 
  240                    << 
"  =  \"" << curAttr->GetValue() << 
"\"" << 
GEndl;
 
  242         } 
else if (TString(
"End")==curAttr->GetName()) {
 
  244                    << 
"  =  \"" << curAttr->GetValue() << 
"\"" << 
GEndl;
 
  248       if (!lbr.
IsEmpty()) goodrun.push_back(lbr);
 
 
 
 
◆ GetMergedGoodRunsList()
◆ GetMergedGRLCollection()
◆ GetXMLFilename()
  
  | 
        
          | const TString& Root::TGoodRunsListReader::GetXMLFilename | ( |  | ) | const |  | inline | 
 
 
◆ GetXMLString()
  
  | 
        
          | const TString& Root::TGoodRunsListReader::GetXMLString | ( |  | ) | const |  | inline | 
 
 
◆ Interpret()
      
        
          | Bool_t Root::TGoodRunsListReader::Interpret | ( |  | ) |  | 
      
 
Definition at line 71 of file TGoodRunsListReader.cxx.
   73   Bool_t xmlInterpret(kTRUE);
 
   81   TDOMParser* xmlparser = 
new TDOMParser();
 
   86   for (
unsigned int j=0; j<
m_dataCardList.size() && xmlInterpret; ++j) {
 
   91       xmlparser->SetValidate(kFALSE); 
 
  101       xmlInterpret = kFALSE;
 
  104       TXMLDocument* xmldoc = xmlparser->GetXMLDocument();
 
  106       TXMLNode* jobConfig_node = xmldoc->GetRootNode();
 
  107       TXMLNode* jobConfig_elem = jobConfig_node->GetChildren();
 
  109       while (jobConfig_elem != 0) {
 
  110         if (jobConfig_elem->GetNodeName() == TString(
"NamedLumiRange")) {
 
  114         jobConfig_elem = jobConfig_elem->GetNextNode();
 
  123   for (
unsigned int j=0; j<
m_xmlstringList.size() && xmlInterpret; ++j) {
 
  128       xmlparser->SetValidate(kFALSE); 
 
  136     if (parseCode != 0) { 
 
  138       xmlInterpret = kFALSE;
 
  141       TXMLDocument* xmldoc = xmlparser->GetXMLDocument();
 
  143       TXMLNode* jobConfig_node = xmldoc->GetRootNode();
 
  144       TXMLNode* jobConfig_elem = jobConfig_node->GetChildren();
 
  146       while (jobConfig_elem != 0) {
 
  147         if (jobConfig_elem->GetNodeName() == TString(
"NamedLumiRange")) {
 
  151         jobConfig_elem = jobConfig_elem->GetNextNode();
 
 
 
 
◆ ReadAttribs()
  
  | 
        
          | void Root::TGoodRunsListReader::ReadAttribs | ( | TXMLNode * | node | ) |  |  | private | 
 
Definition at line 166 of file TGoodRunsListReader.cxx.
  168    if (!
node->HasAttributes()) 
return;
 
  170    TListIter attribIt( 
node->GetAttributes() );
 
  171    TXMLAttr* curAttr( 0 );
 
  172    while ((curAttr = (TXMLAttr*)attribIt()) != 0) {
 
  174               << 
"  =  \"" << curAttr->GetValue() << 
"\"" << 
GEndl;
 
 
 
 
◆ ReadLumiBlockCollection()
  
  | 
        
          | void Root::TGoodRunsListReader::ReadLumiBlockCollection | ( | TXMLNode * | dataNode | ) |  |  | private | 
 
Definition at line 181 of file TGoodRunsListReader.cxx.
  184   TXMLNode* 
node = dataNode->GetChildren();
 
  189     if (TString(
"Run")==
node->GetNodeName()) {
 
  194     if (TString(
"LBRange")==
node->GetNodeName() && 
node->HasAttributes()) {
 
  195       TXMLAttr* curAttr( 0 );
 
  196       TListIter attribIt(
node->GetAttributes());
 
  197       while ((curAttr = (TXMLAttr*)attribIt()) != 0) {
 
  198         if (TString(
"Start")==curAttr->GetName()) {
 
  200                    << 
"  =  \"" << curAttr->GetValue() << 
"\"" << 
GEndl;
 
  201         } 
else if (TString(
"End")==curAttr->GetName()) {
 
  203                    << 
"  =  \"" << curAttr->GetValue() << 
"\"" << 
GEndl;
 
 
 
 
◆ ReadNamedLumiRange()
  
  | 
        
          | void Root::TGoodRunsListReader::ReadNamedLumiRange | ( | TXMLNode * | dataNode | ) |  |  | private | 
 
set name
set version
set metadata
set run and lb range
Definition at line 258 of file TGoodRunsListReader.cxx.
  261   if (!dataNode->HasChildren()) {
 
  267   TXMLNode* 
node = dataNode->GetChildren();
 
  269   std::string nameStr, valueStr;
 
  273     if (TString(
"Name") == 
node->GetNodeName()) {
 
  274       if (
node->GetText()!=0) {
 
  276         nameStr=
node->GetText();
 
  277       } 
else { nameStr=
""; }
 
  279       grl.SetName(nameStr.c_str());
 
  282     else if (TString(
"Version") == 
node->GetNodeName()) {
 
  283       if (
node->GetText()!=0) {
 
  285         valueStr=
node->GetText();
 
  286       } 
else { valueStr=
""; }
 
  288       grl.SetVersion(valueStr);
 
  291     else if (TString(
"Metadata") == 
node->GetNodeName()) {
 
  295       if (
node->HasAttributes()) {
 
  296         TListIter attribIt( 
node->GetAttributes() );
 
  297         TXMLAttr* curAttr( 0 );
 
  298         while ((curAttr = (TXMLAttr*)attribIt()) != 0) {
 
  299           if (curAttr->GetValue()!=0) { nameStr=curAttr->GetValue(); } 
else { nameStr=
""; }
 
  300           if (
node->GetText()!=0) { valueStr=
node->GetText(); } 
else { valueStr=
""; }
 
  302           if (!nameStr.empty() && !valueStr.empty()) 
grl.AddMetaData(nameStr,valueStr);
 
  307     else if (TString(
"LumiBlockCollection") == 
node->GetNodeName()) {
 
 
 
 
◆ Reset()
      
        
          | void Root::TGoodRunsListReader::Reset | ( |  | ) |  | 
      
 
 
◆ SetCheckGRLInfo()
  
  | 
        
          | void Root::TGoodRunsListReader::SetCheckGRLInfo | ( | Bool_t | check = kTRUE | ) |  |  | inline | 
 
 
◆ SetXMLFile()
  
  | 
        
          | void Root::TGoodRunsListReader::SetXMLFile | ( | const TString & | xmlfile | ) |  |  | inline | 
 
 
◆ SetXMLString()
  
  | 
        
          | void Root::TGoodRunsListReader::SetXMLString | ( | const TString & | xmlstring | ) |  |  | inline | 
 
 
◆ m_dataCardList
  
  | 
        
          | std::vector<TString> Root::TGoodRunsListReader::m_dataCardList |  | private | 
 
 
◆ m_dataCardName
  
  | 
        
          | TString Root::TGoodRunsListReader::m_dataCardName |  | private | 
 
 
◆ m_grlvec
◆ m_logger
◆ m_xmlstring
  
  | 
        
          | TString Root::TGoodRunsListReader::m_xmlstring |  | private | 
 
 
◆ m_xmlstringList
  
  | 
        
          | std::vector<TString> Root::TGoodRunsListReader::m_xmlstringList |  | private | 
 
 
The documentation for this class was generated from the following files: