Go to the documentation of this file.
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)
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
EcalTPGLutGroup const & lutGrp_
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId) const
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
EcalTPGScale(Tokens const &, const edm::EventSetup &evtSetup)
const std::map< uint32_t, Item > & getMap() const
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
const EcalTPGGroupsMap & getMap() const
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
constexpr uint32_t rawId() const
get the raw id
const EcalTrigTowerDetId & id() const
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId) const
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
int compressedEt() const
get the encoded/compressed Et of interesting sample
EcalTPGPhysicsConst const & phys_
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
Tokens(edm::ConsumesCollector)
const EcalTPGLutMap & getMap() const
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
EcalTPGLutIdMap const & lut_