14 std::cout <<
"I'm going to check the internal consistancy of EcalTPGScale transformation..." << std::endl;
35 vector<DetId>::const_iterator it;
42 for (
unsigned int ADC = 0;
ADC < 256;
ADC++) {
44 unsigned int tpgADC = ecalScale.
getTPGInADC(gev, towidEB);
47 cout <<
" ERROR : with ADC = " <<
ADC <<
" getTPGInGeV = " << gev <<
" getTPGInADC = " << tpgADC << endl;
57 for (
unsigned int ADC = 0;
ADC < 256;
ADC++) {
59 unsigned int tpgADC = ecalScale.
getTPGInADC(gev, towidEE);
62 cout <<
" ERROR : with ADC = " <<
ADC <<
" getTPGInGeV = " << gev <<
" getTPGInADC = " << tpgADC << endl;
68 cout <<
" there is no error with EcalTPGScale internal consistancy " << endl;
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId)
void setEventSetup(const edm::EventSetup &evtSetup)
const CaloSubdetectorGeometry * theEndcapGeometry_
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi)
virtual const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const
Get a list of valid detector ids (for the given subdetector)
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId)
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
testEcalTPGScale(edm::ParameterSet const &pSet)
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
const CaloSubdetectorGeometry * theBarrelGeometry_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_