CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OutputDDToDDL.h
Go to the documentation of this file.
10 
11 #include <ostream>
12 #include <set>
13 
14 class DDPartSelection;
15 
17 struct ddsvaluesCmp {
18  bool operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 );
19 };
20 
22 
23  public:
24  explicit OutputDDToDDL( const edm::ParameterSet& iConfig );
26  virtual void beginRun( const edm::Run&, edm::EventSetup const& );
27  virtual void analyze( const edm::Event&, const edm::EventSetup& ){}
28  virtual void endJob() {};
29 
30  private:
31  void addToMatStore( const DDMaterial& mat, std::set<DDMaterial> & matStore );
32  void addToSolStore( const DDSolid& sol, std::set<DDSolid> & solStore, std::set<DDRotation>& rotStore );
33  void addToSpecStore( const DDLogicalPart& lp, std::map<DDsvalues_type, std::set<DDPartSelection*>, ddsvaluesCmp > & specStore );
34 
37  std::ostream* xos_;
39 
40 };
41 
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
void addToMatStore(const DDMaterial &mat, std::set< DDMaterial > &matStore)
void addToSpecStore(const DDLogicalPart &lp, std::map< DDsvalues_type, std::set< DDPartSelection * >, ddsvaluesCmp > &specStore)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: OutputDDToDDL.h:27
is sv1 &lt; sv2
Definition: OutputDDToDDL.h:17
void addToSolStore(const DDSolid &sol, std::set< DDSolid > &solStore, std::set< DDRotation > &rotStore)
A DDSolid represents the shape of a part.
Definition: DDSolid.h:35
dictionary map
Definition: Association.py:205
std::string fname_
Definition: OutputDDToDDL.h:36
virtual void endJob()
Definition: OutputDDToDDL.h:28
bool operator()(const DDsvalues_type &sv1, const DDsvalues_type &sv2)
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::...
Definition: DDsvalues.h:19
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
std::ostream * xos_
Definition: OutputDDToDDL.h:37
OutputDDToDDL(const edm::ParameterSet &iConfig)
virtual void beginRun(const edm::Run &, edm::EventSetup const &)
Definition: Run.h:36