#include <DDCoreToDDXMLOutput.h>
Public Member Functions | |
void | logicalPart (const DDLogicalPart &lp, std::ostream &xos) |
void | material (const DDMaterial &material, std::ostream &xos) |
void | position (const DDLogicalPart &parent, const DDLogicalPart &child, DDPosData *edgeToChild, int &rotNameSeed, std::ostream &xos) |
void | rotation (const DDRotation &rotation, std::ostream &xos, const std::string &rotn="") |
void | solid (const DDSolid &solid, std::ostream &xos) |
void | specpar (const DDSpecifics &sp, std::ostream &xos) |
void | specpar (const std::pair< DDsvalues_type, std::set< const DDPartSelection * > > &pssv, std::ostream &xos) |
Public Attributes | |
std::string | ns_ |
double | tol_ |
Description: The idea is to store one large XML file containing the XML elements in DDL (Detector Description Language). In doing so, all DDAlgorithms or other code generated DD in-memory components should be reproduced without the need for them to run again if the geometry is read into DDLParser again.
Definition at line 35 of file DDCoreToDDXMLOutput.h.
void DDCoreToDDXMLOutput::logicalPart | ( | const DDLogicalPart & | lp, |
std::ostream & | xos | ||
) |
Definition at line 417 of file DDCoreToDDXMLOutput.cc.
References DDLogicalPart::material(), DDLogicalPart::solid(), and DDBase< N, C >::toString().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::material | ( | const DDMaterial & | material, |
std::ostream & | xos | ||
) |
Definition at line 338 of file DDCoreToDDXMLOutput.cc.
References DDMaterial::a(), DDMaterial::constituent(), geant_units::operators::convertUnitsTo(), DDMaterial::density(), alignBH_cfg::fixed, DDMaterial::noOfConstituents(), DDBase< N, C >::toString(), and DDMaterial::z().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::position | ( | const DDLogicalPart & | parent, |
const DDLogicalPart & | child, | ||
DDPosData * | edgeToChild, | ||
int & | rotNameSeed, | ||
std::ostream & | xos | ||
) |
Definition at line 425 of file DDCoreToDDXMLOutput.cc.
References DDPosData::copyno(), DDPosData::ddrot(), idealTransformation::rotation, DDRotation::rotation(), AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), and DDPosData::translation().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::rotation | ( | const DDRotation & | rotation, |
std::ostream & | xos, | ||
const std::string & | rotn = "" |
||
) |
Definition at line 375 of file DDCoreToDDXMLOutput.cc.
References trackerTree::check(), geant_units::operators::convertRadToDeg(), gather_cfg::cout, makeMuonMisalignmentScenario::rot, DDRotation::rotation(), AlCaHLTBitMon_QueryRunRegistry::string, and DDBase< N, C >::toString().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::solid | ( | const DDSolid & | solid, |
std::ostream & | xos | ||
) |
Definition at line 27 of file DDCoreToDDXMLOutput.cc.
References DDTrap::alpha1(), DDTrap::alpha2(), DDPseudoTrap::atMinusZ(), geant_units::operators::convertRadToDeg(), DDTruncTubs::cutAtDelta(), DDTruncTubs::cutAtStart(), DDTruncTubs::cutInside(), dd_not_init, ddbox, ddcons, ddcuttubs, ddellipticaltube, ddextrudedpolygon, ddintersection, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddshapeless, ddsubtraction, ddtorus, ddtrap, ddtrunctubs, ddtubs, ddunion, DDTruncTubs::deltaPhi(), DDPolycone::deltaPhi(), DDPolyhedra::deltaPhi(), DDTubs::deltaPhi(), DDCutTubs::deltaPhi(), DDCons::deltaPhi(), DDTorus::deltaPhi(), Exception, DDBox::halfX(), DDBox::halfY(), DDTrap::halfZ(), DDPseudoTrap::halfZ(), DDBox::halfZ(), DDCutTubs::highNorm(), mps_fire::i, gen::k, DDCutTubs::lowNorm(), DDBase< N, C >::name(), DDTrap::phi(), DDCons::phiFrom(), DDPseudoTrap::radius(), DDTruncTubs::rIn(), DDTubs::rIn(), DDCutTubs::rIn(), DDCons::rInMinusZ(), DDCons::rInPlusZ(), DDTorus::rMax(), DDPolycone::rMaxVec(), DDPolyhedra::rMaxVec(), DDTorus::rMin(), DDPolycone::rMinVec(), DDPolyhedra::rMinVec(), DDBooleanSolid::rotation(), DDTruncTubs::rOut(), DDTubs::rOut(), DDCutTubs::rOut(), DDCons::rOutMinusZ(), DDCons::rOutPlusZ(), DDTorus::rTorus(), DDPolycone::rVec(), DDPolyhedra::rVec(), DDSolid::shape(), DDPolyhedra::sides(), DDBooleanSolid::solidA(), DDBooleanSolid::solidB(), DDTruncTubs::startPhi(), DDPolycone::startPhi(), DDPolyhedra::startPhi(), DDTubs::startPhi(), DDCutTubs::startPhi(), DDTorus::startPhi(), AlCaHLTBitMon_QueryRunRegistry::string, DDTrap::theta(), DDBase< N, C >::toString(), DDBooleanSolid::translation(), DDTrap::x1(), DDPseudoTrap::x1(), DDTrap::x2(), DDPseudoTrap::x2(), DDTrap::x3(), DDTrap::x4(), DDEllipticalTube::xSemiAxis(), DDExtrudedPolygon::xVec(), DDTrap::y1(), DDPseudoTrap::y1(), DDTrap::y2(), DDPseudoTrap::y2(), DDEllipticalTube::ySemiAxis(), DDExtrudedPolygon::yVec(), DDTruncTubs::zHalf(), DDTubs::zhalf(), DDCutTubs::zhalf(), DDCons::zhalf(), DDEllipticalTube::zHeight(), DDExtrudedPolygon::zscaleVec(), DDPolycone::zVec(), DDPolyhedra::zVec(), DDExtrudedPolygon::zVec(), DDExtrudedPolygon::zxVec(), and DDExtrudedPolygon::zyVec().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::specpar | ( | const DDSpecifics & | sp, |
std::ostream & | xos | ||
) |
Definition at line 455 of file DDCoreToDDXMLOutput.cc.
References mps_fire::i, DDValue::isEvaluated(), DDValue::name(), alignCSCRings::s, DDSpecifics::selection(), DDValue::size(), DDSpecifics::specifics(), DDValue::strings(), DDBase< N, C >::toString(), and findQualityFiles::v.
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::specpar | ( | const std::pair< DDsvalues_type, std::set< const DDPartSelection * > > & | pssv, |
std::ostream & | xos | ||
) |
Definition at line 496 of file DDCoreToDDXMLOutput.cc.
References mps_fire::i, DDValue::isEvaluated(), DDValue::name(), alignCSCRings::s, DDValue::size(), AlCaHLTBitMon_QueryRunRegistry::string, DDValue::strings(), and findQualityFiles::v.
std::string DDCoreToDDXMLOutput::ns_ |
Definition at line 55 of file DDCoreToDDXMLOutput.h.
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
double DDCoreToDDXMLOutput::tol_ |
Definition at line 56 of file DDCoreToDDXMLOutput.h.