CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
CaloTPGTranscoderULUT Class Reference

#include <CaloTPGTranscoderULUT.h>

Inheritance diagram for CaloTPGTranscoderULUT:
CaloTPGTranscoder

Public Member Functions

 CaloTPGTranscoderULUT (const std::string &compressionFile="", const std::string &decompressionFile="")
 
EcalTriggerPrimitiveSample ecalCompress (const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const override
 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
 
HcalTriggerPrimitiveSample hcalCompress (const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const override
 Compression from linear samples+fine grain in the HTR. More...
 
double hcaletValue (const int &ieta, const int &iphi, const int &version, const int &compressedValue) const override
 
double hcaletValue (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc) const override
 
virtual bool HTvalid (const int ieta, const int iphi, const int version) const
 
void rctEGammaUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et, bool &egVecto, bool &activity) const override
 Uncompression for the Electron/Photon path in the RCT. More...
 
void rctJetUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et) const override
 Uncompression for the JET path in the RCT. More...
 
virtual void setup (HcalLutMetadata const &, HcalTrigTowerGeometry const &, int, int)
 
 ~CaloTPGTranscoderULUT () override
 
- Public Member Functions inherited from CaloTPGTranscoder
 CaloTPGTranscoder ()
 
boost::shared_ptr< const EcalTPGCompressorgetEcalCompressor () const
 
boost::shared_ptr< const HcalTPGCompressorgetHcalCompressor () const
 
virtual ~CaloTPGTranscoder ()
 

Private Types

typedef uint8_t LUT
 
typedef std::array< float, TPGMAXRCTdecompression
 

Private Member Functions

unsigned int getOutputLUTSize (const HcalTrigTowerDetId &id) const
 
void loadHCALCompress (HcalLutMetadata const &, HcalTrigTowerGeometry const &)
 

Private Attributes

std::string compressionFile_
 
std::string decompressionFile_
 
std::vector< RCTdecompressionhcaluncomp_
 
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_
 
std::set< HcalDetIdplan1_towers_
 
double rct_factor_
 
const HcalTopologytheTopology
 
std::vector< int > ZS
 

Static Private Attributes

static const bool newHFphi = true
 
static const int NOUTLUTS = 4176
 
static const unsigned int OUTPUT_LUT_SIZE = std::max({QIE8_OUTPUT_LUT_SIZE, QIE10_OUTPUT_LUT_SIZE, QIE11_OUTPUT_LUT_SIZE})
 
static const unsigned int QIE10_OUTPUT_LUT_SIZE = REDUCE11BIT
 
static const unsigned int QIE11_OUTPUT_LUT_SIZE = REDUCE11BIT
 
static const unsigned int QIE8_OUTPUT_LUT_SIZE = REDUCE10BIT
 
static const unsigned int REDUCE10BIT = 1024
 
static const unsigned int REDUCE11BIT = 2048
 
static const unsigned int TPGMAX = 256
 

Additional Inherited Members

- Public Types inherited from CaloTPGTranscoder
enum  Mode { All =0, RCT =1, HcalTPG =2, EcalTPG =3 }
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 19 of file CaloTPGTranscoderULUT.h.

Member Typedef Documentation

typedef uint8_t CaloTPGTranscoderULUT::LUT
private

Definition at line 57 of file CaloTPGTranscoderULUT.h.

typedef std::array<float, TPGMAX> CaloTPGTranscoderULUT::RCTdecompression
private

Definition at line 58 of file CaloTPGTranscoderULUT.h.

Constructor & Destructor Documentation

CaloTPGTranscoderULUT::CaloTPGTranscoderULUT ( const std::string &  compressionFile = "",
const std::string &  decompressionFile = "" 
)

Definition at line 19 of file CaloTPGTranscoderULUT.cc.

21  : theTopology(nullptr),
23  compressionFile_(compressionFile),
24  decompressionFile_(decompressionFile)
25 {
26 }
const HcalTopology * theTopology
CaloTPGTranscoderULUT::~CaloTPGTranscoderULUT ( )
override

Definition at line 28 of file CaloTPGTranscoderULUT.cc.

