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="")
 
virtual 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
 
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 override
 
virtual double hcaletValue (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc) const override
 
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 override
 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 override
 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 EcalTPGCompressorgetEcalCompressor () const
 
boost::shared_ptr< const HcalTPGCompressorgetHcalCompressor () const
 
virtual ~CaloTPGTranscoder ()
 

Private Types

typedef unsigned int LUT
 
typedef std::array< double, 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::array< LUT, OUTPUT_LUT_SIZE > > 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 unsigned int CaloTPGTranscoderULUT::LUT
private

Definition at line 57 of file CaloTPGTranscoderULUT.h.

typedef std::array<double, 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(0),
23  compressionFile_(compressionFile),
24  decompressionFile_(decompressionFile)
25 {
26 }
const HcalTopology * theTopology
CaloTPGTranscoderULUT::~CaloTPGTranscoderULUT ( )
virtual

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 150 of file CaloTPGTranscoderULUT.cc.

References Exception.

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

Definition at line 232 of file CaloTPGTranscoderULUT.cc.

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

Referenced by HcalLutManager::getCompressionLutXmlFromCoder().

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

Definition at line 174 of file CaloTPGTranscoderULUT.cc.

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

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

174  {
175  if (!theTopology) {
176  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
177  }
178  return theTopology->detId2denseIdHT(id);
179 }
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 181 of file CaloTPGTranscoderULUT.cc.

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

181  {
182  if (!theTopology) {
183  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
184  }
185  HcalTrigTowerDetId id(ieta, iphiin);
186  id.setVersion(version);
187  return theTopology->detId2denseIdHT(id);
188 }
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 191 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().

192 {
193  if (!theTopology)
194  throw cms::Exception("CaloTPGTranscoderULUT")
195  << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
196 
197  switch (theTopology->triggerMode()) {
200  return QIE8_OUTPUT_LUT_SIZE;
202  if (id.ietaAbs() <= theTopology->lastHERing())
203  return QIE8_OUTPUT_LUT_SIZE;
204  else
205  return QIE10_OUTPUT_LUT_SIZE;
207  if (plan1_towers_.find(id) != plan1_towers_.end())
208  return QIE11_OUTPUT_LUT_SIZE;
209  else if (id.ietaAbs() <= theTopology->lastHERing())
210  return QIE8_OUTPUT_LUT_SIZE;
211  else
212  return QIE10_OUTPUT_LUT_SIZE;
215  if (id.ietaAbs() <= theTopology->lastHBRing())
216  return QIE8_OUTPUT_LUT_SIZE;
217  else if (id.ietaAbs() <= theTopology->lastHERing())
218  return QIE11_OUTPUT_LUT_SIZE;
219  else
220  return QIE10_OUTPUT_LUT_SIZE;
222  if (id.ietaAbs() <= theTopology->lastHERing())
223  return QIE11_OUTPUT_LUT_SIZE;
224  else
225  return QIE10_OUTPUT_LUT_SIZE;
226  default:
227  throw cms::Exception("CaloTPGTranscoderULUT")
228  << "Unknown trigger mode used by the topology!";
229  }
230 }
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 117 of file CaloTPGTranscoderULUT.cc.

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

117  {
118  unsigned int itower = getOutputLUTId(id);
119 
120  if (sample >= getOutputLUTSize(id))
121  throw cms::Exception("Out of Range")
122  << "LUT has " << getOutputLUTSize(id) << " entries for " << id << " but " << sample << " was requested.";
123 
124  if(itower >= outputLUT_.size())
125  throw cms::Exception("Out of Range") << "No decompression LUT found for " << id;
126 
127  return HcalTriggerPrimitiveSample(outputLUT_[itower][sample], fineGrain);
128 }
std::vector< std::array< LUT, OUTPUT_LUT_SIZE > > 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 130 of file CaloTPGTranscoderULUT.cc.

References getOutputLUTId(), hcaluncomp_, and TPGMAX.

