DetectorDescription
Core
interface
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>
7
#include "
DetectorDescription/Core/interface/DDLogicalPart.h
"
8
9
class
DDLogicalPart
;
10
11
enum
ddselection_type
{
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
21
struct
DDPartSelRegExpLevel
{
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) {}
24
std::string
ns_
,
nm_
;
25
int
copyno_
;
26
ddselection_type
selectionType_
;
27
bool
isRegex_
;
28
};
29
30
struct
DDPartSelectionLevel
{
31
DDPartSelectionLevel
(
const
DDLogicalPart
&,
int
,
ddselection_type
);
32
DDLogicalPart
lp_
;
33
int
copyno_
;
34
ddselection_type
selectionType_
;
35
};
36
37
class
DDPartSelection
:
public
std::vector
<DDPartSelectionLevel> {
38
public
:
39
DDPartSelection
() :
std
::
vector
<
DDPartSelectionLevel
>() {}
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
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
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
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
DDPartSelRegExpLevel::isRegex_
bool isRegex_
Definition:
DDPartSelection.h:27
ddanylogp
Definition:
DDPartSelection.h:15
DDLogicalPart.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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:311
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
Generated for CMSSW Reference Manual by
1.8.16