16 std::cout<<
"I'm going to check the internal consistancy of EcalTPGScale transformation..."<<std::endl ;
38 vector<DetId>::const_iterator it ;
42 it = ebCells.begin() ;
45 for (
unsigned int ADC=0 ;
ADC<256 ;
ADC++) {
47 unsigned int tpgADC = ecalScale.
getTPGInADC(gev, towidEB) ;
50 cout<<
" ERROR : with ADC = "<<
ADC<<
" getTPGInGeV = "<<gev<<
" getTPGInADC = "<<tpgADC<<endl ;
57 it = eeCells.begin() ;
60 for (
unsigned int ADC=0 ;
ADC<256 ;
ADC++) {
62 unsigned int tpgADC = ecalScale.
getTPGInADC(gev, towidEE) ;
65 cout<<
" ERROR : with ADC = "<<
ADC<<
" getTPGInGeV = "<<gev<<
" getTPGInADC = "<<tpgADC<<endl ;
71 if (!error)
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
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
testEcalTPGScale(edm::ParameterSet const &pSet)
const CaloSubdetectorGeometry * theBarrelGeometry_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_