#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 35 of file DDCoreToDDXMLOutput.h.
void DDCoreToDDXMLOutput::logicalPart | ( | const DDLogicalPart & | lp, |
std::ostream & | xos | ||
) |
Definition at line 392 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 315 of file DDCoreToDDXMLOutput.cc.
References DDMaterial::a(), DDMaterial::constituent(), DDMaterial::density(), alignBH_cfg::fixed, g, 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 400 of file DDCoreToDDXMLOutput.cc.
References DDPosData::copyno_, DDRotation::matrix(), DDPosData::rot_, rotation(), AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), and DDPosData::translation().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::rotation | ( | DDRotation & | rotation, |
std::ostream & | xos, | ||
const std::string & | rotn = "" |
||
) |
Definition at line 351 of file DDCoreToDDXMLOutput.cc.
References trackerTree::check(), gather_cfg::cout, DDRotation::matrix(), makeMuonMisalignmentScenario::rot, AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), x, y, and z.
Referenced by OutputMagneticFieldDDToDDL::beginRun(), OutputDDToDDL::beginRun(), and position().
void DDCoreToDDXMLOutput::solid | ( | const DDSolid & | solid, |
std::ostream & | xos | ||
) |
Definition at line 26 of file DDCoreToDDXMLOutput.cc.
References DDTrap::alpha1(), DDTrap::alpha2(), DDPseudoTrap::atMinusZ(), DDTruncTubs::cutAtDelta(), DDTruncTubs::cutAtStart(), DDTruncTubs::cutInside(), dd_not_init, ddbox, ddcons, ddcuttubs, 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(), DDCutTubs::deltaPhi(), DDCons::deltaPhi(), DDTorus::deltaPhi(), Exception, DDBox::halfX(), DDBox::halfY(), DDTrap::halfZ(), DDPseudoTrap::halfZ(), DDBox::halfZ(), DDCutTubs::highNorm(), mps_fire::i, DDCutTubs::lowNorm(), 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(), 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(), DDCutTubs::zhalf(), DDCons::zhalf(), DDPolycone::zVec(), and DDPolyhedra::zVec().
Referenced by OutputMagneticFieldDDToDDL::beginRun(), and OutputDDToDDL::beginRun().
void DDCoreToDDXMLOutput::specpar | ( | const DDSpecifics & | sp, |
std::ostream & | xos | ||
) |
Definition at line 430 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 471 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.