CMS 3D CMS Logo

DDPartSelection.h
Go to the documentation of this file.
1 #ifndef DDPartSelection_h
2 #define DDPartSelection_h
3 
4 #include <vector>
5 #include <string>
6 #include <iostream>
8 
9 class DDLogicalPart;
10 
12  ddunknown, // -> (should never appear!)
13  ddanynode, // -> //*
14  ddanychild, // -> /*
15  ddanylogp, // -> //NameOfLogicalPart
16  ddanyposp, // -> //NameOfLogicalPart[copyno]
17  ddchildlogp, // -> /NameOfLogicalPart
18  ddchildposp // -> /NameOfLogicalPart[copyno]
19 };
20 
22  DDPartSelRegExpLevel(const std::string &ns, const std::string &nm, int cpn, ddselection_type t, bool isRegex = false)
23  : ns_(ns), nm_(nm), copyno_(cpn), selectionType_(t), isRegex_(isRegex) {}
25  int copyno_;
27  bool isRegex_;
28 };
29 
33  int copyno_;
35 };
36 
37 class DDPartSelection : public std::vector<DDPartSelectionLevel> {
38 public:
40 };
41 
42 std::ostream &operator<<(std::ostream &, const DDPartSelection &);
43 std::ostream &operator<<(std::ostream &, const std::vector<DDPartSelection> &);
44 
45 void DDTokenize2(const std::string &selectionString, std::vector<DDPartSelRegExpLevel> &result);
46 std::ostream &operator<<(std::ostream &, const DDPartSelection &);
47 
48 #endif
ddanychild
Definition: DDPartSelection.h:14
operator<<
std::ostream & operator<<(std::ostream &, const DDPartSelection &)
Definition: DDPartSelection.cc:183
ddanyposp
Definition: DDPartSelection.h:16
DDPartSelection
Definition: DDPartSelection.h:37
ddunknown
Definition: DDPartSelection.h:12
DDPartSelRegExpLevel::copyno_
int copyno_
Definition: DDPartSelection.h:25
DDPartSelRegExpLevel::nm_
std::string nm_
Definition: DDPartSelection.h:24
cms::dd::isRegex
bool isRegex(std::string_view)
DDPartSelection::DDPartSelection
DDPartSelection()
Definition: DDPartSelection.h:39
DDPartSelRegExpLevel::ns_
std::string ns_
Definition: DDPartSelection.h:24
ddchildposp
Definition: DDPartSelection.h:18
DDPartSelectionLevel::lp_
DDLogicalPart lp_
Definition: DDPartSelection.h:32
DDPartSelRegExpLevel
Definition: DDPartSelection.h:21
DDPartSelectionLevel::selectionType_
ddselection_type selectionType_
Definition: DDPartSelection.h:34
OrderedSet.t
t
Definition: OrderedSet.py:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDPartSelectionLevel::copyno_
int copyno_
Definition: DDPartSelection.h:33
ddselection_type
ddselection_type
Definition: DDPartSelection.h:11
DDPartSelectionLevel
Definition: DDPartSelection.h:30
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
ddanynode
Definition: DDPartSelection.h:13
DDPartSelRegExpLevel::isRegex_
bool isRegex_
Definition: DDPartSelection.h:27
ddanylogp
Definition: DDPartSelection.h:15
DDLogicalPart.h
DDPartSelRegExpLevel::selectionType_
ddselection_type selectionType_
Definition: DDPartSelection.h:26
DDPartSelRegExpLevel::DDPartSelRegExpLevel
DDPartSelRegExpLevel(const std::string &ns, const std::string &nm, int cpn, ddselection_type t, bool isRegex=false)
Definition: DDPartSelection.h:22
std
Definition: JetResolutionObject.h:76
DDPartSelectionLevel::DDPartSelectionLevel
DDPartSelectionLevel(const DDLogicalPart &, int, ddselection_type)
Definition: DDPartSelection.cc:171
ddchildlogp
Definition: DDPartSelection.h:17
DDTokenize2
void DDTokenize2(const std::string &selectionString, std::vector< DDPartSelRegExpLevel > &result)
Definition: DDPartSelection.cc:174
mps_fire.result
result
Definition: mps_fire.py:303