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

64-bit Jungfrau ID: a board value in the upper bits and a 16-bit module number in the low 16 bits. More...

#include <JungfrauDetectorId.hh>

Public Member Functions

 JungfrauId ()
 Construct with ID 0.
 
 JungfrauId (uint64_t id)
 Construct from a full 64-bit ID.
 
 JungfrauId (uint64_t board, uint64_t module)
 Construct the ID as board shifted left by 16 bits ORed with the low 16 bits of module.
 
 JungfrauId (const std::string &mac, uint64_t module)
 Like JungfrauId(board, module), with the board value parsed from the MAC address string mac by JungfrauIdLookup::mac_to_hex().
 
 ~JungfrauId ()
 Does nothing; empty body.
 
uint64_t full () const
 Return the full 64-bit ID.
 
uint64_t board () const
 Return the ID shifted right by 16 bits (the board part).
 
uint64_t module () const
 Return the low 16 bits of the ID (the module part).
 

Detailed Description

64-bit Jungfrau ID: a board value in the upper bits and a 16-bit module number in the low 16 bits.

Constructor & Destructor Documentation

◆ JungfrauId() [1/4]

Drp::JungfrauId::JungfrauId ( )

Construct with ID 0.

◆ JungfrauId() [2/4]

Drp::JungfrauId::JungfrauId ( uint64_t  id)

Construct from a full 64-bit ID.

◆ JungfrauId() [3/4]

Drp::JungfrauId::JungfrauId ( uint64_t  board,
uint64_t  module 
)

Construct the ID as board shifted left by 16 bits ORed with the low 16 bits of module.

◆ JungfrauId() [4/4]

Drp::JungfrauId::JungfrauId ( const std::string &  mac,
uint64_t  module 
)

Like JungfrauId(board, module), with the board value parsed from the MAC address string mac by JungfrauIdLookup::mac_to_hex().

◆ ~JungfrauId()

Drp::JungfrauId::~JungfrauId ( )

Does nothing; empty body.

Member Function Documentation

◆ board()

uint64_t Drp::JungfrauId::board ( ) const

Return the ID shifted right by 16 bits (the board part).

◆ full()

uint64_t Drp::JungfrauId::full ( ) const

Return the full 64-bit ID.

◆ module()

uint64_t Drp::JungfrauId::module ( ) const

Return the low 16 bits of the ID (the module part).


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