lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
detector::Detector Class Reference

Base detector class holding a name and a DETTYPE. More...

#include <Detector.hh>

Inherited by detector::AreaDetector.

Public Member Functions

 Detector (const std::string &detname="NoDevice", const DETTYPE &dettype=UNDEFINED_DETECTOR)
 Store detname and dettype; if dettype is UNDEFINED_DETECTOR it is looked up from detname with find_dettype().
 
virtual ~Detector ()
 Destructor; only logs a debug message.
 
const std::string & detname ()
 Return the detector name.
 
const DETTYPE & dettype ()
 Return the detector type.
 
 Detector (const Detector &)=delete
 Copy construction is disabled.
 
Detector & operator= (const Detector &)=delete
 Copy assignment is disabled.
 

Friends

std::ostream & operator<< (std::ostream &os, Detector &o)
 Write "Detector name=", the name, " type=", the numeric type and " typename=" with dettypename() of o to os, and return os.
 

Detailed Description

Base detector class holding a name and a DETTYPE.

Constructor & Destructor Documentation

◆ Detector() [1/2]

detector::Detector::Detector ( const std::string &  detname = "NoDevice",
const DETTYPE &  dettype = UNDEFINED_DETECTOR 
)

Store detname and dettype; if dettype is UNDEFINED_DETECTOR it is looked up from detname with find_dettype().

◆ ~Detector()

virtual detector::Detector::~Detector ( )
virtual

Destructor; only logs a debug message.

◆ Detector() [2/2]

detector::Detector::Detector ( const Detector &  )
delete

Copy construction is disabled.

Member Function Documentation

◆ detname()

const std::string & detector::Detector::detname ( )
inline

Return the detector name.

◆ dettype()

const DETTYPE & detector::Detector::dettype ( )
inline

Return the detector type.

◆ operator=()

Detector & detector::Detector::operator= ( const Detector &  )
delete

Copy assignment is disabled.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
Detector &  o 
)
friend

Write "Detector name=", the name, " type=", the numeric type and " typename=" with dettypename() of o to os, and return os.


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