#include <DDCoreToDDXMLOutput.h>
Public Member Functions | |
void | element (const TGeoMaterial *element, std::ostream &xos) |
void | logicalPart (const DDLogicalPart &lp, std::ostream &xos) |
void | logicalPart (const std::string &asName, std::ostream &xos) |
void | logicalPart (const TGeoVolume &lp, std::ostream &xos) |
void | material (const DDMaterial &material, std::ostream &xos) |
void | material (const std::string &matName, double density, const std::vector< cms::DDParsingContext::CompositeMaterial > &matRefs, std::ostream &xos) |
void | position (const DDLogicalPart &parent, const DDLogicalPart &child, DDPosData *edgeToChild, int &rotNameSeed, std::ostream &xos) |
void | position (const TGeoVolume &parent, const TGeoNode &child, const std::string &childName, cms::DDParsingContext &context, std::ostream &xos) |
void | rotation (const DDRotation &rotation, std::ostream &xos, const std::string &rotn="") |
void | rotation (const dd4hep::Rotation3D &rotation, std::ostream &xos, const cms::DDParsingContext &context, const std::string &rotn) |
void | solid (const DDSolid &solid, std::ostream &xos) |
void | solid (const dd4hep::Solid &solid, const cms::DDParsingContext &context, 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) |
void | specpar (const std::string &name, const dd4hep::SpecPar &specPar, std::ostream &xos) |
Static Public Member Functions | |
static std::string | trimShapeName (const std::string &solidName) |
Public Attributes | |
std::string | ns_ |
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 40 of file DDCoreToDDXMLOutput.h.
void DDCoreToDDXMLOutput::element | ( | const TGeoMaterial * | element, |
std::ostream & | xos | ||
) |
Definition at line 648 of file DDCoreToDDXMLOutput.cc.
References convertGPerCcToMgPerCc(), alignBH_cfg::fixed, and AlCaHLTBitMon_QueryRunRegistry::string.
void DDCoreToDDXMLOutput::logicalPart | ( | const DDLogicalPart & | lp, |
std::ostream & | xos | ||
) |
Definition at line 750 of file DDCoreToDDXMLOutput.cc.
References DDLogicalPart::material(), DDLogicalPart::solid(), and DDBase< N, C >::toString().
void DDCoreToDDXMLOutput::logicalPart | ( | const std::string & | asName, |
std::ostream & | xos | ||
) |
Definition at line 757 of file DDCoreToDDXMLOutput.cc.
void DDCoreToDDXMLOutput::logicalPart | ( | const TGeoVolume & | lp, |
std::ostream & | xos | ||
) |
Definition at line 764 of file DDCoreToDDXMLOutput.cc.
void DDCoreToDDXMLOutput::material | ( | const DDMaterial & | material, |
std::ostream & | xos | ||
) |
Definition at line 606 of file DDCoreToDDXMLOutput.cc.
References DDMaterial::a(), DDMaterial::constituent(), geant_units::operators::convertUnitsTo(), DDMaterial::density(), alignBH_cfg::fixed, dqmiolumiharvest::j, DDMaterial::noOfConstituents(), DDBase< N, C >::toString(), and DDMaterial::z().
void DDCoreToDDXMLOutput::material | ( | const std::string & | matName, |
double | density, | ||
const std::vector< cms::DDParsingContext::CompositeMaterial > & | matRefs, | ||
std::ostream & | xos | ||
) |
Definition at line 631 of file DDCoreToDDXMLOutput.cc.
References convertGPerCcToMgPerCc(), fastSimProducer_cff::density, and alignBH_cfg::fixed.
void DDCoreToDDXMLOutput::position | ( | const DDLogicalPart & | parent, |
const DDLogicalPart & | child, | ||
DDPosData * | edgeToChild, | ||
int & | rotNameSeed, | ||
std::ostream & | xos | ||
) |
Definition at line 809 of file DDCoreToDDXMLOutput.cc.
References DDPosData::copyno(), DDPosData::ddrot(), class-composition::parent, idealTransformation::rotation, DDRotation::rotation(), cms::rotation_utils::rotName(), cms_rounding::roundIfNear0(), AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), and DDPosData::translation().
void DDCoreToDDXMLOutput::position | ( | const TGeoVolume & | parent, |
const TGeoNode & | child, | ||
const std::string & | childName, | ||
cms::DDParsingContext & | context, | ||
std::ostream & | xos | ||
) |
Definition at line 777 of file DDCoreToDDXMLOutput.cc.
References cms::rotation_utils::addRotWithNewName(), visDQMUpload::context, cms::rotation_utils::identityHash(), makeMuonMisalignmentScenario::matrix, class-composition::parent, makeMuonMisalignmentScenario::rot, cms::rotation_utils::rotHash(), cms::rotation_utils::rotName(), cms_rounding::roundIfNear0(), and AlCaHLTBitMon_QueryRunRegistry::string.
void DDCoreToDDXMLOutput::rotation | ( | const DDRotation & | rotation, |
std::ostream & | xos, | ||
const std::string & | rotn = "" |
||
) |
Definition at line 674 of file DDCoreToDDXMLOutput.cc.
References a, b, c, RPCNoise_example::check, angle_units::operators::convertRadToDeg(), gather_cfg::cout, reflectTol, makeMuonMisalignmentScenario::rot, idealTransformation::rotation, cms::rotation_utils::rotName(), cms_rounding::roundIfNear0(), AlCaHLTBitMon_QueryRunRegistry::string, tol0, and x.
void DDCoreToDDXMLOutput::rotation | ( | const dd4hep::Rotation3D & | rotation, |
std::ostream & | xos, | ||
const cms::DDParsingContext & | context, | ||
const std::string & | rotn | ||
) |
Definition at line 716 of file DDCoreToDDXMLOutput.cc.
References a, b, c, RPCNoise_example::check, angle_units::operators::convertRadToDeg(), reflectTol, idealTransformation::rotation, cms_rounding::roundIfNear0(), tol0, and x.
void DDCoreToDDXMLOutput::solid | ( | const DDSolid & | solid, |
std::ostream & | xos | ||
) |
Definition at line 342 of file DDCoreToDDXMLOutput.cc.
References DDTrap::alpha1(), DDTrap::alpha2(), DDPseudoTrap::atMinusZ(), angle_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, dqmdumpme::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(), cms::rotation_utils::rotName(), 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(), x, 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().
void DDCoreToDDXMLOutput::solid | ( | const dd4hep::Solid & | solid, |
const cms::DDParsingContext & | context, | ||
std::ostream & | xos | ||
) |
Definition at line 100 of file DDCoreToDDXMLOutput.cc.
References visDQMUpload::context, angle_units::operators::convertRadToDeg(), cms::dd_not_init, cms::ddbox, cms::ddcons, cms::ddcuttubs, cms::ddellipticaltube, cms::ddextrudedpolygon, cms::ddintersection, cms::ddpolycone, cms::ddpolyhedra, cms::DDSolidShapeMap, cms::ddsubtraction, cms::ddtorus, cms::ddtrap, cms::ddtrd1, cms::ddtrd2, cms::ddtrunctubs, cms::ddtubs, cms::ddunion, Exception, HGCalGeometryMode::ExtrudedPolygon, mps_fire::i, cms::rotation_utils::identityHash(), dqmdumpme::k, HGCalGeometryMode::Polyhedra, makeMuonMisalignmentScenario::rot, cms::rotation_utils::rotHash(), cms::rotation_utils::rotName(), AlCaHLTBitMon_QueryRunRegistry::string, cms::dd::value(), and x.
void DDCoreToDDXMLOutput::specpar | ( | const DDSpecifics & | sp, |
std::ostream & | xos | ||
) |
Definition at line 834 of file DDCoreToDDXMLOutput.cc.
References mps_fire::i, alignCSCRings::s, DDSpecifics::selection(), DDSpecifics::specifics(), DDBase< N, C >::toString(), and findQualityFiles::v.
void DDCoreToDDXMLOutput::specpar | ( | const std::pair< DDsvalues_type, std::set< const DDPartSelection *>> & | pssv, |
std::ostream & | xos | ||
) |
Definition at line 890 of file DDCoreToDDXMLOutput.cc.
References mps_fire::i, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.
void DDCoreToDDXMLOutput::specpar | ( | const std::string & | name, |
const dd4hep::SpecPar & | specPar, | ||
std::ostream & | xos | ||
) |
|
static |
Definition at line 93 of file DDCoreToDDXMLOutput.cc.
Referenced by OutputDD4hepToDDL::beginRun().
std::string DDCoreToDDXMLOutput::ns_ |
Definition at line 78 of file DDCoreToDDXMLOutput.h.