1 #ifndef DDLogicalPart_h
2 #define DDLogicalPart_h
14 namespace DDI {
class LogicalPart; }
118 std::vector<const DDsvalues_type *>
specifics(
void )
const;
124 void addSpecifics(
const std::pair<DDPartSelection*,DDsvalues_type*> &);
125 void removeSpecifics(
const std::pair<DDPartSelection*,DDsvalues_type*> &);
126 const std::vector< std::pair<DDPartSelection*,DDsvalues_type*> > &
attachedSpecifics(
void )
const;
131 std::pair<bool, std::string>
bool hasDDValue(const DDValue &) const
const DDName & name() const
DDMaterial is used to define and access material information.
DDEnums::Category category(void) const
Returns the categorization of the DDLogicalPart (sensitive detector element, cable, ...)
friend std::ostream & operator<<(std::ostream &, const DDLogicalPart &)
DDName is used to identify DDD entities uniquely.
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
double & weight(void)
Weight of the LogicalPart viewed as a component, if cached, else -1.
A DDSolid represents the shape of a part.
std::vector< const DDsvalues_type * > specifics(void) const
returns the specific-data attached to the LogicalPart only (not to a DDExpandedNode) ...
const std::vector< std::pair< DDPartSelection *, DDsvalues_type * > > & attachedSpecifics(void) const
DDI::Singleton< std::map< std::string, std::vector< DDName > > > LPNAMES
void addSpecifics(const std::pair< DDPartSelection *, DDsvalues_type * > &)
don't use, internal only /todo make it private
void DD_NC(const DDName &)
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::...
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
DDsvalues_type mergedSpecifics(void) const
returns the merged-specifics, i.e. the last specified specifics of this logical-part ...
std::pair< bool, std::string > DDIsValid(const std::string &ns, const std::string &name, std::vector< DDLogicalPart > &result, bool doRegex=true)
void removeSpecifics(const std::pair< DDPartSelection *, DDsvalues_type * > &)
DDLogicalPart(void)
The default constructor provides an uninitialzed reference object.
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.
Interface to attach user specific data to nodes in the expanded-view.