#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< DetId, HGCSample >> &, std::vector< std::pair< DetId, 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< DetId, 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.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 49 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
void HGCalBestChoiceCodecImpl::bestChoiceSelect | ( | data_type & | data | ) |
Definition at line 158 of file HGCalBestChoiceCodecImpl.cc.
References a, b, Exception, mps_fire::i, nCellsInModule_, nData_, and HGCalBestChoiceDataPayload::payload.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 47 of file HGCalBestChoiceCodecImpl.h.
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, dataLength_, Exception, mps_fire::i, diffTreeTool::index, nCellsInModule_, nData_, HGCalBestChoiceDataPayload::payload, HGCalBestChoiceDataPayload::reset(), mps_fire::result, and relativeConstraints::value.
Referenced by HGCalBestChoiceCodec::decodeImpl().
std::vector< bool > HGCalBestChoiceCodecImpl::encode | ( | const data_type & | data | ) | const |
Definition at line 29 of file HGCalBestChoiceCodecImpl.cc.
References data, dataLength_, Exception, mps_fire::i, nCellsInModule_, nData_, mps_fire::result, triggerCellSaturationBits_, and triggerCellTruncationBits_.
Referenced by HGCalBestChoiceCodec::encodeImpl().
void HGCalBestChoiceCodecImpl::linearize | ( | const std::vector< HGCDataFrame< DetId, HGCSample >> & | dataframes, |
std::vector< std::pair< DetId, uint32_t > > & | linearized_dataframes | ||
) |
Definition at line 95 of file HGCalBestChoiceCodecImpl.cc.
References adcLSB_, CustomPhysics_cfi::amplitude, data, linLSB_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, tdcLSB_, and tdcOnsetfC_.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 48 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 46 of file HGCalBestChoiceCodecImpl.h.
|
inline |
Definition at line 52 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 53 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 51 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 55 of file HGCalBestChoiceCodecImpl.h.
void HGCalBestChoiceCodecImpl::triggerCellSums | ( | const HGCalTriggerGeometryBase & | geometry, |
const std::vector< std::pair< DetId, uint32_t > > & | linearized_dataframes, | ||
data_type & | data | ||
) |
Definition at line 119 of file HGCalBestChoiceCodecImpl.cc.
References SoftLeptonByDistance_cfi::distance, Exception, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellFromCell(), nCellsInModule_, jetCorrFactors_cfi::payload, HGCalBestChoiceDataPayload::payload, and relativeConstraints::value.
Referenced by HGCalBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 54 of file HGCalBestChoiceCodecImpl.h.
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 HGCalBestChoiceCodecImpl().
|
private |
Definition at line 63 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl().
|
private |
Definition at line 60 of file HGCalBestChoiceCodecImpl.h.
Referenced by decode(), encode(), and HGCalBestChoiceCodecImpl().
|
private |
Definition at line 62 of file HGCalBestChoiceCodecImpl.h.
Referenced by linearize().
|
private |
Definition at line 61 of file HGCalBestChoiceCodecImpl.h.
Referenced by bestChoiceSelect(), decode(), encode(), HGCalBestChoiceCodecImpl(), and triggerCellSums().
|
private |
Definition at line 59 of file HGCalBestChoiceCodecImpl.h.
Referenced by bestChoiceSelect(), decode(), encode(), and HGCalBestChoiceCodecImpl().
|
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().
|
private |
Definition at line 67 of file HGCalBestChoiceCodecImpl.h.
Referenced by linearize().
|
private |
Definition at line 65 of file HGCalBestChoiceCodecImpl.h.
Referenced by HGCalBestChoiceCodecImpl().
|
private |
Definition at line 71 of file HGCalBestChoiceCodecImpl.h.
Referenced by encode(), and HGCalBestChoiceCodecImpl().
|
private |
Definition at line 70 of file HGCalBestChoiceCodecImpl.h.
Referenced by encode(), and HGCalBestChoiceCodecImpl().