31 it = physMap.find(eb);
33 it = physMap.find(ee);
34 double lsb10bits = 0.;
35 if (it != physMap.end()) {
37 lsb10bits = item.
EtSat / 1024.;
49 uint32_t lutGrp = 999;
50 if (itgrp != lutGrpMap.end())
51 lutGrp = itgrp->second;
55 if (itLut != lutMap.end()) {
56 const unsigned int* lut = (itLut->second).getLut();
57 for (
unsigned int i = 0;
i < 1024;
i++)
58 if (ADC == (0xff & lut[
i])) {
68 unsigned int tpgADC = 0;
78 it = physMap.find(eb);
80 it = physMap.find(ee);
81 double lsb10bits = 0.;
82 if (it != physMap.end()) {
84 lsb10bits = item.
EtSat / 1024.;
92 if (itgrp != lutGrpMap.end())
93 lutGrp = itgrp->second;
97 if (itLut != lutMap.end()) {
98 const unsigned int* lut = (itLut->second).getLut();
100 int tpgADC10b = int(energy / lsb10bits + 0.5);
101 if (tpgADC10b >= 0 && tpgADC10b < 1024)
102 tpgADC = (0xff & lut[tpgADC10b]);
103 if (tpgADC10b >= 1024)
const EcalTPGGroupsMap & getMap() const
const edm::EventSetup & c
EcalTPGScale(Tokens const &, const edm::EventSetup &evtSetup)
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
EcalTPGPhysicsConst const & phys_
constexpr uint32_t rawId() const
get the raw id
EcalTPGLutIdMap const & lut_
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId) const
int compressedEt() const
get the encoded/compressed Et of interesting sample
const EcalTPGLutMap & getMap() const
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
const std::map< uint32_t, Item > & getMap() const
const EcalTrigTowerDetId & id() const
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
EcalTPGLutGroup const & lutGrp_
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
Tokens(edm::ConsumesCollector)
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId) const