28  {
29 }

Member Function Documentation

EcalTriggerPrimitiveSample CaloTPGTranscoderULUT::ecalCompress ( const EcalTrigTowerDetId id,
unsigned int  sample,
bool  fineGrain 
) const
overridevirtual

Compression from linear samples+fine grain in the ECAL.

Implements CaloTPGTranscoder.

Definition at line 152 of file CaloTPGTranscoderULUT.cc.

References Exception.

152  {
153  throw cms::Exception("Not Implemented") << "CaloTPGTranscoderULUT::ecalCompress";
154 }
const std::vector< unsigned int > CaloTPGTranscoderULUT::getCompressionLUT ( const HcalTrigTowerDetId id) const
virtual

Definition at line 234 of file CaloTPGTranscoderULUT.cc.

References getOutputLUTId(), lumiPlot::lut, outputLUT_, and mps_fire::result.

Referenced by HcalLutManager::getCompressionLutXmlFromCoder().

234  {
235  int itower = getOutputLUTId(id);
236  auto lut = outputLUT_[itower];
237  std::vector<unsigned int> result(lut.begin(), lut.end());
238  return result;
239 }
std::vector< std::vector< LUT > > outputLUT_
virtual int getOutputLUTId(const HcalTrigTowerDetId &id) const
int CaloTPGTranscoderULUT::getOutputLUTId ( const HcalTrigTowerDetId id) const
virtual

Definition at line 176 of file CaloTPGTranscoderULUT.cc.

References HcalTopology::detId2denseIdHT(), Exception, and theTopology.

Referenced by getCompressionLUT(), hcalCompress(), hcaletValue(), loadHCALCompress(), and L1CaloHcalScaleConfigOnlineProd::newObject().

176  {
177  if (!theTopology) {
178  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
179  }
180  return theTopology->detId2denseIdHT(id);
181 }
unsigned int detId2denseIdHT(const DetId &id) const
return a linear packed id from HT
const HcalTopology * theTopology
int CaloTPGTranscoderULUT::getOutputLUTId ( const int  ieta,
const int  iphi,
const int  version 
) const
virtual

Definition at line 183 of file CaloTPGTranscoderULUT.cc.

References HcalTopology::detId2denseIdHT(), Exception, triggerObjects_cff::id, and theTopology.

183  {
184  if (!theTopology) {
185  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
186  }
187  HcalTrigTowerDetId id(ieta, iphiin);
188  id.setVersion(version);
189  return theTopology->detId2denseIdHT(id);
190 }
unsigned int detId2denseIdHT(const DetId &id) const
return a linear packed id from HT
const HcalTopology * theTopology
unsigned int CaloTPGTranscoderULUT::getOutputLUTSize ( const HcalTrigTowerDetId id) const
private

Definition at line 193 of file CaloTPGTranscoderULUT.cc.

References Exception, HcalTopology::lastHBRing(), HcalTopology::lastHERing(), plan1_towers_, QIE10_OUTPUT_LUT_SIZE, QIE11_OUTPUT_LUT_SIZE, QIE8_OUTPUT_LUT_SIZE, theTopology, HcalTopology::triggerMode(), HcalTopologyMode::TriggerMode_2009, HcalTopologyMode::TriggerMode_2016, HcalTopologyMode::TriggerMode_2017, HcalTopologyMode::TriggerMode_2017plan1, HcalTopologyMode::TriggerMode_2018, HcalTopologyMode::TriggerMode_2018legacy, and HcalTopologyMode::TriggerMode_2019.

Referenced by hcalCompress(), and loadHCALCompress().

