#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 (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 25 of file DDCoreToDDXMLOutput.h.
void DDCoreToDDXMLOutput::logicalPart | ( | const DDLogicalPart & | lp, |
std::ostream & | xos | ||
) |
Definition at line 357 of file DDCoreToDDXMLOutput.cc.
References DDLogicalPart::material(), DDLogicalPart::solid(), and DDBase< N, C >::toString().
Referenced by OutputDDToDDL::beginRun(), and OutputMagneticFieldDDToDDL::beginRun().
void DDCoreToDDXMLOutput::material | ( | const DDMaterial & | material, |
std::ostream & | xos | ||
) |
Definition at line 280 of file DDCoreToDDXMLOutput.cc.
References DDMaterial::a(), DDMaterial::constituent(), DDMaterial::density(), g, j, DDMaterial::noOfConstituents(), DDBase< N, C >::toString(), and DDMaterial::z().
Referenced by OutputDDToDDL::beginRun(), and OutputMagneticFieldDDToDDL::beginRun().
void DDCoreToDDXMLOutput::position | ( | const DDLogicalPart & | parent, |
const DDLogicalPart & | child, | ||
DDPosData * | edgeToChild, | ||
int & | rotNameSeed, | ||
std::ostream & | xos | ||
) |
Definition at line 365 of file DDCoreToDDXMLOutput.cc.
References DDPosData::copyno_, DDRotation::matrix(), DDPosData::rot_, rotation(), AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), and DDPosData::translation().
Referenced by OutputDDToDDL::beginRun(), and OutputMagneticFieldDDToDDL::beginRun().
void DDCoreToDDXMLOutput::rotation | ( | DDRotation & | rotation, |
std::ostream & | xos, | ||
const std::string & | rotn = "" |
||
) |
Definition at line 316 of file DDCoreToDDXMLOutput.cc.
References DDVectorGetter::check(), gather_cfg::cout, DDRotation::matrix(), makeMuonMisalignmentScenario::rot, AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), x, y, and z.
Referenced by OutputDDToDDL::beginRun(), OutputMagneticFieldDDToDDL::beginRun(), and position().
void DDCoreToDDXMLOutput::solid | ( | const DDSolid & | solid, |
std::ostream & | xos | ||
) |
Definition at line 15 of file DDCoreToDDXMLOutput.cc.
References DDTrap::alpha1(), DDTrap::alpha2(), DDPseudoTrap::atMinusZ(), DDTruncTubs::cutAtDelta(), DDTruncTubs::cutAtStart(), DDTruncTubs::cutInside(), dd_not_init, ddbox, ddcons, ddintersection, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddreflected, ddshapeless, ddsubtraction, ddtorus, ddtrap, ddtrunctubs, ddtubs, ddunion, DDTruncTubs::deltaPhi(), DDPolycone::deltaPhi(), DDPolyhedra::deltaPhi(), DDTubs::deltaPhi(), DDCons::deltaPhi(), DDTorus::deltaPhi(), Exception, DDBox::halfX(), DDBox::halfY(), DDTrap::halfZ(), DDPseudoTrap::halfZ(), DDBox::halfZ(), i, DDTrap::phi(), DDCons::phiFrom(), DDPseudoTrap::radius(), DDTruncTubs::rIn(), DDTubs::rIn(), DDCons::rInMinusZ(), DDCons::rInPlusZ(), DDTorus::rMax(), DDPolycone::rMaxVec(), DDPolyhedra::rMaxVec(), DDTorus::rMin(), DDPolycone::rMinVec(), DDPolyhedra::rMinVec(), DDBooleanSolid::rotation(), DDTruncTubs::rOut(), DDTubs::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(), DDTorus::startPhi(), AlCaHLTBitMon_QueryRunRegistry::string, DDTrap::theta(), DDBase< N, C >::toString(), DDBooleanSolid::translation(), DDReflectionSolid::unreflected(), DDTrap::x1(), DDPseudoTrap::x1(), DDTrap::x2(), DDPseudoTrap::x2(), DDTrap::x3(), DDTrap::x4(), DDTrap::y1(), DDPseudoTrap::y1(), DDTrap::y2(), DDPseudoTrap::y2(), DDTruncTubs::zHalf(), DDTubs::zhalf(), DDCons::zhalf(), DDPolycone::zVec(), and DDPolyhedra::zVec().
Referenced by OutputDDToDDL::beginRun(), and OutputMagneticFieldDDToDDL::beginRun().
void DDCoreToDDXMLOutput::specpar | ( | const DDSpecifics & | sp, |
std::ostream & | xos | ||
) |
Definition at line 395 of file DDCoreToDDXMLOutput.cc.
References i, DDValue::isEvaluated(), DDValue::name(), alignCSCRings::s, DDSpecifics::selection(), DDValue::size(), DDSpecifics::specifics(), DDValue::strings(), DDBase< N, C >::toString(), and findQualityFiles::v.
Referenced by OutputDDToDDL::beginRun(), and OutputMagneticFieldDDToDDL::beginRun().
void DDCoreToDDXMLOutput::specpar | ( | const std::pair< DDsvalues_type, std::set< const DDPartSelection * > > & | pssv, |
std::ostream & | xos | ||
) |
Definition at line 436 of file DDCoreToDDXMLOutput.cc.
References i, DDValue::isEvaluated(), DDValue::name(), alignCSCRings::s, DDValue::size(), AlCaHLTBitMon_QueryRunRegistry::string, DDValue::strings(), and findQualityFiles::v.
std::string DDCoreToDDXMLOutput::ns_ |
Definition at line 45 of file DDCoreToDDXMLOutput.h.
Referenced by OutputDDToDDL::beginRun(), and OutputMagneticFieldDDToDDL::beginRun().
double DDCoreToDDXMLOutput::tol_ |
Definition at line 46 of file DDCoreToDDXMLOutput.h.