Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
pass parameters of TEllipse,TBox directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice committed Jun 20, 2017
1 parent c5e1a8c commit 0e030fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions papas/display/src/GDetectorElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ GDetectorElement::GDetectorElement(std::shared_ptr<const DetectorElement> detEle
double radius = elem.radius();
double dz = elem.z();

m_circles.push_back(TEllipse(0., 0., radius, radius));
m_boxes.push_back(TBox(-dz, -radius, dz, radius));
m_circles.push_back({0., 0., radius, radius});
m_boxes.push_back({-dz, -radius, dz, radius});
}

// Choose color according to which element it is
Expand All @@ -59,8 +59,8 @@ GDetectorElement::GDetectorElement(std::shared_ptr<const DetectorElement> detEle

GDetectorElement::GDetectorElement(double radius, double dz) {

m_circles.push_back(TEllipse(0., 0., radius, radius));
m_boxes.push_back(TBox(-dz, -radius, dz, radius));
m_circles.push_back({0., 0., radius, radius});
m_boxes.push_back({-dz, -radius, dz, radius});

// Choose color according to which element it is
int color = 0;
Expand Down

0 comments on commit 0e030fa

Please sign in to comment.