#include <HGCalBestChoiceCodecImpl.h>
Public Types | |
typedef HGCalBestChoiceDataPayload | data_type |
Public Member Functions | |
uint32_t | adcnBits () const |
double | adcsaturation () const |
void | bestChoiceSelect (data_type &) |
size_t | dataLength () const |
data_type | decode (const std::vector< bool > &) const |
std::vector< bool > | encode (const data_type &) const |
HGCalBestChoiceCodecImpl (const edm::ParameterSet &conf) | |
void | linearize (const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> &, std::vector< std::pair< HGCalDetId, uint32_t > > &) |
double | linLSB () const |
size_t | nData () const |
uint32_t | tdcnBits () const |
double | tdcOnsetfC () const |
double | tdcsaturation () const |
uint32_t | triggerCellSaturationBits () const |
void | triggerCellSums (const HGCalTriggerGeometryBase &, const std::vector< std::pair< HGCalDetId, uint32_t > > &, data_type &) |
uint32_t | triggerCellTruncationBits () const |
Private Attributes | |
double | adcLSB_ |
uint32_t | adcnBits_ |
double | adcsaturation_ |
size_t | dataLength_ |
double | linLSB_ |
size_t | nCellsInModule_ |
size_t | nData_ |
double | tdcLSB_ |
uint32_t | tdcnBits_ |
double | tdcOnsetfC_ |
double | tdcsaturation_ |
uint32_t | triggerCellSaturationBits_ |
uint32_t | triggerCellTruncationBits_ |
Definition at line 27 of file HGCalBestChoiceCodecImpl.h.
Definition at line 30 of file HGCalBestChoiceCodecImpl.h.
HGCalBestChoiceCodecImpl::HGCalBestChoiceCodecImpl | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file HGCalBestChoiceCodecImpl.cc.
References adcLSB_, adcnBits_, adcsaturation_, dataLength_, nCellsInModule_, nData_, funct::pow(), tdcLSB_, tdcnBits_, tdcsaturation_, triggerCellSaturationBits_, and triggerCellTruncationBits_.
|
inline |
Definition at line 50 of file HGCalBestChoiceCodecImpl.h.
References adcnBits_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 49 of file HGCalBestChoiceCodecImpl.h.
References adcsaturation_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
void HGCalBestChoiceCodecImpl::bestChoiceSelect | ( | data_type & | data | ) |
Definition at line 158 of file HGCalBestChoiceCodecImpl.cc.
References a, b, Exception, i, nCellsInModule_, nData_, and HGCalBestChoiceDataPayload::payload.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 47 of file HGCalBestChoiceCodecImpl.h.
References dataLength_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
HGCalBestChoiceCodecImpl::data_type HGCalBestChoiceCodecImpl::decode | ( | const std::vector< bool > & | data | ) | const |
Definition at line 62 of file HGCalBestChoiceCodecImpl.cc.
References b, EnergyCorrector::c, data, Exception, i, cmsHarvester::index, HGCalBestChoiceDataPayload::payload, HGCalBestChoiceDataPayload::reset(), mps_fire::result, and relativeConstraints::value.
std::vector< bool > HGCalBestChoiceCodecImpl::encode | ( | const data_type & | data | ) | const |
Definition at line 29 of file HGCalBestChoiceCodecImpl.cc.
References data, Exception, i, mps_fire::result, and relativeConstraints::value.
void HGCalBestChoiceCodecImpl::linearize | ( | const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> & | dataframes, |
std::vector< std::pair< HGCalDetId, uint32_t > > & | linearized_dataframes | ||
) |
Definition at line 95 of file HGCalBestChoiceCodecImpl.cc.
References adcLSB_, data, linLSB_, universalConfigTemplate::mode, tdcLSB_, and tdcOnsetfC_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 48 of file HGCalBestChoiceCodecImpl.h.
References linLSB_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
|
inline |
Definition at line 52 of file HGCalBestChoiceCodecImpl.h.
References tdcnBits_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 53 of file HGCalBestChoiceCodecImpl.h.
References tdcOnsetfC_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 51 of file HGCalBestChoiceCodecImpl.h.
References tdcsaturation_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 55 of file HGCalBestChoiceCodecImpl.h.
References triggerCellSaturationBits_.
void HGCalBestChoiceCodecImpl::triggerCellSums | ( | const HGCalTriggerGeometryBase & | geometry, |
const std::vector< std::pair< HGCalDetId, uint32_t > > & | linearized_dataframes, | ||
data_type & | data | ||
) |
Definition at line 119 of file HGCalBestChoiceCodecImpl.cc.
References HLT_25ns10e33_v2_cff::distance, Exception, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellFromCell(), nCellsInModule_, HGCalBestChoiceDataPayload::payload, and relativeConstraints::value.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 54 of file HGCalBestChoiceCodecImpl.h.
References triggerCellTruncationBits_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
private |
Definition at line 68 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl(), and linearize().
|
private |
Definition at line 64 of file HGCalBestChoiceCodecImpl.h.
Referenced by adcnBits(), and HGCalBestChoiceCodecImpl().
|
private |
Definition at line 63 of file HGCalBestChoiceCodecImpl.h.
Referenced by adcsaturation(), and HGCalBestChoiceCodecImpl().
|
private |
Definition at line 60 of file HGCalBestChoiceCodecImpl.h.
Referenced by dataLength(), and HGCalBestChoiceCodecImpl().
|
private |
Definition at line 62 of file HGCalBestChoiceCodecImpl.h.
Referenced by linearize(), and linLSB().
|
private |
Definition at line 61 of file HGCalBestChoiceCodecImpl.h.
Referenced by bestChoiceSelect(), HGCalBestChoiceCodecImpl(), and triggerCellSums().
|
private |
Definition at line 59 of file HGCalBestChoiceCodecImpl.h.
Referenced by bestChoiceSelect(), HGCalBestChoiceCodecImpl(), and nData().
|
private |
Definition at line 69 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl(), and linearize().
|
private |
Definition at line 66 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl(), and tdcnBits().
|
private |
Definition at line 67 of file HGCalBestChoiceCodecImpl.h.
Referenced by linearize(), and tdcOnsetfC().
|
private |
Definition at line 65 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl(), and tdcsaturation().
|
private |
Definition at line 71 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl(), and triggerCellSaturationBits().
|
private |
Definition at line 70 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl(), and triggerCellTruncationBits().