test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes
ESDigiCollection Class Reference

#include <EcalDigiCollections.h>

Inheritance diagram for ESDigiCollection:
EcalDigiCollection edm::DataFrameContainer

Public Types

typedef Digi::key_type DetId
 
typedef ESDataFrame Digi
 
typedef
edm::DataFrameContainer::size_type 
size_type
 
- Public Types inherited from EcalDigiCollection
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

 ESDigiCollection (size_type istride=NSAMPLE)
 
void push_back (unsigned int i)
 
void push_back (const Digi &digi)
 
void swap (ESDigiCollection &other)
 
- Public Member Functions inherited from EcalDigiCollection
 EcalDigiCollection (size_type istride=MAXSAMPLES, int isubdet=0)
 
void swap (DataFrameContainer &other)
 
- Public Member Functions inherited from edm::DataFrameContainer
DataFrame back ()
 
const_iterator begin () 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
 
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 NSAMPLE = ESDataFrame::MAXSAMPLES
 
- Static Public Attributes inherited from EcalDigiCollection
static const size_type MAXSAMPLES = 10
 

Detailed Description

Definition at line 52 of file EcalDigiCollections.h.

Member Typedef Documentation

Definition at line 57 of file EcalDigiCollections.h.

Definition at line 56 of file EcalDigiCollections.h.

Definition at line 55 of file EcalDigiCollections.h.

Constructor & Destructor Documentation

ESDigiCollection::ESDigiCollection ( size_type  istride = NSAMPLE)
inline

Definition at line 60 of file EcalDigiCollections.h.

60  :
EcalDigiCollection(size_type istride=MAXSAMPLES, int isubdet=0)

Member Function Documentation

void ESDigiCollection::push_back ( unsigned int  i)
inline

Definition at line 64 of file EcalDigiCollections.h.

Referenced by ESDigitizer::run(), and ESUnpacker::word2digi().

65  {
66  DataFrameContainer::push_back( i ) ;
67  }
int i
Definition: DBlmapReader.cc:9
void ESDigiCollection::push_back ( const Digi digi)
inline

Definition at line 69 of file EcalDigiCollections.h.

References i, ESDataFrame::id(), NSAMPLE, hltrates_dqm_sourceclient-live_cfg::offset, and edm::DataFrameContainer::push_back().

70  {
71  uint16_t esdata[NSAMPLE] ;
72  for( unsigned int i ( 0 ) ; i != NSAMPLE; ++i )
73  {
74  static const int offset ( 65536 ) ; // for int16 to uint16
75  const int16_t dshort ( digi[i].raw() ) ;
76  const int dint ( (int) dshort + // add offset for uint16 conversion
77  ( (int16_t) 0 > dshort ?
78  offset : (int) 0 ) ) ;
79  esdata[i] = dint ;
80  }
81  EcalDigiCollection::push_back( digi.id()(), esdata ) ;
82  }
int i
Definition: DBlmapReader.cc:9
static const size_type NSAMPLE
void push_back(id_type iid, data_type const *idata)
void ESDigiCollection::swap ( ESDigiCollection other)
inline

Definition at line 62 of file EcalDigiCollections.h.

References EcalDigiCollection::swap().

Referenced by swap().

62 {this->EcalDigiCollection::swap(other);}
void swap(DataFrameContainer &other)

Member Data Documentation

const size_type ESDigiCollection::NSAMPLE = ESDataFrame::MAXSAMPLES
static

Definition at line 59 of file EcalDigiCollections.h.

Referenced by push_back().