Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DD4hep] Filtered View is not a Shape #31603

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 0 additions & 32 deletions DetectorDescription/DDCMS/interface/DDFilteredView.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,39 +136,7 @@ namespace cms {
//! set current node to the parent node in the filtered tree
void up();

// Get shape pointer of current node.
// Caller must check that current node matches desired type
// before calling this function.

template <class Shape>
const Shape* getShapePtr() const {
Volume currVol = node_->GetVolume();
return (dynamic_cast<Shape*>(currVol->GetShape()));
}

// Shape of current node

template <class Shape>
bool isA() const {
return dd4hep::isA<Shape>(solid());
}

bool isABox() const { return isA<dd4hep::Box>(); }

bool isAConeSeg() const { return isA<dd4hep::ConeSegment>(); }

bool isAPseudoTrap() const { return isA<dd4hep::PseudoTrap>(); }

bool isATrapezoid() const { return isA<dd4hep::Trap>(); }

bool isATruncTube() const { return isA<dd4hep::TruncatedTube>(); }

bool isATubeSeg() const { return isA<dd4hep::Tube>(); }

bool isASubtraction() const {
return (isA<dd4hep::SubtractionSolid>() and not isA<dd4hep::TruncatedTube>() and not isA<dd4hep::PseudoTrap>());
}

dd4hep::Solid solid() const;

// Name of current node
Expand Down
221 changes: 0 additions & 221 deletions DetectorDescription/DDCMS/interface/DDShapes.h

This file was deleted.