Go to the documentation of this file.
17 auto geoInfoRoot = std::make_unique<DetGeomDesc>(fv,
isRun2);
22 edm::LogInfo(
"PPSGeometryESProducer") <<
"Successfully built geometry.";
41 const auto& detId =
child->geographicalID();
64 if (fv.
next(0) ==
false) {
65 edm::LogError(
"PPSGeometryESProducer") <<
"Filtered view is empty. Cannot build.";
69 auto geoInfoRoot = std::make_unique<DetGeomDesc>(fv,
isRun2);
77 const auto& detId =
child->geographicalID();
82 geoInfoRoot->addComponent(
child);
85 edm::LogInfo(
"PPSGeometryESProducer") <<
"Successfully built geometry, it has " << (geoInfoRoot->components()).
size()
86 <<
" DetGeomDesc nodes.";
void buildDetGeomDescDescendants(DDFilteredView &fv, DetGeomDesc *geoInfoParent, const bool isRun2)
void addComponent(DetGeomDesc *)
Log< level::Info, false > LogInfo
bool parent()
set the current node to the parent node ...
bool firstChild()
set the current node to the first child ...
Compact representation of the geometrical detector hierarchy.
bool nextSibling()
set the current node to the next sibling ...
dd4hep::Volume worldVolume() const
Handle to the world volume containing everything.
bool next(int)
set current node to the next node in the filtered tree
Log< level::Error, false > LogError
A DDFilter that always returns true.
std::unique_ptr< DetGeomDesc > buildDetGeomDescFromCompactView(const DDCompactView &myCompactView, const bool isRun2)
const cms::DDDetector * detector() const