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
SiPixelErrorsSoA::SiPixelErrorsSoA
SiPixelErrorsSoA(size_t nErrors, const SiPixelErrorCompact *error, const SiPixelFormatterErrors *err)
Definition: SiPixelErrorsSoA.h:13
SiPixelErrorsSoA::formatterErrors
const SiPixelFormatterErrors * formatterErrors() const
Definition: SiPixelErrorsSoA.h:19
mps_fire.i
i
Definition: mps_fire.py:428
SiPixelErrorsSoA::SiPixelErrorsSoA
SiPixelErrorsSoA()=default
SiPixelFormatterErrors.h
SiPixelErrorsSoA::error
const SiPixelErrorCompact & error(size_t i) const
Definition: SiPixelErrorsSoA.h:21
SiPixelErrorCompact
Definition: SiPixelErrorCompact.h:6
SiPixelErrorsSoA::size
auto size() const
Definition: SiPixelErrorsSoA.h:17
SiPixelErrorsSoA::errorVector
const std::vector< SiPixelErrorCompact > & errorVector() const
Definition: SiPixelErrorsSoA.h:23
SiPixelErrorsSoA::formatterErrors_
const SiPixelFormatterErrors * formatterErrors_
Definition: SiPixelErrorsSoA.h:27
SiPixelErrorCompact.h
SiPixelErrorsSoA
Definition: SiPixelErrorsSoA.h:10
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
SiPixelErrorsSoA::error_
std::vector< SiPixelErrorCompact > error_
Definition: SiPixelErrorsSoA.h:26
SiPixelFormatterErrors
std::map< cms_uint32_t, std::vector< SiPixelRawDataError > > SiPixelFormatterErrors
Definition: SiPixelFormatterErrors.h:10
SiPixelErrorsSoA::~SiPixelErrorsSoA
~SiPixelErrorsSoA()=default