CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
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 14 of file SiPixelDigisSoA.h.

Constructor & Destructor Documentation

◆ SiPixelDigisSoA() [1/2]

SiPixelDigisSoA::SiPixelDigisSoA ( )
default

◆ SiPixelDigisSoA() [2/2]

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

Definition at line 5 of file SiPixelDigisSoA.cc.

7  : pdigi_(pdigi, pdigi + nDigis),
8  rawIdArr_(rawIdArr, rawIdArr + nDigis),
9  adc_(adc, adc + nDigis),
10  clus_(clus, clus + nDigis) {}
std::vector< uint32_t > rawIdArr_
uint32_t pdigi(size_t i) const
std::vector< uint16_t > adc_
uint16_t adc(size_t i) const
std::vector< uint32_t > pdigi_
int32_t clus(size_t i) const
uint32_t rawIdArr(size_t i) const
std::vector< int32_t > clus_

◆ ~SiPixelDigisSoA()

SiPixelDigisSoA::~SiPixelDigisSoA ( )
default

Member Function Documentation

◆ adc()

uint16_t SiPixelDigisSoA::adc ( size_t  i) const
inline

Definition at line 25 of file SiPixelDigisSoA.h.

References adc_, and mps_fire::i.

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

◆ adcVector()

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

Definition at line 30 of file SiPixelDigisSoA.h.

References adc_.

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

◆ clus()

int32_t SiPixelDigisSoA::clus ( size_t  i) const
inline

Definition at line 26 of file SiPixelDigisSoA.h.

References clus_, and mps_fire::i.

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

◆ clusVector()

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

Definition at line 31 of file SiPixelDigisSoA.h.

References clus_.

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

◆ pdigi()

uint32_t SiPixelDigisSoA::pdigi ( size_t  i) const
inline

Definition at line 23 of file SiPixelDigisSoA.h.

References mps_fire::i, and pdigi_.

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

◆ pdigiVector()

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

Definition at line 28 of file SiPixelDigisSoA.h.

References pdigi_.

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

◆ rawIdArr()

uint32_t SiPixelDigisSoA::rawIdArr ( size_t  i) const
inline

Definition at line 24 of file SiPixelDigisSoA.h.

References mps_fire::i, and rawIdArr_.

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

◆ rawIdArrVector()

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

Definition at line 29 of file SiPixelDigisSoA.h.

References rawIdArr_.

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

◆ size()

auto SiPixelDigisSoA::size ( void  ) const
inline

Definition at line 21 of file SiPixelDigisSoA.h.

References pdigi_.

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

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

Member Data Documentation

◆ adc_

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

Definition at line 36 of file SiPixelDigisSoA.h.

Referenced by adc(), and adcVector().

◆ clus_

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

Definition at line 37 of file SiPixelDigisSoA.h.

Referenced by clus(), and clusVector().

◆ pdigi_

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

Definition at line 34 of file SiPixelDigisSoA.h.

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

◆ rawIdArr_

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

Definition at line 35 of file SiPixelDigisSoA.h.

Referenced by rawIdArr(), and rawIdArrVector().