#include <IntegerCaloSamples.h>
Public Member Functions | |
DetId | id () const |
get the (generic) id More... | |
IntegerCaloSamples () | |
IntegerCaloSamples (const DetId &id, int size) | |
uint32_t & | operator[] (int i) |
mutable operator to access samples More... | |
uint32_t | operator[] (int i) const |
const operator to access samples More... | |
int | presamples () const |
access presample information More... | |
void | setPresamples (int pre) |
set presample information More... | |
int | size () const |
get the size More... | |
Static Public Attributes | |
static const int | MAXSAMPLES =10 |
Private Attributes | |
uint32_t | data_ [MAXSAMPLES] |
DetId | id_ |
int | presamples_ |
int | size_ |
Class which represents the linear charge/voltage measurements of an event/channel, but with defined resolution.
This class uses 32-bit bins, so users should be careful if their calculation implies fewer bins.
Definition at line 16 of file IntegerCaloSamples.h.
IntegerCaloSamples::IntegerCaloSamples | ( | ) |
|
explicit |
|
inline |
get the (generic) id
Definition at line 22 of file IntegerCaloSamples.h.
References id_.
Referenced by HcalTriggerPrimitiveAlgo::addSignal(), HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), HcalTPGCompressor::compress(), EcalTPGCompressor::compress(), and operator<<().
|
inline |
|
inline |
|
inline |
access presample information
Definition at line 32 of file IntegerCaloSamples.h.
References presamples_.
Referenced by HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), and HcalTPGCompressor::compress().
void IntegerCaloSamples::setPresamples | ( | int | pre | ) |
set presample information
Definition at line 11 of file IntegerCaloSamples.cc.
References presamples_.
Referenced by HcalTriggerPrimitiveAlgo::addSignal().
|
inline |
get the size
Definition at line 25 of file IntegerCaloSamples.h.
References size_.
Referenced by HcalTriggerPrimitiveAlgo::addSignal(), HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), HcalTPGCompressor::compress(), EcalTPGCompressor::compress(), and operator<<().
|
private |
Definition at line 39 of file IntegerCaloSamples.h.
Referenced by IntegerCaloSamples(), and operator[]().
|
private |
Definition at line 38 of file IntegerCaloSamples.h.
Referenced by id().
|
static |
Definition at line 36 of file IntegerCaloSamples.h.
Referenced by IntegerCaloSamples().
|
private |
Definition at line 40 of file IntegerCaloSamples.h.
Referenced by presamples(), and setPresamples().
|
private |
Definition at line 40 of file IntegerCaloSamples.h.
Referenced by size().