CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
legacy::SiPixelDigisSoA Class Reference

#include <SiPixelDigisSoA.h>

Public Member Functions

uint16_t adc (size_t i) const
 
const std::vector< uint16_t > & adcVector () const
 
int32_t clus (size_t i) const
 
const std::vector< int32_t > & clusVector () const
 
uint32_t pdigi (size_t i) const
 
const std::vector< uint32_t > & pdigiVector () const
 
uint32_t rawIdArr (size_t i) const
 
const std::vector< uint32_t > & rawIdArrVector () const
 
 SiPixelDigisSoA ()=default
 
 SiPixelDigisSoA (size_t nDigis, const uint32_t *pdigi, const uint32_t *rawIdArr, const uint16_t *adc, const int32_t *clus)
 
auto size () const
 
 ~SiPixelDigisSoA ()=default
 

Private Attributes

std::vector< uint16_t > adc_
 
std::vector< int32_t > clus_
 
std::vector< uint32_t > pdigi_
 
std::vector< uint32_t > rawIdArr_
 

Detailed Description

Definition at line 17 of file SiPixelDigisSoA.h.

Constructor & Destructor Documentation

◆ SiPixelDigisSoA() [1/2]

legacy::SiPixelDigisSoA::SiPixelDigisSoA ( )
default

◆ SiPixelDigisSoA() [2/2]

legacy::SiPixelDigisSoA::SiPixelDigisSoA ( size_t  nDigis,
const uint32_t *  pdigi,
const uint32_t *  rawIdArr,
const uint16_t *  adc,
const int32_t *  clus 
)
inlineexplicit

Definition at line 20 of file SiPixelDigisSoA.h.

22  : pdigi_(pdigi, pdigi + nDigis),
23  rawIdArr_(rawIdArr, rawIdArr + nDigis),
24  adc_(adc, adc + nDigis),
25  clus_(clus, clus + nDigis) {}
int32_t clus(size_t i) const
std::vector< int32_t > clus_
std::vector< uint32_t > rawIdArr_
uint16_t adc(size_t i) const
std::vector< uint32_t > pdigi_
std::vector< uint16_t > adc_
uint32_t pdigi(size_t i) const
uint32_t rawIdArr(size_t i) const

◆ ~SiPixelDigisSoA()

legacy::SiPixelDigisSoA::~SiPixelDigisSoA ( )
default

Member Function Documentation

◆ adc()

uint16_t legacy::SiPixelDigisSoA::adc ( size_t  i) const
inline

Definition at line 33 of file SiPixelDigisSoA.h.

References adc_, and mps_fire::i.

33 { return adc_[i]; }
std::vector< uint16_t > adc_

◆ adcVector()

const std::vector<uint16_t>& legacy::SiPixelDigisSoA::adcVector ( ) const
inline

Definition at line 38 of file SiPixelDigisSoA.h.

References adc_.

38 { return adc_; }
std::vector< uint16_t > adc_

◆ clus()

int32_t legacy::SiPixelDigisSoA::clus ( size_t  i) const
inline

Definition at line 34 of file SiPixelDigisSoA.h.

References clus_, and mps_fire::i.

34 { return clus_[i]; }
std::vector< int32_t > clus_

◆ clusVector()

const std::vector<int32_t>& legacy::SiPixelDigisSoA::clusVector ( ) const
inline

Definition at line 39 of file SiPixelDigisSoA.h.

References clus_.

39 { return clus_; }
std::vector< int32_t > clus_

◆ pdigi()

uint32_t legacy::SiPixelDigisSoA::pdigi ( size_t  i) const
inline

Definition at line 31 of file SiPixelDigisSoA.h.

References mps_fire::i, and pdigi_.

31 { return pdigi_[i]; }
std::vector< uint32_t > pdigi_

◆ pdigiVector()

const std::vector<uint32_t>& legacy::SiPixelDigisSoA::pdigiVector ( ) const
inline

Definition at line 36 of file SiPixelDigisSoA.h.

References pdigi_.

36 { return pdigi_; }
std::vector< uint32_t > pdigi_

◆ rawIdArr()

uint32_t legacy::SiPixelDigisSoA::rawIdArr ( size_t  i) const
inline

Definition at line 32 of file SiPixelDigisSoA.h.

References mps_fire::i, and rawIdArr_.

32 { return rawIdArr_[i]; }
std::vector< uint32_t > rawIdArr_

◆ rawIdArrVector()

const std::vector<uint32_t>& legacy::SiPixelDigisSoA::rawIdArrVector ( ) const
inline

Definition at line 37 of file SiPixelDigisSoA.h.

References rawIdArr_.

37 { return rawIdArr_; }
std::vector< uint32_t > rawIdArr_

◆ size()

auto legacy::SiPixelDigisSoA::size ( void  ) const
inline

Definition at line 29 of file SiPixelDigisSoA.h.

References pdigi_.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

29 { return pdigi_.size(); }
std::vector< uint32_t > pdigi_

Member Data Documentation

◆ adc_

std::vector<uint16_t> legacy::SiPixelDigisSoA::adc_
private

Definition at line 44 of file SiPixelDigisSoA.h.

Referenced by adc(), and adcVector().

◆ clus_

std::vector<int32_t> legacy::SiPixelDigisSoA::clus_
private

Definition at line 45 of file SiPixelDigisSoA.h.

Referenced by clus(), and clusVector().

◆ pdigi_

std::vector<uint32_t> legacy::SiPixelDigisSoA::pdigi_
private

Definition at line 42 of file SiPixelDigisSoA.h.

Referenced by pdigi(), pdigiVector(), and size().

◆ rawIdArr_

std::vector<uint32_t> legacy::SiPixelDigisSoA::rawIdArr_
private

Definition at line 43 of file SiPixelDigisSoA.h.

Referenced by rawIdArr(), and rawIdArrVector().