CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes
HcalDataFrameContainer< Digi > Class Template Reference

#include <HcalDigiCollections.h>

Inheritance diagram for HcalDataFrameContainer< Digi >:
edm::DataFrameContainer

Public Types

typedef
edm::DataFrameContainer::size_type 
size_type
 
- Public Types inherited from edm::DataFrameContainer
typedef std::vector< data_type >
::const_iterator 
const_DataIter
 
typedef std::vector< id_type >
::const_iterator 
const_IdIter
 
typedef
boost::transform_iterator
< IterHelp,
boost::counting_iterator< int > > 
const_iterator
 
typedef std::pair
< const_IdIter, const_DataIter
const_IterPair
 
typedef unsigned short data_type
 
typedef std::vector< data_typeDataContainer
 
typedef std::vector< data_type >
::iterator 
DataIter
 
typedef unsigned int id_type
 
typedef std::vector< id_typeIdContainer
 
typedef std::vector< id_type >
::iterator 
IdIter
 
typedef std::pair< IdIter,
DataIter
IterPair
 
typedef unsigned int size_type
 

Public Member Functions

void addDataFrame (DetId detid, const uint16_t *data)
 
Digi backDataFrame ()
 
 HcalDataFrameContainer (int nsamples_per_digi=MAXSAMPLES, int isubdet=0)
 
void push_back (const Digi &digi)
 
int samples () const
 
void swap (DataFrameContainer &other)
 
- Public Member Functions inherited from edm::DataFrameContainer
DataFrame back ()
 
const_iterator begin () const
 The iterator returned can not safely be used across threads. More...
 
DataContainer const & data () const
 
 DataFrameContainer ()
 
 DataFrameContainer (size_t istride, int isubdet=0, size_t isize=0)
 
bool empty () const
 
const_iterator end () const
 
const_iterator find (id_type i) const
 
data_type const * frame (size_t cell) const
 
id_type id (size_t cell) const
 
IdContainer const & ids () const
 
data_type operator() (size_t cell, size_t frame) const
 
DataFrameContaineroperator= (DataFrameContainer const &rhs)
 
DataFrame operator[] (size_t i)
 
DataFrame operator[] (size_t i) const
 
IterPair pair (size_t i)
 
const_IterPair pair (size_t i) const
 
void pop_back ()
 
void push_back (id_type iid, data_type const *idata)
 
void push_back (id_type iid)
 
void reserve (size_t isize)
 
void resize (size_t isize)
 
void set_back (id_type iid, data_type const *idata)
 
void set_back (id_type iid)
 
void set_back (data_type const *idata)
 
size_type size () const
 
void sort ()
 
size_type stride () const
 
int subdetId () const
 
void swap (DataFrameContainer &rh)
 
void swap (IdContainer &iic, DataContainer &idc)
 

Static Public Attributes

static const size_type MAXSAMPLES = 10
 

Detailed Description

template<class Digi>
class HcalDataFrameContainer< Digi >

Definition at line 35 of file HcalDigiCollections.h.

Member Typedef Documentation

Definition at line 37 of file HcalDigiCollections.h.

Constructor & Destructor Documentation

template<class Digi>
HcalDataFrameContainer< Digi >::HcalDataFrameContainer ( int  nsamples_per_digi = MAXSAMPLES,
int  isubdet = 0 
)
inline

Definition at line 39 of file HcalDigiCollections.h.

40  : edm::DataFrameContainer(nsamples_per_digi * Digi::WORDS_PER_SAMPLE + Digi::HEADER_WORDS + Digi::FLAG_WORDS,
41  isubdet) {}

Member Function Documentation

template<class Digi>
void HcalDataFrameContainer< Digi >::addDataFrame ( DetId  detid,
const uint16_t *  data 
)
inline

Definition at line 48 of file HcalDigiCollections.h.

References edm::DataFrameContainer::data(), HcalDataFrameContainer< Digi >::push_back(), and DetId::rawId().

Referenced by HcalUnpacker::unpackUTCA().

48 { push_back(detid.rawId(), data); }
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
void push_back(const Digi &digi)
DataContainer const & data() const
template<class Digi>
Digi HcalDataFrameContainer< Digi >::backDataFrame ( )
inline

Definition at line 46 of file HcalDigiCollections.h.

References edm::DataFrameContainer::back().

46 { return Digi(this->back()); }
template<class Digi>
void HcalDataFrameContainer< Digi >::push_back ( const Digi &  digi)
inline
template<class Digi>
int HcalDataFrameContainer< Digi >::samples ( ) const
inline

Definition at line 47 of file HcalDigiCollections.h.

References edm::DataFrameContainer::stride().

Referenced by HcalDataFrameFilter::filter(), HcalRawToDigi::produce(), and HcalUnpacker::unpackUTCA().

47 { return int((stride() - Digi::HEADER_WORDS - Digi::FLAG_WORDS) / Digi::WORDS_PER_SAMPLE); }
size_type stride() const
template<class Digi>
void HcalDataFrameContainer< Digi >::swap ( DataFrameContainer other)
inline

Definition at line 42 of file HcalDigiCollections.h.

References edm::swap().

42 { this->DataFrameContainer::swap(other); }
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117

Member Data Documentation

template<class Digi>
const size_type HcalDataFrameContainer< Digi >::MAXSAMPLES = 10
static

Definition at line 38 of file HcalDigiCollections.h.

Referenced by HcalDigitizer::finalizeEvent().