CMS 3D CMS Logo

EcalTPGScale.h
Go to the documentation of this file.
1 #ifndef ECALTPGSCALE_H
2 #define ECALTPGSCALE_H
3 
15 
16 class EcalTPGScale {
17 public:
18  struct Tokens {
23  };
24 
25  EcalTPGScale(Tokens const&, const edm::EventSetup& evtSetup);
26 
27  double getTPGInGeV(const EcalTriggerPrimitiveDigi& tpDigi) const;
28  double getTPGInGeV(unsigned int ADC, const EcalTrigTowerDetId& towerId) const;
29 
30  unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId& towerId) const;
31  unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId& towerId) const;
32 
33 private:
37 };
38 
39 #endif
EcalTPGScale(Tokens const &, const edm::EventSetup &evtSetup)
Definition: EcalTPGScale.cc:10
const edm::ESGetToken< EcalTPGPhysicsConst, EcalTPGPhysicsConstRcd > physConstToken_
Definition: EcalTPGScale.h:20
EcalTPGPhysicsConst const & phys_
Definition: EcalTPGScale.h:34
const edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > lutMapToken_
Definition: EcalTPGScale.h:22
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId) const
Definition: EcalTPGScale.cc:67
EcalTPGLutIdMap const & lut_
Definition: EcalTPGScale.h:36
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId) const
Definition: EcalTPGScale.cc:44
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
Definition: EcalTPGScale.cc:17
const edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > lutGrpToken_
Definition: EcalTPGScale.h:21
EcalTPGLutGroup const & lutGrp_
Definition: EcalTPGScale.h:35
Tokens(edm::ConsumesCollector)
Definition: EcalTPGScale.cc:5