CMS 3D CMS Logo

DDSpecifics.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_CORE_DDSPECIFICS_H
2 #define DETECTOR_DESCRIPTION_CORE_DDSPECIFICS_H
3 
4 #include <iosfwd>
5 #include <map>
6 #include <memory>
7 #include <string>
8 #include <utility>
9 #include <vector>
10 
15 
16 class DDExpandedView;
17 class DDNodes;
18 class DDPartSelection;
19 class DDSpecifics;
20 
21 namespace DDI {
22  class Specific;
23 }
24 
25 std::ostream & operator<<( std::ostream &, const std::vector<std::string> & );
26 std::ostream & operator<<( std::ostream &, const DDSpecifics & );
27 
33 
42 class DDSpecifics : public DDBase< DDName, std::unique_ptr<DDI::Specific> >
43 {
44  friend std::ostream & operator<<( std::ostream &, const DDSpecifics &);
45 
46 public:
48  DDSpecifics();
49 
51 
57  DDSpecifics(const DDName & name);
58 
60 
68  DDSpecifics(const DDName & name,
69  const std::vector<std::string> & partSelections,
70  const DDsvalues_type & svalues,
71  bool doRegex=true);
72 
74  const std::vector<DDPartSelection> & selection() const;
75 
77  const DDsvalues_type & specifics() const;
78 
80  std::pair<bool,DDExpandedView> node() const;
81 };
82 
83 #endif
Definition: DDBase.h:10
selection
main part
Definition: corrVsCorr.py:99
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
Definition: DDNodes.h:7
std::ostream & operator<<(std::ostream &, const std::vector< std::string > &)
Definition: DDSpecifics.cc:87
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
Provides an exploded view of the detector (tree-view)
Interface to attach user specific data to nodes in the expanded-view.
Definition: DDSpecifics.h:42