DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::DetElementsCollector< T > Class Template Reference

Generic detector element collector of a sub-tree. More...

#include <DetectorProcessor.h>

Public Member Functions

 DetElementsCollector (T &d)
 Default constructor. More...
 
 DetElementsCollector (T &&p)=delete
 Default move constructor is disabled. More...
 
 DetElementsCollector (DetElementsCollector &&copy)=default
 R-value copy from a temporary. More...
 
 DetElementsCollector (const DetElementsCollector &copy)=default
 Copy constructor. More...
 
 ~DetElementsCollector ()=default
 Default destructor. More...
 
DetElementsCollectoroperator= (const DetElementsCollector &copy)=default
 Assignment operator. More...
 
virtual int operator() (DetElement de, int level) const final
 Callback to output elements information. More...
 

Public Attributes

T & elements
 Collection container. More...
 

Detailed Description

template<typename T>
class dd4hep::DetElementsCollector< T >

Generic detector element collector of a sub-tree.

To be used with utilities like DetElementProcessor etc.

Author
M.Frank
Version
1.0
Date
01/04/2016

Definition at line 129 of file DetectorProcessor.h.

Constructor & Destructor Documentation

◆ DetElementsCollector() [1/4]

template<typename T >
dd4hep::DetElementsCollector< T >::DetElementsCollector ( T &  d)
inline

Default constructor.

Definition at line 135 of file DetectorProcessor.h.

◆ DetElementsCollector() [2/4]

template<typename T >
dd4hep::DetElementsCollector< T >::DetElementsCollector ( T &&  p)
delete

Default move constructor is disabled.

◆ DetElementsCollector() [3/4]

template<typename T >
dd4hep::DetElementsCollector< T >::DetElementsCollector ( DetElementsCollector< T > &&  copy)
default

R-value copy from a temporary.

◆ DetElementsCollector() [4/4]

template<typename T >
dd4hep::DetElementsCollector< T >::DetElementsCollector ( const DetElementsCollector< T > &  copy)
default

Copy constructor.

◆ ~DetElementsCollector()

template<typename T >
dd4hep::DetElementsCollector< T >::~DetElementsCollector ( )
default

Default destructor.

Member Function Documentation

◆ operator()()

template<typename T >
int DetElementsCollector::operator() ( DetElement  de,
int  level 
) const
finalvirtual

Callback to output elements information.

Callback to output conditions information.

Note: Valid implementations exist for the container types: std::set<DetElement> std::list<DetElement> std::vector<DetElement>

Definition at line 41 of file DetectorProcessor.cpp.

◆ operator=()

template<typename T >
DetElementsCollector& dd4hep::DetElementsCollector< T >::operator= ( const DetElementsCollector< T > &  copy)
default

Assignment operator.

Member Data Documentation

◆ elements

template<typename T >
T& dd4hep::DetElementsCollector< T >::elements

Collection container.

Definition at line 132 of file DetectorProcessor.h.


The documentation for this class was generated from the following files: