CFEL - ASG Software Suite
2.5.0
CASS
|
Key for IdConversion Map. More...
#include <lcls_key.hpp>
Public Member Functions | |
Key (const Pds::TypeId::Type &detectorType, const Pds::DetInfo::Detector &det, uint32_t detId, const Pds::DetInfo::Device &dev, uint32_t devId) | |
constructor More... | |
Key (const Pds::TypeId::Type &detectorType, uint32_t physicalId) | |
constructor More... | |
bool | operator< (const Key &other) const |
check whether this is less than other More... | |
Private Attributes | |
uint32_t | _detectorType |
type of the detector contained in the xtc More... | |
uint32_t | _detector |
the physical value of the detectors data. More... | |
Key for IdConversion Map.
This will take the different information from the xtc and transform it to a unique key by having a comparison smaller than applied.
Unfortunately the xtc differentiats between the detector and the detectorId the detector is an enum described in Pds::DetInfo::Detector and the detector id is different. The same is true for the device. Both, the detector ids and the device ids are encoded in a single unsigned 32 bit integer. To identify a single detector it is therefore necessary to give all the information.
Definition at line 29 of file lcls_key.hpp.
|
inline |
constructor
will create the physical from the detector and device inputs. The detectorType can just be copied.
detectorType | the type of data contained in the xtc |
det | enum of the detector itself |
detId | the id of the detector |
dev | enum of the device of the data |
devId | the id of the device |
Definition at line 43 of file lcls_key.hpp.
|
inline |
constructor
one can retrieve the physical id and the type id directly from the xtc. Therefore a direct assigmnet is possible.
detectorType | the type of data contained in the xtc |
physicalId | the id that has the info about device and detector encoded |
Definition at line 58 of file lcls_key.hpp.
|
inline |
check whether this is less than other
will compare for less first the _detectorType. If this is the same it will compare for less the _detector value. This makes sure that the lcls Id is unique.
other | the other key that one compares this key to |
Definition at line 70 of file lcls_key.hpp.
References _detector, and _detectorType.
|
private |
the physical value of the detectors data.
Definition at line 82 of file lcls_key.hpp.
Referenced by operator<().
|
private |
type of the detector contained in the xtc
Definition at line 79 of file lcls_key.hpp.
Referenced by operator<().