Skip to content
Snippets Groups Projects
Commit cb83a166 authored by Maurizio Martinelli's avatar Maurizio Martinelli
Browse files

Merge branch 'remove-comments-from-generated-XML-conditions' into 'master'

Do not add comments to generated condition XML files

See merge request !46
parents 18cee012 ce954e36
Branches 2018-patches master
No related tags found
No related merge requests found
// $Id: WriteAlignmentConditions.cpp,v 1.9 2010-01-12 12:09:19 wouter Exp $
#include "AlignmentInterfaces/IWriteAlignmentConditionsTool.h"
#include "GaudiAlg/GaudiTool.h"
......@@ -88,7 +86,6 @@ DECLARE_TOOL_FACTORY( WriteAlignmentConditionsTool )
// LHCb
#include "DetDesc/DetectorElement.h"
#include "DetDesc/IGeometryInfo.h"
#include "Kernel/STXMLUtils.h"
//--------------------------------------------------------------------
//
......@@ -224,11 +221,6 @@ StatusCode WriteAlignmentConditionsTool::write( const std::string& filename,
if (aCon) {
outputFile << header(aCon->toXml("", !m_online, m_precision)) << std::endl;
// add some comments describing the file
std::ostringstream comment;
ST::XMLUtils::fullComment(comment,author, tag, description);
outputFile << comment.str() << std::endl;
children(det, outputFile, depths, 0);
if (!m_online) outputFile << footer();
outputFile << std::endl;
......
// $Id: WriteAlignmentConditions.cpp,v 1.9 2010-01-12 12:09:19 wouter Exp $
// std
#include <sstream>
#include <fstream>
......@@ -17,8 +15,6 @@
#include "DetDesc/IGeometryInfo.h"
#include "DetDesc/Condition.h"
#include "OTDet/DeOTDetector.h"
#include "Kernel/STXMLUtils.h"
class WriteOTCalibrationsTool
: public GaudiTool, virtual public IWriteAlignmentConditionsTool
......@@ -191,12 +187,6 @@ StatusCode WriteOTCalibrationsTool::createXmlFile(const std::string& filename,
output << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<!DOCTYPE DDDB SYSTEM "
<< "\"conddb:/DTD/structure.dtd\">\n<DDDB>\n";
}
// only write the comments if it is actually meanigfull
if( !m_author.empty() || !version.empty() || !m_description.empty() ) {
std::ostringstream comment ;
ST::XMLUtils::fullComment(comment,m_author,version,m_description);
output << comment.str() ;
}
/// write the contents
output << contents ;
/// write the footer
......
......@@ -7,7 +7,6 @@
// From Det
#include "DetDesc/Condition.h"
#include "Kernel/STXMLUtils.h"
// From Rich
#include "RichDet/DeRichSystem.h"
......@@ -186,13 +185,6 @@ StatusCode WriteRichAlignmentsTool::createXmlFile(const std::string& filename,
output << "<DDDB>\n\n";
}
// only write the comments if it is actually meaningful
if( !m_author.empty() || !version.empty() || !m_description.empty() ) {
std::ostringstream comment;
ST::XMLUtils::fullComment(comment,m_author,version,m_description);
output << comment.str();
}
/// write the contents
output << contents;
......
......@@ -7,7 +7,6 @@
// From Det
#include "DetDesc/Condition.h"
#include "Kernel/STXMLUtils.h"
// From Rich
#include "RichDet/DeRichSystem.h"
......@@ -169,13 +168,6 @@ StatusCode WriteRichCalibrationsTool::createXmlFile(const std::string& filename,
output << "<DDDB>\n\n";
}
// only write the comments if it is actually meanigfull
if( !m_author.empty() || !version.empty() || !m_description.empty() ) {
std::ostringstream comment;
ST::XMLUtils::fullComment(comment,m_author,version,m_description);
output << comment.str();
}
/// write the contents
output << contents;
......
......@@ -7,7 +7,6 @@
// From Det
#include "DetDesc/TabulatedProperty.h"
#include "Kernel/STXMLUtils.h"
// From Rich
#include "RichDet/DeRichSystem.h"
......@@ -161,13 +160,6 @@ StatusCode WriteRichHPDQEsTool::createXmlFile(const std::string& filename,
output << "<DDDB>\n\n";
}
// only write the comments if it is actually meaningful
if( !m_author.empty() || !version.empty() || !m_description.empty() ) {
std::ostringstream comment;
ST::XMLUtils::fullComment(comment,m_author,version,m_description);
output << comment.str();
}
/// write the contents
output << contents;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment