#include <CaloTPGTranscoderULUT.h>
Public Member Functions | |
CaloTPGTranscoderULUT (const std::string &compressionFile="", const std::string &decompressionFile="") | |
virtual EcalTriggerPrimitiveSample | ecalCompress (const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const |
Compression from linear samples+fine grain in the ECAL. More... | |
virtual const std::vector < unsigned int > & | getCompressionLUT (const HcalTrigTowerDetId &id) const |
virtual int | getOutputLUTId (const HcalTrigTowerDetId &id) const |
virtual int | getOutputLUTId (const int ieta, const int iphi, const int version) const |
virtual HcalTriggerPrimitiveSample | hcalCompress (const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const override |
Compression from linear samples+fine grain in the HTR. More... | |
virtual double | hcaletValue (const int &ieta, const int &iphi, const int &version, const int &compressedValue) const |
virtual double | hcaletValue (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc) const |
virtual bool | HTvalid (const int ieta, const int iphi, const int version) const |
virtual void | rctEGammaUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et, bool &egVecto, bool &activity) const |
Uncompression for the Electron/Photon path in the RCT. More... | |
virtual void | rctJetUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et) const |
Uncompression for the JET path in the RCT. More... | |
virtual void | setup (HcalLutMetadata const &, HcalTrigTowerGeometry const &, int, int) |
virtual | ~CaloTPGTranscoderULUT () |
Public Member Functions inherited from CaloTPGTranscoder | |
CaloTPGTranscoder () | |
boost::shared_ptr< const EcalTPGCompressor > | getEcalCompressor () const |
boost::shared_ptr< const HcalTPGCompressor > | getHcalCompressor () const |
virtual | ~CaloTPGTranscoder () |
Private Types | |
typedef unsigned int | LUT |
typedef std::vector< double > | RCTdecompression |
Private Member Functions | |
void | loadHCALCompress (HcalLutMetadata const &, HcalTrigTowerGeometry const &) |
Private Attributes | |
std::string | compressionFile_ |
std::string | decompressionFile_ |
std::vector< RCTdecompression > | hcaluncomp_ |
std::vector< int > | ietah |
std::vector< int > | ietal |
double | lsb_factor_ |
std::vector< int > | LUTfactor |
double | nct_factor_ |
double | nominal_gain_ |
std::vector< std::vector< LUT > > | outputLUT_ |
double | rct_factor_ |
unsigned int | size |
const HcalTopology * | theTopology |
std::vector< int > | ZS |
Static Private Attributes | |
static const bool | newHFphi = true |
static const int | NOUTLUTS = 4176 |
static const unsigned int | OUTPUT_LUT_SIZE = 1024 |
static const unsigned int | TPGMAX = 256 |
Additional Inherited Members | |
Public Types inherited from CaloTPGTranscoder | |
enum | Mode { All =0, RCT =1, HcalTPG =2, EcalTPG =3 } |
Definition at line 18 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 42 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 43 of file CaloTPGTranscoderULUT.h.
CaloTPGTranscoderULUT::CaloTPGTranscoderULUT | ( | const std::string & | compressionFile = "" , |
const std::string & | decompressionFile = "" |
||
) |
Definition at line 19 of file CaloTPGTranscoderULUT.cc.
References outputLUT_.
|
virtual |
Definition at line 30 of file CaloTPGTranscoderULUT.cc.
|
virtual |
Compression from linear samples+fine grain in the ECAL.
Implements CaloTPGTranscoder.
Definition at line 160 of file CaloTPGTranscoderULUT.cc.
References Exception.
|
virtual |
Definition at line 200 of file CaloTPGTranscoderULUT.cc.
References getOutputLUTId(), and outputLUT_.
Referenced by HcalLutManager::getCompressionLutXmlFromCoder().
|
virtual |
Definition at line 184 of file CaloTPGTranscoderULUT.cc.
References HcalTopology::detId2denseIdHT(), Exception, and theTopology.
Referenced by getCompressionLUT(), hcalCompress(), hcaletValue(), loadHCALCompress(), and L1CaloHcalScaleConfigOnlineProd::newObject().
|
virtual |
Definition at line 191 of file CaloTPGTranscoderULUT.cc.
References HcalTopology::detId2denseIdHT(), Exception, and theTopology.
|
overridevirtual |
Compression from linear samples+fine grain in the HTR.
Implements CaloTPGTranscoder.
Definition at line 125 of file CaloTPGTranscoderULUT.cc.
References Exception, getOutputLUTId(), OUTPUT_LUT_SIZE, outputLUT_, and size.
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 140 of file CaloTPGTranscoderULUT.cc.
References getOutputLUTId(), hcaluncomp_, and TPGMAX.
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 153 of file CaloTPGTranscoderULUT.cc.
References HcalTriggerPrimitiveSample::compressedEt(), getOutputLUTId(), and hcaluncomp_.
|
virtual |
Definition at line 175 of file CaloTPGTranscoderULUT.cc.
References Exception, theTopology, and HcalTopology::validHT().
Referenced by HcalLutManager::getCompressionLutXmlFromAsciiMaster(), HcalLutManager::getCompressionLutXmlFromCoder(), and L1CaloHcalScaleConfigOnlineProd::newObject().
|
private |
Definition at line 33 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), Exception, V0MonitoringClient_cfi::factor, HcalTrigTowerGeometry::firstHFTower(), HcalCondObjectContainer< Item >::getAllChannels(), HcalLutMetadatum::getLutGranularity(), getOutputLUTId(), HcalLutMetadatum::getOutputLutThreshold(), HcalCondObjectContainer< Item >::getValues(), hcaluncomp_, i, cmsHarvester::index, HcalGenericDetId::isHcalDetId(), HcalGenericDetId::isHcalTrigTowerDetId(), dqm-mbProfile::log, lsb_factor_, min(), nct_factor_, nominal_gain_, OUTPUT_LUT_SIZE, outputLUT_, rct_factor_, size, mathSSE::sqrt(), theTopology, dtDQMClient_cfg::threshold, HcalTrigTowerGeometry::towerEtaBounds(), TPGMAX, HcalTopology::validHT(), relativeConstraints::value, and relval_steps::version.
Referenced by setup().
|
virtual |
Uncompression for the Electron/Photon path in the RCT.
Implements CaloTPGTranscoder.
Definition at line 164 of file CaloTPGTranscoderULUT.cc.
References Exception.
|
virtual |
Uncompression for the JET path in the RCT.
Implements CaloTPGTranscoder.
Definition at line 169 of file CaloTPGTranscoderULUT.cc.
References Exception.
|
virtual |
Definition at line 205 of file CaloTPGTranscoderULUT.cc.
References compressionFile_, decompressionFile_, Exception, HcalLutMetadata::getNominalGain(), HcalLutMetadata::getRctLsb(), loadHCALCompress(), HcaluLUTTPGCoder::lsb_, lsb_factor_, nct_factor_, nominal_gain_, rct_factor_, theTopology, and HcalCondObjectContainerBase::topo().
|
private |
Definition at line 60 of file CaloTPGTranscoderULUT.h.
Referenced by setup().
|
private |
Definition at line 61 of file CaloTPGTranscoderULUT.h.
Referenced by setup().
|
private |
Definition at line 69 of file CaloTPGTranscoderULUT.h.
Referenced by hcaletValue(), and loadHCALCompress().
|
private |
Definition at line 63 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 62 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 57 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALCompress(), and setup().
|
private |
Definition at line 65 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 59 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALCompress(), and setup().
|
staticprivate |
Definition at line 50 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 56 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALCompress(), and setup().
|
staticprivate |
Definition at line 47 of file CaloTPGTranscoderULUT.h.
|
staticprivate |
Definition at line 48 of file CaloTPGTranscoderULUT.h.
Referenced by hcalCompress(), and loadHCALCompress().
|
private |
Definition at line 68 of file CaloTPGTranscoderULUT.h.
Referenced by CaloTPGTranscoderULUT(), getCompressionLUT(), hcalCompress(), and loadHCALCompress().
|
private |
Definition at line 58 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALCompress(), and setup().
|
private |
Definition at line 67 of file CaloTPGTranscoderULUT.h.
Referenced by cuy.FindIssue::__init__(), hcalCompress(), loadHCALCompress(), esMonitoring.LineHistoryEnd::pop(), esMonitoring.LineHistoryEnd::push(), esMonitoring.LineHistoryEnd::write(), and esMonitoring.LineHistoryStart::write().
|
private |
Definition at line 45 of file CaloTPGTranscoderULUT.h.
Referenced by getOutputLUTId(), HTvalid(), loadHCALCompress(), and setup().
|
staticprivate |
Definition at line 49 of file CaloTPGTranscoderULUT.h.
Referenced by hcaletValue(), and loadHCALCompress().
|
private |
Definition at line 64 of file CaloTPGTranscoderULUT.h.