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

JungfrauId, a 64-bit board-plus-module identifier, and JungfrauIdLookup, which finds the MAC address of a Jungfrau host. More...

#include <cstdint>
#include <string>
#include <map>

Classes

class  Drp::JungfrauId
 64-bit Jungfrau ID: a board value in the upper bits and a 16-bit module number in the low 16 bits. More...
 
class  Drp::JungfrauIdLookup
 Finds the MAC address of a host: first in /proc/net/arp, then by logging in to the device with telnet and reading the eth0 HWaddr from its ifconfig output. More...
 

Namespaces

namespace  Drp
 This class services detectors whose event data is formatted from the AxiStreamBatcherEventBuilder firmware module This class depends upon the existence of a python module "psdaq.configdb.<detType>_config.py", which contains the following functions: <detType>_init (str) - returns a handle (PyObject) for interacting with the device configuration <detType>_connect (handle) - returns a dictionary with "paddr" element for Xpm link ID.
 

Typedefs

typedef std::map< std::string, std::string > Drp::ArpCache
 Map from IP address string to MAC address string, filled by JungfrauIdLookup from /proc/net/arp or from the device.
 
typedef ArpCache::const_iterator Drp::ArpCacheIter
 Const iterator over an ArpCache.
 

Detailed Description

JungfrauId, a 64-bit board-plus-module identifier, and JungfrauIdLookup, which finds the MAC address of a Jungfrau host.