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

Generic condition collector keyed by detector elements. More...

#include <ConditionsProcessor.h>

Public Member Functions

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

Public Attributes

ConditionsMapmapping
 Reference to the user pool. More...
 
T & conditions
 Collection container. More...
 

Detailed Description

template<typename T>
class dd4hep::cond::ConditionsCollector< T >

Generic condition collector keyed by detector elements.

To be used with utilities like DetElementProcessor etc.

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

Definition at line 118 of file ConditionsProcessor.h.

Constructor & Destructor Documentation

◆ ConditionsCollector() [1/4]

template<typename T >
dd4hep::cond::ConditionsCollector< T >::ConditionsCollector ( ConditionsMap m,
T &  d 
)
inline

Default constructor.

Definition at line 126 of file ConditionsProcessor.h.

◆ ConditionsCollector() [2/4]

template<typename T >
dd4hep::cond::ConditionsCollector< T >::ConditionsCollector ( ConditionsMap m,
T &&  p 
)
delete

Default move constructor is disabled.

◆ ConditionsCollector() [3/4]

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

R-value copy from a temporary.

◆ ConditionsCollector() [4/4]

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

Copy constructor.

◆ ~ConditionsCollector()

template<typename T >
dd4hep::cond::ConditionsCollector< T >::~ConditionsCollector ( )
default

Default destructor.

Member Function Documentation

◆ operator()()

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

Callback to output conditions information.

Note: Valid implementations exist for the container types: std::list<Condition> std::vector<Condition> std::map<DetElement,Condition> std::multimap<DetElement,Condition> std::map<std::string,Condition> key = DetElement.path() std::multimap<std::string,Condition> key = DetElement.path()

Constructor

Processing callback

Definition at line 25 of file ConditionsProcessor.cpp.

◆ operator=()

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

Assignment operator.

Member Data Documentation

◆ conditions

template<typename T >
T& dd4hep::cond::ConditionsCollector< T >::conditions

Collection container.

Definition at line 123 of file ConditionsProcessor.h.

◆ mapping

template<typename T >
ConditionsMap& dd4hep::cond::ConditionsCollector< T >::mapping

Reference to the user pool.

Definition at line 121 of file ConditionsProcessor.h.


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