CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
CaloTSamples< Ttype, Tsize > Class Template Reference

#include <CaloTSamples.h>

Inheritance diagram for CaloTSamples< Ttype, Tsize >:
CaloTSamplesBase< Ttype >

Public Types

enum  { kCapacity = Tsize }
 

Public Member Functions

 CaloTSamples ()
 
 CaloTSamples (const CaloTSamples< Ttype, Tsize > &cs)
 
 CaloTSamples (const DetId &id, uint32_t size=0, uint32_t pre=0)
 
uint32_t capacity () const override
 
CaloTSamples< Ttype, Tsize > & operator= (const CaloTSamples< Ttype, Tsize > &cs)
 
 ~CaloTSamples () override
 
- Public Member Functions inherited from CaloTSamplesBase< Ttype >
 CaloTSamplesBase (Ttype *mydata, uint32_t size)
 
 CaloTSamplesBase (const CaloTSamplesBase< Ttype > &cs)
 
 CaloTSamplesBase (Ttype *mydata, uint32_t length, const DetId &id, uint32_t size, uint32_t pre)
 
DetId id () const
 
CaloTSamplesBase< Ttype > & operator*= (Ttype value)
 
CaloTSamplesBase< Ttype > & operator+= (Ttype value)
 
CaloTSamplesBase< Ttype > & operator+= (const CaloTSamplesBase< Ttype > &cs)
 
CaloTSamplesBase< Ttype > & operator= (const CaloTSamplesBase< Ttype > &cs)
 
Ttype & operator[] (uint32_t i)
 
const Ttype & operator[] (uint32_t i) const
 
uint32_t pre () const
 
void setZero ()
 
uint32_t size () const
 
bool zero () const
 
virtual ~CaloTSamplesBase ()
 

Private Member Functions

const Ttype * cdata (uint32_t i) const override
 
Ttype * data (uint32_t i) override
 

Private Attributes

Ttype m_data [Tsize]
 

Detailed Description

template<class Ttype, uint32_t Tsize>
class CaloTSamples< Ttype, Tsize >

Class which represents the charge/voltage measurements of an event/channel with the ADC decoding performed.

Definition at line 14 of file CaloTSamples.h.

Member Enumeration Documentation

◆ anonymous enum

template<class Ttype, uint32_t Tsize>
anonymous enum
Enumerator
kCapacity 

Definition at line 16 of file CaloTSamples.h.

Constructor & Destructor Documentation

◆ CaloTSamples() [1/3]

template<class Ttype, uint32_t Tsize>
CaloTSamples< Ttype, Tsize >::CaloTSamples ( )

◆ CaloTSamples() [2/3]

template<class Ttype, uint32_t Tsize>
CaloTSamples< Ttype, Tsize >::CaloTSamples ( const CaloTSamples< Ttype, Tsize > &  cs)

◆ CaloTSamples() [3/3]

template<class Ttype, uint32_t Tsize>
CaloTSamples< Ttype, Tsize >::CaloTSamples ( const DetId id,
uint32_t  size = 0,
uint32_t  pre = 0 
)

◆ ~CaloTSamples()

template<class Ttype, uint32_t Tsize>
CaloTSamples< Ttype, Tsize >::~CaloTSamples ( )
override

Member Function Documentation

◆ capacity()

template<class Ttype, uint32_t Tsize>
uint32_t CaloTSamples< Ttype, Tsize >::capacity ( ) const
overridevirtual

◆ cdata()

template<class Ttype, uint32_t Tsize>
const Ttype* CaloTSamples< Ttype, Tsize >::cdata ( uint32_t  i) const
overrideprivatevirtual

◆ data()

template<class Ttype, uint32_t Tsize>
Ttype* CaloTSamples< Ttype, Tsize >::data ( uint32_t  i)
overrideprivatevirtual

◆ operator=()

template<class Ttype, uint32_t Tsize>
CaloTSamples<Ttype, Tsize>& CaloTSamples< Ttype, Tsize >::operator= ( const CaloTSamples< Ttype, Tsize > &  cs)

Member Data Documentation

◆ m_data

template<class Ttype, uint32_t Tsize>
Ttype CaloTSamples< Ttype, Tsize >::m_data[Tsize]
private

Definition at line 31 of file CaloTSamples.h.