#include <HGCalTriggerCellThresholdCodecImpl.h>
Public Types | |
typedef HGCalTriggerCellThresholdDataPayload | data_type |
Public Member Functions | |
uint32_t | adcnBits () const |
double | adcsaturation () const |
size_t | dataLength () const |
data_type | decode (const std::vector< bool > &, const uint32_t, const HGCalTriggerGeometryBase &) const |
std::vector< bool > | encode (const data_type &, const HGCalTriggerGeometryBase &) const |
HGCalTriggerCellThresholdCodecImpl (const edm::ParameterSet &conf) | |
void | linearize (const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> &, std::vector< std::pair< HGCalDetId, uint32_t > > &) |
double | linLSB () const |
size_t | nCellsInModule () const |
int | TCThreshold_ADC () const |
double | TCThreshold_fC () const |
uint32_t | tdcnBits () const |
double | tdcOnsetfC () const |
double | tdcsaturation () const |
void | thresholdSelect (data_type &) |
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_ |
int | TCThreshold_ADC_ |
double | TCThreshold_fC_ |
double | tdcLSB_ |
uint32_t | tdcnBits_ |
double | tdcOnsetfC_ |
double | tdcsaturation_ |
uint32_t | triggerCellSaturationBits_ |
uint32_t | triggerCellTruncationBits_ |
Definition at line 27 of file HGCalTriggerCellThresholdCodecImpl.h.
Definition at line 30 of file HGCalTriggerCellThresholdCodecImpl.h.
HGCalTriggerCellThresholdCodecImpl::HGCalTriggerCellThresholdCodecImpl | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file HGCalTriggerCellThresholdCodecImpl.cc.
References adcLSB_, adcnBits_, adcsaturation_, dataLength_, encode(), createfilelist::int, linLSB_, funct::pow(), TCThreshold_ADC_, TCThreshold_fC_, tdcLSB_, tdcnBits_, tdcsaturation_, triggerCellSaturationBits_, and triggerCellTruncationBits_.
|
inline |
Definition at line 50 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 49 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 47 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
HGCalTriggerCellThresholdCodecImpl::data_type HGCalTriggerCellThresholdCodecImpl::decode | ( | const std::vector< bool > & | data, |
const uint32_t | module, | ||
const HGCalTriggerGeometryBase & | geometry | ||
) | const |
Definition at line 90 of file HGCalTriggerCellThresholdCodecImpl.cc.
References dataLength_, PV3DBase< T, PVType, FrameType >::eta(), Exception, HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellPosition(), mps_fire::i, diffTreeTool::index, linearize(), nCellsInModule_, p4, HGCalTriggerCellThresholdDataPayload::payload, PV3DBase< T, PVType, FrameType >::phi(), point, HGCalTriggerCellThresholdDataPayload::reset(), and mps_fire::result.
Referenced by HGCalTriggerCellThresholdCodec::decodeImpl(), and encode().
std::vector< bool > HGCalTriggerCellThresholdCodecImpl::encode | ( | const data_type & | data, |
const HGCalTriggerGeometryBase & | geometry | ||
) | const |
Definition at line 28 of file HGCalTriggerCellThresholdCodecImpl.cc.
References dataLength_, decode(), Exception, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), mps_fire::i, diffTreeTool::index, nCellsInModule_, HGCalTriggerCellThresholdDataPayload::payload, mps_fire::result, findQualityFiles::size, triggerCellSaturationBits_, and triggerCellTruncationBits_.
Referenced by HGCalTriggerCellThresholdCodec::encodeImpl(), and HGCalTriggerCellThresholdCodecImpl().
void HGCalTriggerCellThresholdCodecImpl::linearize | ( | const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> & | dataframes, |
std::vector< std::pair< HGCalDetId, uint32_t > > & | linearized_dataframes | ||
) |
Definition at line 136 of file HGCalTriggerCellThresholdCodecImpl.cc.
References adcLSB_, CustomPhysics_cfi::amplitude, data, linLSB_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, tdcLSB_, tdcOnsetfC_, and triggerCellSums().
Referenced by decode(), and HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 48 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 46 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 56 of file HGCalTriggerCellThresholdCodecImpl.h.
|
inline |
Definition at line 57 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 52 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 53 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 51 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
void HGCalTriggerCellThresholdCodecImpl::thresholdSelect | ( | data_type & | data | ) |
Definition at line 190 of file HGCalTriggerCellThresholdCodecImpl.cc.
References mps_fire::i, HGCalTriggerCellThresholdDataPayload::payload, and TCThreshold_ADC_.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl(), and triggerCellSums().
|
inline |
Definition at line 55 of file HGCalTriggerCellThresholdCodecImpl.h.
void HGCalTriggerCellThresholdCodecImpl::triggerCellSums | ( | const HGCalTriggerGeometryBase & | geometry, |
const std::vector< std::pair< HGCalDetId, uint32_t > > & | linearized_dataframes, | ||
data_type & | data | ||
) |
Definition at line 160 of file HGCalTriggerCellThresholdCodecImpl.cc.
References HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellFromCell(), jetCorrFactors_cfi::payload, HGCalTriggerCellThresholdDataPayload::payload, thresholdSelect(), and relativeConstraints::value.
Referenced by linearize(), and HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 54 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
private |
Definition at line 68 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 64 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 63 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 60 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by decode(), encode(), and HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 62 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 61 of file HGCalTriggerCellThresholdCodecImpl.h.
|
private |
Definition at line 72 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and thresholdSelect().
|
private |
Definition at line 73 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 69 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 66 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 67 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by linearize().
|
private |
Definition at line 65 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 71 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by encode(), and HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 70 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by encode(), and HGCalTriggerCellThresholdCodecImpl().