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 13 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) {}

◆ ~SiPixelDigisSoA()

SiPixelDigisSoA::~SiPixelDigisSoA ( )
default

Member Function Documentation

◆ adc()

uint16_t SiPixelDigisSoA::adc ( size_t  i) const
inline

Definition at line 24 of file SiPixelDigisSoA.h.

24 { return adc_[i]; }

References adc_, and mps_fire::i.

◆ adcVector()

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

Definition at line 29 of file SiPixelDigisSoA.h.

29 { return adc_; }

References adc_.

◆ clus()

int32_t SiPixelDigisSoA::clus ( size_t  i) const
inline

Definition at line 25 of file SiPixelDigisSoA.h.

25 { return clus_[i]; }

References clus_, and mps_fire::i.

◆ clusVector()

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

Definition at line 30 of file SiPixelDigisSoA.h.

30 { return clus_; }

References clus_.

◆ pdigi()

uint32_t SiPixelDigisSoA::pdigi ( size_t  i) const
inline

Definition at line 22 of file SiPixelDigisSoA.h.

22 { return pdigi_[i]; }

References mps_fire::i, and pdigi_.

◆ pdigiVector()

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

Definition at line 27 of file SiPixelDigisSoA.h.

27 { return pdigi_; }

References pdigi_.

◆ rawIdArr()

uint32_t SiPixelDigisSoA::rawIdArr ( size_t  i) const
inline

Definition at line 23 of file SiPixelDigisSoA.h.

23 { return rawIdArr_[i]; }

References mps_fire::i, and rawIdArr_.

◆ rawIdArrVector()

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

Definition at line 28 of file SiPixelDigisSoA.h.

28 { return rawIdArr_; }

References rawIdArr_.

◆ size()

auto SiPixelDigisSoA::size ( void  ) const
inline

Definition at line 20 of file SiPixelDigisSoA.h.

20 { return pdigi_.size(); }

References pdigi_.

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

Member Data Documentation

◆ adc_

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

Definition at line 35 of file SiPixelDigisSoA.h.

Referenced by adc(), and adcVector().

◆ clus_

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

Definition at line 36 of file SiPixelDigisSoA.h.

Referenced by clus(), and clusVector().

◆ pdigi_

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

Definition at line 33 of file SiPixelDigisSoA.h.

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

◆ rawIdArr_

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

Definition at line 34 of file SiPixelDigisSoA.h.

Referenced by rawIdArr(), and rawIdArrVector().

mps_fire.i
i
Definition: mps_fire.py:428
SiPixelDigisSoA::clus
int32_t clus(size_t i) const
Definition: SiPixelDigisSoA.h:25
SiPixelDigisSoA::adc
uint16_t adc(size_t i) const
Definition: SiPixelDigisSoA.h:24
SiPixelDigisSoA::rawIdArr_
std::vector< uint32_t > rawIdArr_
Definition: SiPixelDigisSoA.h:34
SiPixelDigisSoA::rawIdArr
uint32_t rawIdArr(size_t i) const
Definition: SiPixelDigisSoA.h:23
SiPixelDigisSoA::adc_
std::vector< uint16_t > adc_
Definition: SiPixelDigisSoA.h:35
SiPixelDigisSoA::pdigi_
std::vector< uint32_t > pdigi_
Definition: SiPixelDigisSoA.h:33
SiPixelDigisSoA::pdigi
uint32_t pdigi(size_t i) const
Definition: SiPixelDigisSoA.h:22
SiPixelDigisSoA::clus_
std::vector< int32_t > clus_
Definition: SiPixelDigisSoA.h:36