|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DD4HEP_DETECTORPROCESSOR_H
14 #define DD4HEP_DETECTORPROCESSOR_H
89 template <
typename T>
inline
156 template <
typename T>
inline
183 template <
typename Q>
185 {
scan(proc, start, level, recursive); }
188 template <
typename Q>
190 {
scan(proc, start, level, recursive); }
193 template <
typename Q>
196 return proc.process(start, level, recursive);
200 template <
typename Q>
203 return proc.process(start, level, recursive);
207 #endif // DD4HEP_DETECTORPROCESSOR_H
DetElementsCollector(T &&p)=delete
Default move constructor is disabled.
DetectorScanner(Q &proc, DetElement start, int level=0, bool recursive=true)
Constructor performing the scan internally.
virtual ~DetectorProcessor()
Default destructor.
DetectorProcessorShared(const DetectorProcessorShared ©)=default
Default copy constructor.
Helper to run DetElement scans.
int scan(const Q &p, DetElement start, int level=0, bool recursive=true) const
Detector element tree scanner using wrapped DetectorProcessor objects.
DetectorScanner(const Q &proc, DetElement start, int level=0, bool recursive=true)
Constructor performing the scan internally.
DetectorProcessor & operator=(const DetectorProcessor ©)=default
Default assignment.
DetElementProcessor()=delete
Default constructor.
DetectorScanner(const DetectorScanner ©)=default
Copy constructor.
Detector scanner using a Processor object.
DetElementsCollector< typename std::remove_reference< T >::type > detElementsCollector(T &&container)
Creator utility function for DetElementsCollector objects.
DetElementProcessor & operator=(const DetElementProcessor ©)=default
Default assignment.
virtual int operator()(DetElement de, int level) const final
Callback to output detector information of an single DetElement.
DetElementProcessor(T &p)
Default constructor.
virtual ~DetElementProcessor()=default
Default destructor.
~DetElementsCollector()=default
Default destructor.
DetElementsCollector & operator=(const DetElementsCollector ©)=default
Assignment operator.
DetectorProcessor()=default
Initializing constructor.
Handle class describing a detector element.
DetectorScanner()=default
Default constructor.
virtual int process(DetElement de, int level, bool recursive) const
Callback to output detector information of an entire DetElement.
int scan(Q &p, DetElement start, int level=0, bool recursive=true) const
Detector element tree scanner using wrapped DetectorProcessor objects.
DetElementsCollector(T &d)
Default constructor.
std::shared_ptr< T > processor
Reference to execution object implementing operator()(DetElement de, int level)
DetectorProcessor(DetectorProcessor &©)=default
R-value copy from a temporary (Since processor is reference)
DetElementsCollector(const DetElementsCollector ©)=default
Copy constructor.
DetectorProcessor(const DetectorProcessor ©)=default
Default copy constructor.
Generic Detector processor.
DetectorProcessorShared & operator=(const DetectorProcessorShared ©)=default
Default assignment.
DetElementProcessor(T &&p)=delete
Default move constructor is disabled.
DetElementsCollector(DetElementsCollector &©)=default
R-value copy from a temporary.
T & elements
Collection container.
T & processor
Reference to execution object implementing operator()(DetElement de, int level)
virtual int operator()(DetElement de, int level) const final
Callback to output detector information of an single DetElement.
DetElementProcessor(const DetElementProcessor ©)=default
Default copy constructor.
DetElementProcessor(DetElementProcessor &©)=default
R-value copy from a temporary (Since processor is reference)
virtual int operator()(DetElement de, int level) const =0
Callback to output detector information of an single DetElement.
Namespace for the AIDA detector description toolkit.
Generic detector element collector of a sub-tree.
DetectorScanner & operator=(const DetectorScanner ©)=default
Assignment operator.
DetectorProcessorShared()=delete
Default constructor.
virtual int operator()(DetElement de, int level) const final
Callback to output elements information.
Wrapper to call objects in the form of a detector element processor.
DetectorProcessorShared(std::shared_ptr< T > &p)
Default constructor.
DetElementProcessor< typename std::remove_reference< T >::type > detectorProcessor(T &&proc)
Instantiation helper.
virtual ~DetectorProcessorShared()=default
Default destructor.