22 lines
671 B
C++
22 lines
671 B
C++
// Copyright (2019-2024) Paul Scherrer Institute
|
|
|
|
#ifndef JUNGFRAUJOCH_PIXELMASK_H
|
|
#define JUNGFRAUJOCH_PIXELMASK_H
|
|
|
|
#include "DetectorSetup.h"
|
|
#include "DiffractionExperiment.h"
|
|
|
|
class PixelMask {
|
|
size_t nmodules;
|
|
std::vector<uint32_t> mask;
|
|
public:
|
|
PixelMask(const DetectorSetup& detector);
|
|
PixelMask(const DiffractionExperiment& experiment);
|
|
void LoadUserMask(const DiffractionExperiment& experiment, const std::vector<uint32_t>& mask, uint8_t bit);
|
|
void LoadDetectorBadPixelMask(const std::vector<uint32_t>& mask, uint8_t bit);
|
|
std::vector<uint32_t> GetMask(const DiffractionExperiment& experiment);
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_PIXELMASK_H
|