CMS 3D CMS Logo

SiPixelErrorsSoA.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiPixelDigi_interface_SiPixelErrorsSoA_h
2 #define DataFormats_SiPixelDigi_interface_SiPixelErrorsSoA_h
3 
6 
7 #include <cstdint>
8 #include <vector>
9 
11 public:
12  SiPixelErrorsSoA() = default;
13  explicit SiPixelErrorsSoA(size_t nErrors, const SiPixelErrorCompact *error, const SiPixelFormatterErrors *err)
14  : error_(error, error + nErrors), formatterErrors_(err) {}
15  ~SiPixelErrorsSoA() = default;
16 
17  auto size() const { return error_.size(); }
18 
20 
21  const SiPixelErrorCompact &error(size_t i) const { return error_[i]; }
22 
23  const std::vector<SiPixelErrorCompact> &errorVector() const { return error_; }
24 
25 private:
26  std::vector<SiPixelErrorCompact> error_;
28 };
29 
30 #endif
const std::vector< SiPixelErrorCompact > & errorVector() const
std::vector< SiPixelErrorCompact > error_
~SiPixelErrorsSoA()=default
SiPixelErrorsSoA(size_t nErrors, const SiPixelErrorCompact *error, const SiPixelFormatterErrors *err)
const SiPixelFormatterErrors * formatterErrors() const
const SiPixelErrorCompact & error(size_t i) const
SiPixelErrorsSoA()=default
auto size() const
const SiPixelFormatterErrors * formatterErrors_
std::map< cms_uint32_t, std::vector< SiPixelRawDataError > > SiPixelFormatterErrors