#include <EcalDigiCollections.h>
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 |
Definition at line 52 of file EcalDigiCollections.h.
Definition at line 57 of file EcalDigiCollections.h.
typedef ESDataFrame ESDigiCollection::Digi |
Definition at line 56 of file EcalDigiCollections.h.
Reimplemented from EcalDigiCollection.
Definition at line 55 of file EcalDigiCollections.h.
Definition at line 60 of file EcalDigiCollections.h.
: EcalDigiCollection(istride, EcalPreshower){}
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().
{ DataFrameContainer::push_back( i ) ; }
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);}
const size_type ESDigiCollection::NSAMPLE = ESDataFrame::MAXSAMPLES [static] |
Definition at line 59 of file EcalDigiCollections.h.
Referenced by push_back().