-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26218 from ianna/dd-filtered-view-v4
DD4hep: DD Filtered View
- Loading branch information
Showing
18 changed files
with
982 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef DETECTOR_DESCRIPTION_EXPANDED_NODES_H | ||
#define DETECTOR_DESCRIPTION_EXPANDED_NODES_H | ||
|
||
// -*- C++ -*- | ||
// | ||
// Package: DetectorDescription/ExpandedNodes | ||
// Class: ExpandedNodes | ||
// | ||
/**\class ExpandedNodes | ||
Description: ExpandedNodes extra attributes: tags, offsets | ||
and copy numbers | ||
Implementation: | ||
ExpandedNodes structure to keep the nodes history | ||
*/ | ||
// | ||
// Original Author: Ianna Osborne | ||
// Created: Tue, 18 Mar 2019 12:22:35 CET | ||
// | ||
// | ||
#include <vector> | ||
|
||
namespace cms { | ||
|
||
struct ExpandedNodes { | ||
std::vector<double> tags; | ||
std::vector<double> offsets; | ||
std::vector<int> copyNos; | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef DETECTOR_DESCRIPTION_FILTER_H | ||
#define DETECTOR_DESCRIPTION_FILTER_H | ||
|
||
// -*- C++ -*- | ||
// | ||
// Package: DetectorDescription/Filter | ||
// Class: Filter | ||
// | ||
/**\class Filter | ||
Description: Filter list | ||
Implementation: | ||
Filter criteria is defined in XML | ||
*/ | ||
// | ||
// Original Author: Ianna Osborne | ||
// Created: Tue, 12 Mar 2019 09:51:33 CET | ||
// | ||
// | ||
#include <memory> | ||
#include <vector> | ||
|
||
namespace cms { | ||
|
||
struct Filter { | ||
std::vector<std::string_view> keys; | ||
std::unique_ptr<Filter> next; | ||
struct Filter* up; | ||
}; | ||
|
||
namespace dd { | ||
bool accepted(std::vector<std::string_view> const&, std::string_view); | ||
int contains(std::string_view, std::string_view); | ||
bool isRegex(std::string_view); | ||
bool compareEqual(std::string_view, std::string_view); | ||
std::string_view realTopName(std::string_view input); | ||
std::string_view noCopyNo(std::string_view input); | ||
int copyNo(std::string_view input); | ||
std::string_view noNamespace(std::string_view input); | ||
std::vector<std::string_view> split(std::string_view, const char*); | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.