#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(), HcalTriggerPrimitiveAlgo::analyzeHF2016(), HcalTriggerPrimitiveAlgo::analyzeHFQIE10(), HcalTriggerPrimitiveAlgo::analyzeQIE11(), HcalTPGCompressor::compress(), EcalTPGCompressor::compress(), and operator<<().
|
inline |
mutable operator to access samples
Definition at line 27 of file IntegerCaloSamples.h.
References data_, and mps_fire::i.
|
inline |
const operator to access samples
Definition at line 29 of file IntegerCaloSamples.h.
References data_, and mps_fire::i.
|
inline |
access presample information
Definition at line 32 of file IntegerCaloSamples.h.
References presamples_.
Referenced by HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), HcalTriggerPrimitiveAlgo::analyzeHF2016(), HcalTriggerPrimitiveAlgo::analyzeHFQIE10(), HcalTriggerPrimitiveAlgo::analyzeQIE11(), and HcalTPGCompressor::compress().
void IntegerCaloSamples::setPresamples | ( | int | pre | ) |
set presample information
Definition at line 13 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 ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), HcalTriggerPrimitiveAlgo::addSignal(), HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), HcalTriggerPrimitiveAlgo::analyzeHF2016(), HcalTriggerPrimitiveAlgo::analyzeHFQIE10(), HcalTriggerPrimitiveAlgo::analyzeQIE11(), HcalTPGCompressor::compress(), EcalTPGCompressor::compress(), and operator<<().
|
private |
Definition at line 40 of file IntegerCaloSamples.h.
Referenced by IntegerCaloSamples(), and operator[]().
|
private |
Definition at line 39 of file IntegerCaloSamples.h.
Referenced by id().
|
static |
Definition at line 36 of file IntegerCaloSamples.h.
Referenced by IntegerCaloSamples().
|
private |
Definition at line 41 of file IntegerCaloSamples.h.
Referenced by presamples(), and setPresamples().
|
private |
Definition at line 41 of file IntegerCaloSamples.h.
Referenced by size().