194 {
195  if (!theTopology)
196  throw cms::Exception("CaloTPGTranscoderULUT")
197  << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
198 
199  switch (theTopology->triggerMode()) {
202  return QIE8_OUTPUT_LUT_SIZE;
204  if (id.ietaAbs() <= theTopology->lastHERing())
205  return QIE8_OUTPUT_LUT_SIZE;
206  else
207  return QIE10_OUTPUT_LUT_SIZE;
209  if (plan1_towers_.find(id) != plan1_towers_.end())
210  return QIE11_OUTPUT_LUT_SIZE;
211  else if (id.ietaAbs() <= theTopology->lastHERing())
212  return QIE8_OUTPUT_LUT_SIZE;
213  else
214  return QIE10_OUTPUT_LUT_SIZE;
217  if (id.ietaAbs() <= theTopology->lastHBRing())
218  return QIE8_OUTPUT_LUT_SIZE;
219  else if (id.ietaAbs() <= theTopology->lastHERing())
220  return QIE11_OUTPUT_LUT_SIZE;
221  else
222  return QIE10_OUTPUT_LUT_SIZE;
224  if (id.ietaAbs() <= theTopology->lastHERing())
225  return QIE11_OUTPUT_LUT_SIZE;
226  else
227  return QIE10_OUTPUT_LUT_SIZE;
228  default:
229  throw cms::Exception("CaloTPGTranscoderULUT")
230  << "Unknown trigger mode used by the topology!";
231  }
232 }
std::set< HcalDetId > plan1_towers_
static const unsigned int QIE8_OUTPUT_LUT_SIZE
int lastHBRing() const
Definition: HcalTopology.h:88
HcalTopologyMode::TriggerMode triggerMode() const
Definition: HcalTopology.h:32
const HcalTopology * theTopology
static const unsigned int QIE10_OUTPUT_LUT_SIZE
static const unsigned int QIE11_OUTPUT_LUT_SIZE
int lastHERing() const
Definition: HcalTopology.h:90
HcalTriggerPrimitiveSample CaloTPGTranscoderULUT::hcalCompress ( const HcalTrigTowerDetId id,
unsigned int  sample,
int  fineGrain 
) const
overridevirtual

Compression from linear samples+fine grain in the HTR.

Implements CaloTPGTranscoder.

Definition at line 119 of file CaloTPGTranscoderULUT.cc.

References Exception, getOutputLUTId(), getOutputLUTSize(), triggerObjects_cff::id, and outputLUT_.

119  {
120  unsigned int itower = getOutputLUTId(id);
121 
122  if (sample >= getOutputLUTSize(id))
123  throw cms::Exception("Out of Range")
124  << "LUT has " << getOutputLUTSize(id) << " entries for " << id << " but " << sample << " was requested.";
125 
126  if(itower >= outputLUT_.size())
127  throw cms::Exception("Out of Range") << "No decompression LUT found for " << id;
128 
129  return HcalTriggerPrimitiveSample(outputLUT_[itower][sample], fineGrain);
130 }
std::vector< std::vector< LUT > > outputLUT_
unsigned int getOutputLUTSize(const HcalTrigTowerDetId &id) const
virtual int getOutputLUTId(const HcalTrigTowerDetId &id) const
double CaloTPGTranscoderULUT::hcaletValue ( const int &  ieta,
const int &  iphi,
const int &  version,
const int &  compressedValue 
) const
overridevirtual

Implements CaloTPGTranscoder.

Definition at line 132 of file CaloTPGTranscoderULUT.cc.

References getOutputLUTId(), hcaluncomp_, and TPGMAX.

132  {
133  double etvalue = 0.;
134  int itower = getOutputLUTId(ieta,iphi, version);
135  if (itower < 0) {
136  edm::LogError("CaloTPGTranscoderULUT") << "No decompression LUT found for ieta, iphi = " << ieta << ", " << iphi;
137  } else if (compET < 0 || compET >= (int) TPGMAX) {
138  edm::LogError("CaloTPGTranscoderULUT") << "Compressed value out of range: eta, phi, cET = " << ieta << ", " << iphi << ", " << compET;
139  } else {
140  etvalue = hcaluncomp_[itower][compET];
141  }
142  return(etvalue);
143 }
std::vector< RCTdecompression > hcaluncomp_
virtual int getOutputLUTId(const HcalTrigTowerDetId &id) const
static const unsigned int TPGMAX
double CaloTPGTranscoderULUT::hcaletValue ( const HcalTrigTowerDetId hid,
const HcalTriggerPrimitiveSample hc 
) const
overridevirtual

Implements CaloTPGTranscoder.

Definition at line 145 of file CaloTPGTranscoderULUT.cc.

References HcalTriggerPrimitiveSample::compressedEt(), getOutputLUTId(), and hcaluncomp_.

145  {
146  int compET = hc.compressedEt(); // to be within the range by the class
147  int itower = getOutputLUTId(hid);
148  double etvalue = hcaluncomp_[itower][compET];
149  return etvalue;
150 }
std::vector< RCTdecompression > hcaluncomp_
virtual int getOutputLUTId(const HcalTrigTowerDetId &id) const
int compressedEt() const
get the encoded/compressed Et
bool CaloTPGTranscoderULUT::HTvalid ( const int  ieta,
const int  iphi,
const int  version 
) const
virtual

Definition at line 167 of file CaloTPGTranscoderULUT.cc.

References Exception, triggerObjects_cff::id, theTopology, and HcalTopology::validHT().

Referenced by HcalLutManager::getCompressionLutXmlFromAsciiMaster(), HcalLutManager::getCompressionLutXmlFromCoder(), and L1CaloHcalScaleConfigOnlineProd::newObject().

167  {
168  HcalTrigTowerDetId id(ieta, iphiin);
169  id.setVersion(version);
170  if (!theTopology) {
171  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
172  }
173  return theTopology->validHT(id);
174 }
const HcalTopology * theTopology
bool validHT(const HcalTrigTowerDetId &id) const
void CaloTPGTranscoderULUT::loadHCALCompress ( HcalLutMetadata const &  lutMetadata,
HcalTrigTowerGeometry const &  theTrigTowerGeometry 
)
private

Definition at line 31 of file CaloTPGTranscoderULUT.cc.

References funct::abs(), Exception, HcalTrigTowerGeometry::firstHFTower(), HcalCondObjectContainer< Item >::getAllChannels(), HcalLutMetadatum::getLutGranularity(), getOutputLUTId(), getOutputLUTSize(), HcalLutMetadatum::getOutputLutThreshold(), HcalCondObjectContainer< Item >::getValues(), hcaluncomp_, mps_fire::i, triggerObjects_cff::id, diffTreeTool::index, HcalGenericDetId::isHcalCastorDetId(), HcalGenericDetId::isHcalDetId(), HcalGenericDetId::isHcalTrigTowerDetId(), HcalGenericDetId::isHcalZDCDetId(), cmsBatch::log, lsb_factor_, min(), nct_factor_, nominal_gain_, OUTPUT_LUT_SIZE, outputLUT_, rct_factor_, mathSSE::sqrt(), theTopology, electronIdCutBased_cfi::threshold, HcalTrigTowerGeometry::towerEtaBounds(), TPGMAX, HcalTopology::validHT(), and jets_cff::version.

Referenced by setup().

