DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dd4hep::align::GlobalAlignmentWriter Class Reference

Write aligment data to XML data file. More...

#include <GlobalAlignmentWriter.h>

Public Member Functions

 GlobalAlignmentWriter (Detector &description)
 Initializing Constructor. More...
 
virtual ~GlobalAlignmentWriter ()
 Standard destructor. More...
 
xml::Document dump (DetElement element, bool enable_transactions=false) const
 Dump one full DetElement subtree into a newly created document. More...
 
xml::Element scan (xml::Document doc, DetElement element) const
 Scan one DetElement structure and return an XML element containing the alignment in this subtree. More...
 
xml::Element createElement (xml::Document doc, DetElement element) const
 Create the element corresponding to one single detector element without children. More...
 
long write (xml::Document doc, const std::string &output) const
 Write the XML document structure to a file. More...
 

Protected Member Functions

void addNode (xml::Element elt, GlobalAlignment a) const
 Add single alignment node to the XML document. More...
 

Protected Attributes

Detectorm_detDesc
 Reference to detector description. More...
 
GlobalAlignmentCachem_cache
 Reference to the alignment cache. More...
 

Detailed Description

Write aligment data to XML data file.

Author
M.Frank
Version
1.0

Definition at line 36 of file GlobalAlignmentWriter.h.

Constructor & Destructor Documentation

◆ GlobalAlignmentWriter()

GlobalAlignmentWriter::GlobalAlignmentWriter ( Detector description)

Initializing Constructor.

Definition at line 35 of file GlobalAlignmentWriter.cpp.

◆ ~GlobalAlignmentWriter()

GlobalAlignmentWriter::~GlobalAlignmentWriter ( )
virtual

Standard destructor.

Definition at line 42 of file GlobalAlignmentWriter.cpp.

Member Function Documentation

◆ addNode()

void GlobalAlignmentWriter::addNode ( xml::Element  elt,
GlobalAlignment  a 
) const
protected

Add single alignment node to the XML document.

Definition at line 68 of file GlobalAlignmentWriter.cpp.

◆ createElement()

xml::Element GlobalAlignmentWriter::createElement ( xml::Document  doc,
DetElement  element 
) const

Create the element corresponding to one single detector element without children.

Definition at line 47 of file GlobalAlignmentWriter.cpp.

◆ dump()

xml::Document GlobalAlignmentWriter::dump ( DetElement  element,
bool  enable_transactions = false 
) const

Dump one full DetElement subtree into a newly created document.

Dump the tree content into a XML document structure.

Definition at line 123 of file GlobalAlignmentWriter.cpp.

◆ scan()

xml::Element GlobalAlignmentWriter::scan ( xml::Document  doc,
DetElement  element 
) const

Scan one DetElement structure and return an XML element containing the alignment in this subtree.

Scan a DetElement subtree and add on the fly the XML entries.

Definition at line 106 of file GlobalAlignmentWriter.cpp.

◆ write()

long GlobalAlignmentWriter::write ( xml::Document  doc,
const std::string &  output 
) const

Write the XML document structure to a file.

Definition at line 135 of file GlobalAlignmentWriter.cpp.

Member Data Documentation

◆ m_cache

GlobalAlignmentCache* dd4hep::align::GlobalAlignmentWriter::m_cache
protected

Reference to the alignment cache.

Definition at line 41 of file GlobalAlignmentWriter.h.

◆ m_detDesc

Detector& dd4hep::align::GlobalAlignmentWriter::m_detDesc
protected

Reference to detector description.

Definition at line 39 of file GlobalAlignmentWriter.h.


The documentation for this class was generated from the following files: