43 double lsb10bits = 0. ;
44 if (it != physMap.end()) {
46 lsb10bits = item.
EtSat/1024. ;
63 uint32_t lutGrp = 999 ;
64 if (itgrp != lutGrpMap.end()) lutGrp = itgrp->second ;
70 if (itLut != lutMap.end()) {
71 const unsigned int *
lut = (itLut->second).getLut() ;
72 for (
unsigned int i=0 ;
i<1024 ;
i++)
73 if (ADC == (0xff & lut[
i])) {
84 unsigned int tpgADC = 0 ;
96 double lsb10bits = 0. ;
97 if (it != physMap.end()) {
99 lsb10bits = item.
EtSat/1024. ;
107 uint32_t lutGrp = 0 ;
108 if (itgrp != lutGrpMap.end()) lutGrp = itgrp->second ;
114 if (itLut != lutMap.end()) {
115 const unsigned int *
lut = (itLut->second).getLut() ;
117 int tpgADC10b =
int(energy/lsb10bits+0.5) ;
118 if (tpgADC10b>=0 && tpgADC10b<1024) tpgADC = (0xff & lut[tpgADC10b]) ;
119 if (tpgADC10b>=1024) tpgADC = 0xff ;
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId)
const EcalTPGGroupsMap & getMap() const
const edm::EventSetup * setup_
void setEventSetup(const edm::EventSetup &evtSetup)
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
constexpr uint32_t rawId() const
get the raw id
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi)
int compressedEt() const
get the encoded/compressed Et of interesting sample
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId)
void get(HolderT &iHolder) 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
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
T const * product() const
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr