DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | List of all members
dd4hep::DetectorScanner Class Reference

Helper to run DetElement scans. More...

#include <DetectorProcessor.h>

Public Member Functions

 DetectorScanner ()=default
 Default constructor. More...
 
 DetectorScanner (const DetectorScanner &copy)=default
 Copy constructor. More...
 
DetectorScanneroperator= (const DetectorScanner &copy)=default
 Assignment operator. More...
 
template<typename Q >
 DetectorScanner (Q &proc, DetElement start, int level=0, bool recursive=true)
 Constructor performing the scan internally. More...
 
template<typename Q >
 DetectorScanner (const Q &proc, DetElement start, int level=0, bool recursive=true)
 Constructor performing the scan internally. More...
 
template<typename Q >
int scan (Q &p, DetElement start, int level=0, bool recursive=true) const
 Detector element tree scanner using wrapped DetectorProcessor objects. More...
 
template<typename Q >
int scan (const Q &p, DetElement start, int level=0, bool recursive=true) const
 Detector element tree scanner using wrapped DetectorProcessor objects. More...
 

Detailed Description

Helper to run DetElement scans.

This wrapper converts any object, which has the signature int operator()(DetElement de, int level) const The object is automatically wrapped to a DetectorProcessor and the detector tree is scanned depending on the scanning arguments.

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

Definition at line 173 of file DetectorProcessor.h.

Constructor & Destructor Documentation

◆ DetectorScanner() [1/4]

dd4hep::DetectorScanner::DetectorScanner ( )
default

Default constructor.

◆ DetectorScanner() [2/4]

dd4hep::DetectorScanner::DetectorScanner ( const DetectorScanner copy)
default

Copy constructor.

◆ DetectorScanner() [3/4]

template<typename Q >
dd4hep::DetectorScanner::DetectorScanner ( Q &  proc,
DetElement  start,
int  level = 0,
bool  recursive = true 
)
inline

Constructor performing the scan internally.

Definition at line 184 of file DetectorProcessor.h.

◆ DetectorScanner() [4/4]

template<typename Q >
dd4hep::DetectorScanner::DetectorScanner ( const Q &  proc,
DetElement  start,
int  level = 0,
bool  recursive = true 
)
inline

Constructor performing the scan internally.

Definition at line 189 of file DetectorProcessor.h.

Member Function Documentation

◆ operator=()

DetectorScanner& dd4hep::DetectorScanner::operator= ( const DetectorScanner copy)
default

Assignment operator.

◆ scan() [1/2]

template<typename Q >
int dd4hep::DetectorScanner::scan ( const Q &  p,
DetElement  start,
int  level = 0,
bool  recursive = true 
) const
inline

Detector element tree scanner using wrapped DetectorProcessor objects.

Definition at line 201 of file DetectorProcessor.h.

◆ scan() [2/2]

template<typename Q >
int dd4hep::DetectorScanner::scan ( Q &  p,
DetElement  start,
int  level = 0,
bool  recursive = true 
) const
inline

Detector element tree scanner using wrapped DetectorProcessor objects.

Definition at line 194 of file DetectorProcessor.h.


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