Go to the documentation of this file.
34 it = physMap.find(eb);
36 it = physMap.find(ee);
37 double lsb10bits = 0.;
38 if (it != physMap.end()) {
40 lsb10bits =
item.EtSat / 1024.;
55 uint32_t lutGrp = 999;
56 if (itgrp != lutGrpMap.end())
57 lutGrp = itgrp->second;
63 if (itLut != lutMap.end()) {
64 const unsigned int* lut = (itLut->second).getLut();
65 for (
unsigned int i = 0;
i < 1024;
i++)
66 if (
ADC == (0xff & lut[
i])) {
76 unsigned int tpgADC = 0;
87 it = physMap.find(eb);
89 it = physMap.find(ee);
90 double lsb10bits = 0.;
91 if (it != physMap.end()) {
93 lsb10bits =
item.EtSat / 1024.;
102 if (itgrp != lutGrpMap.end())
103 lutGrp = itgrp->second;
109 if (itLut != lutMap.end()) {
110 const unsigned int* lut = (itLut->second).getLut();
112 int tpgADC10b =
int(
energy / lsb10bits + 0.5);
113 if (tpgADC10b >= 0 && tpgADC10b < 1024)
114 tpgADC = (0xff & lut[tpgADC10b]);
115 if (tpgADC10b >= 1024)
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi)
T const * product() const
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
void setEventSetup(const edm::EventSetup &evtSetup)
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId)
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId)
const std::map< uint32_t, Item > & getMap() const
const EcalTPGGroupsMap & getMap() const
const edm::EventSetup * setup_
unsigned towerId(DetId const &)
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
constexpr uint32_t rawId() const
get the raw id
const EcalTrigTowerDetId & id() const
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
int compressedEt() const
get the encoded/compressed Et of interesting sample
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
std::map< uint32_t, uint32_t > EcalTPGGroupsMap