17 esConsumes<CaloSubdetectorGeometry, EcalBarrelGeometryRecord>(
edm::ESInputTag{
"",
"EcalBarrel"})),
18 eTTmapToken_(esConsumes<EcalTrigTowerConstituentsMap, IdealGeometryRecord>()),
20 std::cout <<
"I'm going to check the internal consistancy of EcalTPGScale transformation..." << std::endl;
39 vector<DetId>::const_iterator
it;
46 for (
unsigned int ADC = 0;
ADC < 256;
ADC++) {
48 unsigned int tpgADC = ecalScale.
getTPGInADC(gev, towidEB);
51 cout <<
" ERROR : with ADC = " <<
ADC <<
" getTPGInGeV = " << gev <<
" getTPGInADC = " << tpgADC << endl;
61 for (
unsigned int ADC = 0;
ADC < 256;
ADC++) {
63 unsigned int tpgADC = ecalScale.
getTPGInADC(gev, towidEE);
66 cout <<
" ERROR : with ADC = " <<
ADC <<
" getTPGInGeV = " << gev <<
" getTPGInADC = " << tpgADC << endl;
72 cout <<
" there is no error with EcalTPGScale internal consistancy " << endl;
const CaloSubdetectorGeometry * theEndcapGeometry_
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId) const
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > endcapGeomToken_
unsigned int getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId) const
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)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::vector< edm::EDGetTokenT< int > > tokens_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
EcalTPGScale::Tokens tokens_
testEcalTPGScale(edm::ParameterSet const &pSet)
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
const CaloSubdetectorGeometry * theBarrelGeometry_
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > barrelGeomToken_