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++) {
46 double gev = ecalScale.getTPGInGeV(
ADC, towidEB) ;
47 unsigned int tpgADC = ecalScale.getTPGInADC(gev, towidEB) ;
50 cout<<
" ERROR : with ADC = "<<
ADC<<
" getTPGInGeV = "<<gev<<
" getTPGInADC = "<<tpgADC<<endl ;
52 ecalScale.getLinearizedTPG(
ADC, towidEB) ;
57 it = eeCells.begin() ;
60 for (
unsigned int ADC=0 ;
ADC<256 ;
ADC++) {
61 double gev = ecalScale.getTPGInGeV(
ADC, towidEE) ;
62 unsigned int tpgADC = ecalScale.getTPGInADC(gev, towidEE) ;
65 cout<<
" ERROR : with ADC = "<<
ADC<<
" getTPGInGeV = "<<gev<<
" getTPGInADC = "<<tpgADC<<endl ;
67 ecalScale.getLinearizedTPG(
ADC, towidEE) ;
71 if (!error)
cout<<
" there is no error with EcalTPGScale internal consistancy "<<endl ;
void setEventSetup(const edm::EventSetup &evtSetup)
const CaloSubdetectorGeometry * theEndcapGeometry_
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)
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_