lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
DetectorTypes.hh File Reference

Declares detector::DETTYPE, the name-to-type maps and find_dettype(), dettypename() and the map printers. More...

#include <string>
#include <map>

Namespaces

namespace  detector
 Namespace of the psalg detector classes and types (Detector, AreaDetector and subclasses, AREADETTYPE, ...).
 

Enumerations

enum  detector::DETTYPE {
  detector::UNDEFINED_DETECTOR =0 , detector::AREA_DETECTOR , detector::CONTROL_DATA_DETECTOR , detector::DDL_DETECTOR ,
  detector::EPICS_DETECTOR , detector::EVR_DETECTOR , detector::WF_DETECTOR , detector::IPIMB_DETECTOR ,
  detector::OCEAN_DETECTOR , detector::USDUSB_DETECTOR , detector::TDC_DETECTOR
}
 Detector categories. More...
 

Functions

const DETTYPE detector::find_dettype (const std::string &detname)
 Return the type of the first key of map_detname_to_dettype (alphabetical key order) that occurs in detname, else the first such key of map_bldinfo_to_dettype, else UNDEFINED_DETECTOR.
 
const std::string & detector::dettypename (const DETTYPE dettype)
 Return the enumerator name of dettype from map_dettype_to_typename; operator[] inserts an empty name for a value not in the map.
 
void detector::print_map_detname_to_dettype ()
 Log all entries of map_detname_to_dettype as one INFO message, one "key => value" line each.
 
void detector::print_map_bldinfo_to_dettype ()
 Log all entries of map_bldinfo_to_dettype as one INFO message, one "key => value" line each.
 

Variables

static std::map< DETTYPE, std::string > detector::map_dettype_to_typename
 Map from DETTYPE to its enumerator name, used by dettypename().
 
static std::map< std::string, DETTYPE > detector::map_detname_to_dettype
 Map from a detector-name fragment (e.g.
 
static std::map< std::string, DETTYPE > detector::map_bldinfo_to_dettype
 Map from name fragments such as "EBeam", "FEEGasDetEnergy" or "XCS-IPM-01" to DETTYPE, searched by find_dettype() after map_detname_to_dettype.
 

Detailed Description

Declares detector::DETTYPE, the name-to-type maps and find_dettype(), dettypename() and the map printers.