#include <TGoodRunsListWriter.h>
Definition at line 38 of file TGoodRunsListWriter.h.
 
◆ TGoodRunsListWriter() [1/2]
      
        
          | Root::TGoodRunsListWriter::TGoodRunsListWriter | ( |  | ) |  | 
      
 
 
◆ TGoodRunsListWriter() [2/2]
      
        
          | Root::TGoodRunsListWriter::TGoodRunsListWriter | ( | const TGoodRunsList & | goodrunslist, | 
        
          |  |  | const TString & | dataCardName | 
        
          |  | ) |  |  | 
      
 
 
◆ ~TGoodRunsListWriter()
      
        
          | Root::TGoodRunsListWriter::~TGoodRunsListWriter | ( |  | ) |  | 
      
 
 
◆ AddGoodRunsList()
◆ ConvertInput()
  
  | 
        
          | xmlChar * Root::TGoodRunsListWriter::ConvertInput | ( | const char * | in, |  
          |  |  | const char * | encoding |  
          |  | ) |  |  |  | private | 
 
ConvertInput: @in: string in a given encoding @encoding: the encoding used. 
Converts @in into UTF-8 for processing with libxml2 APIs
Returns the converted UTF-8 string, or NULL in case of error. 
Definition at line 499 of file TGoodRunsListWriter.cxx.
  509   xmlCharEncodingHandlerPtr 
handler;
 
  522   out_size = 
