CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Attributes

ESDigiCollection Class Reference

#include <EcalDigiCollections.h>

Inheritance diagram for ESDigiCollection:
EcalDigiCollection edm::DataFrameContainer

List of all members.

Public Types

typedef Digi::key_type DetId
typedef ESDataFrame Digi
typedef
edm::DataFrameContainer::size_type 
size_type

Public Member Functions

 ESDigiCollection (size_type istride=NSAMPLE)
void push_back (const Digi &digi)
void push_back (unsigned int i)
void swap (ESDigiCollection &other)

Static Public Attributes

static const size_type NSAMPLE = ESDataFrame::MAXSAMPLES

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.

Reimplemented from EcalDigiCollection.

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.


Member Function Documentation

void ESDigiCollection::push_back ( unsigned int  i) [inline]

Reimplemented from edm::DataFrameContainer.

Definition at line 64 of file EcalDigiCollections.h.

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

void ESDigiCollection::push_back ( const Digi digi) [inline]

Definition at line 69 of file EcalDigiCollections.h.

References i, ESDataFrame::id(), NSAMPLE, evf::evtn::offset(), and push_back().

      {
         uint16_t esdata[NSAMPLE] ;
         for( unsigned int i ( 0 ) ; i != NSAMPLE; ++i )
         {
            static const int offset ( 65536 ) ; // for int16 to uint16
            const int16_t dshort ( digi[i].raw() ) ;
            const int     dint   ( (int) dshort + // add offset for uint16 conversion
                                   ( (int16_t) 0 > dshort ? 
                                     offset : (int) 0 ) ) ;
            esdata[i] = dint ;
         }
         EcalDigiCollection::push_back( digi.id()(), esdata ) ;
      }
void ESDigiCollection::swap ( ESDigiCollection other) [inline]

Definition at line 62 of file EcalDigiCollections.h.

Referenced by swap().

{this->EcalDigiCollection::swap(other);}

Member Data Documentation

Definition at line 59 of file EcalDigiCollections.h.

Referenced by push_back().