19 hasDDValue_( 1,
false )
37 if ( ! (s.first && s.second) ) {
39 std::cerr <<
"LogicalPart::addSpecific error pointer 0 " 40 << s.first <<
"," << s.second << std::endl;
44 for(
const auto& it : *s.second ) {
45 unsigned int id = it.first;
59 unsigned int id = v.
id();
68 std::vector<std::pair<const DDPartSelection*, const DDsvalues_type* > >::iterator it =
75 std::vector<const DDsvalues_type*>
result;
85 if (ps.size()==1 && ps[0].selectionType_==
ddanylogp) {
86 result.emplace_back(it.second);
99 std::vector<const DDsvalues_type *> unmerged;
101 if (unmerged.size()==1) {
102 merged = *(unmerged[0]);
104 else if (unmerged.size()>1) {
105 for(
const auto& it : unmerged ) {
std::vector< std::pair< const DDPartSelection *, const DDsvalues_type * > > specifics_
DDMaterial is used to define and access material information.
DDEnums::Category category() const
void removeSpecifics(const std::pair< const DDPartSelection *, const DDsvalues_type * > &)
void addSpecifics(const std::pair< const DDPartSelection *, const DDsvalues_type * > &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
unsigned int id(void) const
returns the ID of the DDValue
A DDSolid represents the shape of a part.
std::vector< bool > hasDDValue_
const DDMaterial & material() const
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
void stream(std::ostream &)
std::vector< const DDsvalues_type * > specifics() const
bool hasDDValue(const DDValue &) const
void mergedSpecificsV(DDsvalues_type &res) const
const DDSolid & solid() const
DDsvalues_type mergedSpecifics() const
void specificsV(std::vector< const DDsvalues_type * > &result) const
def merge(dictlist, TELL=False)