Skip to content

Commit

Permalink
Off-topic: rename printAllTrackerGeometricDets function, now placed a…
Browse files Browse the repository at this point in the history
…fter DetId building.
  • Loading branch information
ghugo83 committed Feb 10, 2021
1 parent ce63b00 commit 75d9d52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ std::unique_ptr<GeometricDet> DDDCmsTrackerContruction::construct(const DDCompac
theCmsTrackerDetIdBuilder.buildId(*tracker);

if (DEBUG) {
printAllTrackerGeometricDetsBeforeDetIDBuilding(tracker.get());
printAllTrackerGeometricDets(tracker.get());
}

fv.parent();
Expand Down Expand Up @@ -88,7 +88,7 @@ std::unique_ptr<GeometricDet> DDDCmsTrackerContruction::construct(const cms::DDC
theCmsTrackerDetIdBuilder.buildId(*tracker);

if (DEBUG) {
printAllTrackerGeometricDetsBeforeDetIDBuilding(tracker.get());
printAllTrackerGeometricDets(tracker.get());
}

return tracker;
Expand All @@ -100,7 +100,7 @@ std::unique_ptr<GeometricDet> DDDCmsTrackerContruction::construct(const cms::DDC
* and all GeometricDets are sorted according to their geometric position.
* This allows a convenient debugging, as the DetIds will be later assigned according to this information.
*/
void DDDCmsTrackerContruction::printAllTrackerGeometricDetsBeforeDetIDBuilding(const GeometricDet* tracker) {
void DDDCmsTrackerContruction::printAllTrackerGeometricDets(const GeometricDet* tracker) {
std::ofstream outputFile("All_Tracker_GeometricDets_before_DetId_building.log", std::ios::out);

// Tree navigation: queue for BFS (we want to see same hierarchy level together).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace cms {
namespace DDDCmsTrackerContruction {
std::unique_ptr<GeometricDet> construct(DDCompactView const& cpv, std::vector<int> const& detidShifts);
std::unique_ptr<GeometricDet> construct(cms::DDCompactView const& cpv, std::vector<int> const& detidShifts);
void printAllTrackerGeometricDetsBeforeDetIDBuilding(const GeometricDet* tracker);
void printAllTrackerGeometricDets(const GeometricDet* tracker);
}; // namespace DDDCmsTrackerContruction

#endif

0 comments on commit 75d9d52

Please sign in to comment.