size * 2 - 1;
 
  523   out = (
unsigned char *) xmlMalloc((
size_t) out_size);
 
  528     if ((ret < 0) || (
temp - 
size + 1)) {
 
  538       out = (
unsigned char *) xmlRealloc(
out, out_size + 1);
 
 
 
 
◆ GetFilename()
  
  | 
        
          | const TString& Root::TGoodRunsListWriter::GetFilename | ( |  | ) | const |  | inline | 
 
 
◆ GetGRLCollection()
◆ GetMergedGoodRunsList()
◆ GetXMLString()
      
        
          | const TString & Root::TGoodRunsListWriter::GetXMLString | ( |  | ) |  | 
      
 
 
◆ GetXMLStrings()
      
        
          | const std::vector< TString > & Root::TGoodRunsListWriter::GetXMLStrings | ( |  | ) |  | 
      
 
loop over goodrunslists
set grl to store
Definition at line 165 of file TGoodRunsListWriter.cxx.
  178   std::vector< Root::TGoodRunsList >::const_iterator litr = 
m_grlvec.begin();
 
  179   for (
int i=0; litr!=
m_grlvec.end(); ++litr, ++
i) {
 
 
 
 
◆ reset()
  
  | 
        
          | void Root::TGoodRunsListWriter::reset | ( |  | ) |  |  | private | 
 
 
◆ SetCheckGRLInfo()
  
  | 
        
          | void Root::TGoodRunsListWriter::SetCheckGRLInfo | ( | bool | check = true | ) |  |  | inline | 
 
 
◆ SetFilename()
  
  | 
        
          | void Root::TGoodRunsListWriter::SetFilename | ( | const TString & | dataCardName | ) |  |  | inline | 
 
 
◆ SetGoodRunsList()
◆ SetGRLCollection()
◆ SetIndividuals()
  
  | 
        
          | void Root::TGoodRunsListWriter::SetIndividuals | ( | bool | indf = true | ) |  |  | inline | 
 
 
◆ SetMergeGoodRunsLists()
  
  | 
        
          | void Root::TGoodRunsListWriter::SetMergeGoodRunsLists | ( | bool | merge = true | ) |  |  | inline | 
 
 
◆ SetPrefix()
  
  | 
        
          | void Root::TGoodRunsListWriter::SetPrefix | ( | const TString & | prefix | ) |  |  | inline | 
 
 
◆ WriteElement()
◆ WriteLumiBlockCollection()
Definition at line 388 of file TGoodRunsListWriter.cxx.
  394   rc = xmlTextWriterStartElement(
writer, BAD_CAST 
"LumiBlockCollection");
 
  400   if (!goodrun.IsEmpty()) { 
 
  404     std::vector<TLumiBlockRange>::const_iterator litr = goodrun.begin();
 
  405     for (; litr!=goodrun.end(); ++litr)
 
  406       if (!litr->IsEmpty()) { 
 
  407         if (litr->End()!=2147483647)
 
  408           this->
WriteElement(
writer,
"LBRange",0,
"Start",Form(
"%d",litr->Begin()),
"End",Form(
"%d",litr->End()));
 
  415   rc = xmlTextWriterEndElement(
writer);
 
 
 
 
◆ WriteLumiRangeCollection()
  
  | 
        
          | Bool_t Root::TGoodRunsListWriter::WriteLumiRangeCollection | ( | xmlTextWriterPtr | writer | ) |  |  | private | 
 
Definition at line 254 of file TGoodRunsListWriter.cxx.
  263   rc = xmlTextWriterStartDocument(
writer, NULL, NULL, NULL);
 
  270   xmlTextWriterWriteDTD(
writer, (
xmlChar *)
"LumiRangeCollection", NULL,
 
  271                         (
xmlChar *)
"http://atlas-runquery.cern.ch/LumiRangeCollection.dtd", NULL);
 
  283   if (
tmp != NULL) xmlFree(
tmp);
 
  287   rc = xmlTextWriterStartElement(
writer, BAD_CAST 
"LumiRangeCollection");
 
  302       std::vector< Root::TGoodRunsList >::const_iterator litr = 
m_grlvec.begin();
 
  303       for (; litr!=
m_grlvec.end(); ++litr) {
 
  314   rc = xmlTextWriterEndElement(
writer);
 
 
 
 
◆ WriteMetadata()
◆ WriteNamedLumiRange()
  
  | 
        
          | Bool_t Root::TGoodRunsListWriter::WriteNamedLumiRange | ( | xmlTextWriterPtr | writer | ) |  |  | private | 
 
Definition at line 333 of file TGoodRunsListWriter.cxx.
  343   rc = xmlTextWriterStartElement(
writer, BAD_CAST 
"NamedLumiRange");
 
  359     std::map<TString,TString>::const_iterator mitr = 
m_grl.
GetMetaData().begin();
 
  364   std::map<Int_t,Root::TGoodRun>::const_iterator gitr = 
m_grl.begin();
 
  365   for (; gitr!=
m_grl.end(); ++gitr)
 
  369   rc = xmlTextWriterEndElement(
writer);
 
 
 
 
◆ WriteXMLFile()
      
        
          | Bool_t Root::TGoodRunsListWriter::WriteXMLFile | ( |  | ) |  | 
      
 
 
◆ WriteXMLFiles()
      
        
          | Bool_t Root::TGoodRunsListWriter::WriteXMLFiles | ( |  | ) |  | 
      
 
loop over goodrunslists
set grl to store
Definition at line 81 of file TGoodRunsListWriter.cxx.
   92   std::vector< Root::TGoodRunsList >::const_iterator litr = 
m_grlvec.begin();
 
   93   for (
int i=0; litr!=
m_grlvec.end(); ++litr, ++
i) {
 
 
 
 
◆ m_dataCardName
  
  | 
        
          | TString Root::TGoodRunsListWriter::m_dataCardName |  | private | 
 
 
◆ m_grl
◆ m_grlvec
◆ m_individuals
  
  | 
        
          | Bool_t Root::TGoodRunsListWriter::m_individuals |  | private | 
 
 
◆ m_logger
◆ m_mergegrls
  
  | 
        
          | Bool_t Root::TGoodRunsListWriter::m_mergegrls |  | private | 
 
 
◆ m_prefix
  
  | 
        
          | TString Root::TGoodRunsListWriter::m_prefix |  | private | 
 
 
◆ m_xmlstring
  
  | 
        
          | TString Root::TGoodRunsListWriter::m_xmlstring |  | private | 
 
 
◆ m_xmlstringVec
  
  | 
        
          | std::vector<TString> Root::TGoodRunsListWriter::m_xmlstringVec |  | private | 
 
 
The documentation for this class was generated from the following files:
 
Bool_t WriteElement(xmlTextWriterPtr writer, const char *name, const char *value=0, const char *atr1=0, const char *val1=0, const char *atr2=0, const char *val2=0)