#include <HGCalTriggerCellBestChoiceCodecImpl.h>
Public Types | |
typedef HGCalTriggerCellBestChoiceDataPayload | 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 uint32_t, const HGCalTriggerGeometryBase &) const |
std::vector< bool > | encode (const data_type &, const HGCalTriggerGeometryBase &) const |
HGCalTriggerCellBestChoiceCodecImpl (const edm::ParameterSet &conf) | |
void | linearize (const std::vector< HGCDataFrame< DetId, HGCSample >> &, std::vector< std::pair< DetId, uint32_t > > &) |
double | linLSB () const |
uint32_t | linnBits () const |
size_t | nCellsInModule () const |
size_t | nData () const |
uint32_t | tdcnBits () const |
double | tdcOnsetfC () const |
double | tdcsaturation () const |
std::vector< double > | ThicknessCorrections () 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_ |
uint32_t | linMax_ |
uint32_t | linnBits_ |
size_t | nCellsInModule_ |
size_t | nData_ |
double | tdcLSB_ |
uint32_t | tdcnBits_ |
double | tdcOnsetfC_ |
double | tdcsaturation_ |
std::vector< double > | thickness_corrections_ |
uint32_t | triggerCellSaturationBits_ |
uint32_t | triggerCellTruncationBits_ |
Definition at line 27 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Definition at line 30 of file HGCalTriggerCellBestChoiceCodecImpl.h.
HGCalTriggerCellBestChoiceCodecImpl::HGCalTriggerCellBestChoiceCodecImpl | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file HGCalTriggerCellBestChoiceCodecImpl.cc.
References adcLSB_, adcnBits_, adcsaturation_, dataLength_, encode(), linMax_, linnBits_, nCellsInModule_, nData_, funct::pow(), tdcLSB_, tdcnBits_, tdcsaturation_, triggerCellSaturationBits_, and triggerCellTruncationBits_.
|
inline |
Definition at line 52 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 51 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
void HGCalTriggerCellBestChoiceCodecImpl::bestChoiceSelect | ( | data_type & | data | ) |
Definition at line 229 of file HGCalTriggerCellBestChoiceCodecImpl.cc.
References a, b, l1t::L1Candidate::hwPt(), nData_, and HGCalTriggerCellBestChoiceDataPayload::payload.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl(), and triggerCellSums().
|
inline |
Definition at line 48 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
HGCalTriggerCellBestChoiceCodecImpl::data_type HGCalTriggerCellBestChoiceCodecImpl::decode | ( | const std::vector< bool > & | data, |
const uint32_t | module, | ||
const HGCalTriggerGeometryBase & | geometry | ||
) | const |
Definition at line 97 of file HGCalTriggerCellBestChoiceCodecImpl.cc.
References dataLength_, PV3DBase< T, PVType, FrameType >::eta(), Exception, HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellPosition(), mps_fire::i, diffTreeTool::index, linearize(), nCellsInModule_, nData_, p4, HGCalTriggerCellBestChoiceDataPayload::payload, PV3DBase< T, PVType, FrameType >::phi(), point, HGCalTriggerCellBestChoiceDataPayload::reset(), and mps_fire::result.
Referenced by HGCalTriggerCellBestChoiceCodec::decodeImpl(), and encode().
std::vector< bool > HGCalTriggerCellBestChoiceCodecImpl::encode | ( | const data_type & | data, |
const HGCalTriggerGeometryBase & | geometry | ||
) | const |
Definition at line 32 of file HGCalTriggerCellBestChoiceCodecImpl.cc.
References dataLength_, decode(), Exception, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), mps_fire::i, diffTreeTool::index, nCellsInModule_, nData_, HGCalTriggerCellBestChoiceDataPayload::payload, mps_fire::result, triggerCellSaturationBits_, and triggerCellTruncationBits_.
Referenced by HGCalTriggerCellBestChoiceCodec::encodeImpl(), and HGCalTriggerCellBestChoiceCodecImpl().
void HGCalTriggerCellBestChoiceCodecImpl::linearize | ( | const std::vector< HGCDataFrame< DetId, HGCSample >> & | dataframes, |
std::vector< std::pair< DetId, uint32_t > > & | linearized_dataframes | ||
) |
Definition at line 150 of file HGCalTriggerCellBestChoiceCodecImpl.cc.
References adcLSB_, CustomPhysics_cfi::amplitude, data, DetId::Forward, DetId::Hcal, linLSB_, linMax_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, tdcLSB_, tdcOnsetfC_, and triggerCellSums().
Referenced by decode(), and HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 49 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 50 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 46 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 47 of file HGCalTriggerCellBestChoiceCodecImpl.h.
|
inline |
Definition at line 54 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 55 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 53 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 58 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 57 of file HGCalTriggerCellBestChoiceCodecImpl.h.
void HGCalTriggerCellBestChoiceCodecImpl::triggerCellSums | ( | const HGCalTriggerGeometryBase & | geometry, |
const std::vector< std::pair< DetId, uint32_t > > & | linearized_dataframes, | ||
data_type & | data | ||
) |
Definition at line 181 of file HGCalTriggerCellBestChoiceCodecImpl.cc.
References bestChoiceSelect(), HGCalTopology::dddConstants(), DetId::det(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), DetId::Forward, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellFromCell(), HGCEE, HGCHEF, jetCorrFactors_cfi::payload, HGCalTriggerCellBestChoiceDataPayload::payload, DetId::subdetId(), thickness_corrections_, relativeConstraints::value, and HGCalDDDConstants::waferTypeL().
Referenced by linearize(), and HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
inline |
Definition at line 56 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodec::setDataPayloadImpl().
|
private |
Definition at line 73 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl(), and linearize().
|
private |
Definition at line 69 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 68 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 63 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by decode(), encode(), and HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 65 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by linearize().
|
private |
Definition at line 67 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl(), and linearize().
|
private |
Definition at line 66 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 64 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by decode(), encode(), and HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 62 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by bestChoiceSelect(), decode(), encode(), and HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 74 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl(), and linearize().
|
private |
Definition at line 71 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 72 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by linearize().
|
private |
Definition at line 70 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 77 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by triggerCellSums().
|
private |
Definition at line 76 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by encode(), and HGCalTriggerCellBestChoiceCodecImpl().
|
private |
Definition at line 75 of file HGCalTriggerCellBestChoiceCodecImpl.h.
Referenced by encode(), and HGCalTriggerCellBestChoiceCodecImpl().