130  {
131  double etvalue = 0.;
132  int itower = getOutputLUTId(ieta,iphi, version);
133  if (itower < 0) {
134  edm::LogError("CaloTPGTranscoderULUT") << "No decompression LUT found for ieta, iphi = " << ieta << ", " << iphi;
135  } else if (compET < 0 || compET >= (int) TPGMAX) {
136  edm::LogError("CaloTPGTranscoderULUT") << "Compressed value out of range: eta, phi, cET = " << ieta << ", " << iphi << ", " << compET;
137  } else {
138  etvalue = hcaluncomp_[itower][compET];
139  }
140  return(etvalue);
141 }
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 143 of file CaloTPGTranscoderULUT.cc.

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

143  {
144  int compET = hc.compressedEt(); // to be within the range by the class
145  int itower = getOutputLUTId(hid);
146  double etvalue = hcaluncomp_[itower][compET];
147  return etvalue;
148 }
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 165 of file CaloTPGTranscoderULUT.cc.

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

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

165  {
166  HcalTrigTowerDetId id(ieta, iphiin);
167  id.setVersion(version);
168  if (!theTopology) {
169  throw cms::Exception("CaloTPGTranscoderULUT") << "Topology not set! Use CaloTPGTranscoderULUT::setup(...) first!";
170  }
171  return theTopology->validHT(id);
172 }
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, hcalTTPDigis_cfi::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, ctppsDiamondLocalTracks_cfi::threshold, HcalTrigTowerGeometry::towerEtaBounds(), TPGMAX, HcalTopology::validHT(), and jetIDSelector_cfi::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 
74  for (unsigned int i = 0; i < threshold; ++i)
75  outputLUT_[index][i] = 0;
76 
77  if (isHBHE) {
78  for (unsigned int i = threshold; i < lutsize; ++i)
79  outputLUT_[index][i] = analyticalLUT[i];
80  } else {
81  for (unsigned int i = threshold; i < lutsize; ++i)
82  outputLUT_[index][i] = version == 0 ? linearRctLUT[i] : linearNctLUT[i];
83  }
84 
85  double eta_low = 0., eta_high = 0.;
86  theTrigTowerGeometry.towerEtaBounds(ieta,version,eta_low,eta_high);
87  double cosh_ieta = fabs(cosh((eta_low + eta_high)/2.));
88  double granularity = meta->getLutGranularity();
89 
90  if(isHBHE){
91  double factor = nominal_gain_ / cosh_ieta * granularity;
92  LUT tpg = outputLUT_[index][0];
93  int low = 0;
94  for (unsigned int i = 0; i < getOutputLUTSize(id); ++i){
95  if (outputLUT_[index][i] != tpg){
96  unsigned int mid = (low + i)/2;
97  hcaluncomp_[index][tpg] = (tpg == 0 ? low : factor * mid);
98  low = i;
99  tpg = outputLUT_[index][i];
100  }
101  }
102  hcaluncomp_[index][tpg] = factor * low;
103  }
104  else{
105  LUT tpg = outputLUT_[index][0];
106  hcaluncomp_[index][tpg]=0;
107  for (unsigned int i = 0; i < getOutputLUTSize(id); ++i){
108  if (outputLUT_[index][i] != tpg){
109  tpg = outputLUT_[index][i];
110  hcaluncomp_[index][tpg] = lsb_factor_ * i / (version==0?rct_factor_:nct_factor_);
111  }
112  }
113  }
114  }
115 }
std::vector< RCTdecompression > hcaluncomp_
std::vector< std::array< LUT, OUTPUT_LUT_SIZE > > outputLUT_
bool isHcalZDCDetId() const
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 154 of file CaloTPGTranscoderULUT.cc.

References Exception.

156  {
157  throw cms::Exception("Not Implemented") << "CaloTPGTranscoderULUT::rctEGammaUncompress";
158 }
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 159 of file CaloTPGTranscoderULUT.cc.

References Exception.

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

Definition at line 239 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().

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