32  {
33  if (!theTopology) {
34  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
35  }
36 
37  std::array<unsigned int, OUTPUT_LUT_SIZE> analyticalLUT;
38  std::array<unsigned int, OUTPUT_LUT_SIZE> linearRctLUT;
39  std::array<unsigned int, OUTPUT_LUT_SIZE> linearNctLUT;
40 
41  // Compute compression LUT
42  for (unsigned int i=0; i < OUTPUT_LUT_SIZE; i++) {
43  analyticalLUT[i] = min((unsigned int)(sqrt(14.94*log(1.+i/14.94)*i) + 0.5), TPGMAX - 1);
44  linearRctLUT[i] = min((unsigned int)(i/rct_factor_), TPGMAX - 1);
45  linearNctLUT[i] = min((unsigned int)(i/nct_factor_), TPGMAX - 1);
46  }
47 
48  std::vector<DetId> allChannels = lutMetadata.getAllChannels();
49 
50  for(std::vector<DetId>::iterator i=allChannels.begin(); i!=allChannels.end(); ++i){
51 
52  if (not HcalGenericDetId(*i).isHcalTrigTowerDetId()) {
53  if ((not HcalGenericDetId(*i).isHcalDetId()) and
54  (not HcalGenericDetId(*i).isHcalZDCDetId()) and
56  edm::LogWarning("CaloTPGTranscoderULUT") << "Encountered invalid HcalDetId " << HcalGenericDetId(*i);
57  continue;
58  }
59 
61  if(!theTopology->validHT(id)) continue;
62 
63  unsigned int index = getOutputLUTId(id);
64 
65  const HcalLutMetadatum *meta = lutMetadata.getValues(id);
66  unsigned int threshold = meta->getOutputLutThreshold();
67 
68  int ieta=id.ieta();
69  int version=id.version();
70  bool isHBHE = (abs(ieta) < theTrigTowerGeometry.firstHFTower(version));
71 
72  unsigned int lutsize = getOutputLUTSize(id);
73  outputLUT_[index].resize(lutsize);
74 
75  for (unsigned int i = 0; i < threshold; ++i)
76  outputLUT_[index][i] = 0;
77 
78  if (isHBHE) {
79  for (unsigned int i = threshold; i < lutsize; ++i)
80  outputLUT_[index][i] = analyticalLUT[i];
81  } else {
82  for (unsigned int i = threshold; i < lutsize; ++i)
83  outputLUT_[index][i] = version == 0 ? linearRctLUT[i] : linearNctLUT[i];
84  }
85 
86  double eta_low = 0., eta_high = 0.;
87  theTrigTowerGeometry.towerEtaBounds(ieta,version,eta_low,eta_high);
88  double cosh_ieta = fabs(cosh((eta_low + eta_high)/2.));
89  double granularity = meta->getLutGranularity();
90 
91  if(isHBHE){
92  double factor = nominal_gain_ / cosh_ieta * granularity;
93  LUT tpg = outputLUT_[index][0];
94  int low = 0;
95  for (unsigned int i = 0; i < getOutputLUTSize(id); ++i){
96  if (outputLUT_[index][i] != tpg){
97  unsigned int mid = (low + i)/2;
98  hcaluncomp_[index][tpg] = (tpg == 0 ? low : factor * mid);
99  low = i;
100  tpg = outputLUT_[index][i];
101  }
102  }
103  hcaluncomp_[index][tpg] = factor * low;
104  }
105  else{
106  LUT tpg = outputLUT_[index][0];
107  hcaluncomp_[index][tpg]=0;
108  for (unsigned int i = 0; i < getOutputLUTSize(id); ++i){
109  if (outputLUT_[index][i] != tpg){
110  tpg = outputLUT_[index][i];
111  hcaluncomp_[index][tpg] = lsb_factor_ * i / (version==0?rct_factor_:nct_factor_);
112  }
113  }
114  }
115  }
116 
117 }
std::vector< RCTdecompression > hcaluncomp_
bool isHcalZDCDetId() const
std::vector< std::vector< LUT > > outputLUT_
uint8_t getOutputLutThreshold() const
unsigned int getOutputLUTSize(const HcalTrigTowerDetId &id) const
uint8_t getLutGranularity() const
bool isHcalTrigTowerDetId() const
const HcalTopology * theTopology
T sqrt(T t)
Definition: SSEVec.h:18
virtual int getOutputLUTId(const HcalTrigTowerDetId &id) const
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static const unsigned int OUTPUT_LUT_SIZE
T min(T a, T b)
Definition: MathUtil.h:58
bool isHcalDetId() const
static const unsigned int TPGMAX
bool isHcalCastorDetId() const
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:32
bool validHT(const HcalTrigTowerDetId &id) const
void CaloTPGTranscoderULUT::rctEGammaUncompress ( const HcalTrigTowerDetId hid,
const HcalTriggerPrimitiveSample hc,
const EcalTrigTowerDetId eid,
const EcalTriggerPrimitiveSample ec,
unsigned int &  et,
bool &  egVeto,
bool &  activity 
) const
overridevirtual

Uncompression for the Electron/Photon path in the RCT.

Implements CaloTPGTranscoder.

Definition at line 156 of file CaloTPGTranscoderULUT.cc.

References Exception.

158  {
159  throw cms::Exception("Not Implemented") << "CaloTPGTranscoderULUT::rctEGammaUncompress";
160 }
void CaloTPGTranscoderULUT::rctJetUncompress ( const HcalTrigTowerDetId hid,
const HcalTriggerPrimitiveSample hc,
const EcalTrigTowerDetId eid,
const EcalTriggerPrimitiveSample ec,
unsigned int &  et 
) const
overridevirtual

Uncompression for the JET path in the RCT.

Implements CaloTPGTranscoder.

Definition at line 161 of file CaloTPGTranscoderULUT.cc.

References Exception.

163  {
164  throw cms::Exception("Not Implemented") << "CaloTPGTranscoderULUT::rctJetUncompress";
165 }
void CaloTPGTranscoderULUT::setup ( HcalLutMetadata const &  lutMetadata,
HcalTrigTowerGeometry const &  theTrigTowerGeometry,
int  nctScaleShift,
int  rctScaleShift 
)
virtual

Definition at line 241 of file CaloTPGTranscoderULUT.cc.

References compressionFile_, HcalTopology::dddConstants(), decompressionFile_, Exception, HcalCondObjectContainer< Item >::getAllChannels(), HcalTopology::getHTSize(), HcalLutMetadata::getNominalGain(), HcalLutMetadata::getRctLsb(), DetId::Hcal, hcaluncomp_, HcalDDDRecConstants::isPlan1(), loadHCALCompress(), HcaluLUTTPGCoder::lsb_, lsb_factor_, nct_factor_, nominal_gain_, outputLUT_, plan1_towers_, rct_factor_, theTopology, HcalCondObjectContainerBase::topo(), HcalTrigTowerGeometry::towerIds(), and HcalTopology::valid().

Referenced by o2olib.O2OTool::execute().

242 {
243  theTopology = lutMetadata.topo();
244  nominal_gain_ = lutMetadata.getNominalGain();
245  lsb_factor_ = lutMetadata.getRctLsb();
246 
247  rct_factor_ = lsb_factor_/(HcaluLUTTPGCoder::lsb_*(1<<rctScaleShift));
248  nct_factor_ = lsb_factor_/(HcaluLUTTPGCoder::lsb_*(1<<nctScaleShift));
249 
250  outputLUT_.resize(theTopology->getHTSize());
251  hcaluncomp_.resize(theTopology->getHTSize());
252 
253  plan1_towers_.clear();
254  for (const auto& id: lutMetadata.getAllChannels()) {
255  if (not (id.det() == DetId::Hcal and theTopology->valid(id)))
256  continue;
257  HcalDetId cell(id);
258  if (not theTopology->dddConstants()->isPlan1(cell))
259  continue;
260  for (const auto& tower: theTrigTowerGeometry.towerIds(cell))
261  plan1_towers_.emplace(tower);
262  }
263 
264  if (compressionFile_.empty() && decompressionFile_.empty()) {
265  loadHCALCompress(lutMetadata,theTrigTowerGeometry);
266  }
267  else {
268  throw cms::Exception("Not Implemented") << "setup of CaloTPGTranscoderULUT from text files";
269  }
270 }
const HcalDDDRecConstants * dddConstants() const
Definition: HcalTopology.h:161
std::vector< RCTdecompression > hcaluncomp_
std::vector< std::vector< LUT > > outputLUT_
std::set< HcalDetId > plan1_towers_
bool valid(const DetId &id) const override
static const float lsb_
const HcalTopology * theTopology
unsigned int getHTSize() const
Definition: HcalTopology.h:136
void loadHCALCompress(HcalLutMetadata const &, HcalTrigTowerGeometry const &)
bool isPlan1(const HcalDetId &id) const

Member Data Documentation

std::string CaloTPGTranscoderULUT::compressionFile_
private

Definition at line 72 of file CaloTPGTranscoderULUT.h.

Referenced by setup().

std::string CaloTPGTranscoderULUT::decompressionFile_
private

Definition at line 73 of file CaloTPGTranscoderULUT.h.

Referenced by setup().

std::vector<RCTdecompression> CaloTPGTranscoderULUT::hcaluncomp_
private

Definition at line 80 of file CaloTPGTranscoderULUT.h.

Referenced by hcaletValue(), loadHCALCompress(), and setup().

std::vector<int> CaloTPGTranscoderULUT::ietah
private

Definition at line 75 of file CaloTPGTranscoderULUT.h.

std::vector<int> CaloTPGTranscoderULUT::ietal
private

Definition at line 74 of file CaloTPGTranscoderULUT.h.

double CaloTPGTranscoderULUT::lsb_factor_
private

Definition at line 69 of file CaloTPGTranscoderULUT.h.

Referenced by loadHCALCompress(), and setup().

std::vector<int> CaloTPGTranscoderULUT::LUTfactor
private

Definition at line 77 of file CaloTPGTranscoderULUT.h.

double CaloTPGTranscoderULUT::nct_factor_
private

Definition at line 71 of file CaloTPGTranscoderULUT.h.

Referenced by loadHCALCompress(), and setup().

const bool CaloTPGTranscoderULUT::newHFphi = true
staticprivate

Definition at line 61 of file CaloTPGTranscoderULUT.h.

double CaloTPGTranscoderULUT::nominal_gain_
private

Definition at line 68 of file CaloTPGTranscoderULUT.h.

Referenced by loadHCALCompress(), and setup().

const int CaloTPGTranscoderULUT::NOUTLUTS = 4176
staticprivate

Definition at line 43 of file CaloTPGTranscoderULUT.h.

const unsigned int CaloTPGTranscoderULUT::OUTPUT_LUT_SIZE = std::max({QIE8_OUTPUT_LUT_SIZE, QIE10_OUTPUT_LUT_SIZE, QIE11_OUTPUT_LUT_SIZE})
staticprivate

Definition at line 53 of file CaloTPGTranscoderULUT.h.

Referenced by loadHCALCompress().

std::vector<std::vector<LUT> > CaloTPGTranscoderULUT::outputLUT_
private

Definition at line 79 of file CaloTPGTranscoderULUT.h.

Referenced by getCompressionLUT(), hcalCompress(), loadHCALCompress(), and setup().

std::set<HcalDetId> CaloTPGTranscoderULUT::plan1_towers_
private

Definition at line 82 of file CaloTPGTranscoderULUT.h.

Referenced by getOutputLUTSize(), and setup().

const unsigned int CaloTPGTranscoderULUT::QIE10_OUTPUT_LUT_SIZE = REDUCE11BIT
staticprivate

Definition at line 51 of file CaloTPGTranscoderULUT.h.

Referenced by getOutputLUTSize().

const unsigned int CaloTPGTranscoderULUT::QIE11_OUTPUT_LUT_SIZE = REDUCE11BIT
staticprivate

Definition at line 52 of file CaloTPGTranscoderULUT.h.

Referenced by getOutputLUTSize().

const unsigned int CaloTPGTranscoderULUT::QIE8_OUTPUT_LUT_SIZE = REDUCE10BIT
staticprivate

Definition at line 50 of file CaloTPGTranscoderULUT.h.

Referenced by getOutputLUTSize().

double CaloTPGTranscoderULUT::rct_factor_
private

Definition at line 70 of file CaloTPGTranscoderULUT.h.

Referenced by loadHCALCompress(), and setup().

const unsigned int CaloTPGTranscoderULUT::REDUCE10BIT = 1024
staticprivate

Definition at line 46 of file CaloTPGTranscoderULUT.h.

const unsigned int CaloTPGTranscoderULUT::REDUCE11BIT = 2048
staticprivate

Definition at line 47 of file CaloTPGTranscoderULUT.h.

const HcalTopology* CaloTPGTranscoderULUT::theTopology
private
const unsigned int CaloTPGTranscoderULUT::TPGMAX = 256
staticprivate

Definition at line 54 of file CaloTPGTranscoderULUT.h.

Referenced by hcaletValue(), and loadHCALCompress().

std::vector<int> CaloTPGTranscoderULUT::ZS
private

Definition at line 76 of file CaloTPGTranscoderULUT.h.