Go to the documentation of this file.
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 getLinearizedTPG(unsigned int ADC, const EcalTrigTowerDetId &towerId) const
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > endcapGeomToken_
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
std::vector< edm::EDGetTokenT< int > > tokens_
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)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
testEcalTPGScale(edm::ParameterSet const &pSet)
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > barrelGeomToken_
EcalTPGScale::Tokens tokens_
const CaloSubdetectorGeometry * theBarrelGeometry_
unsigned int getTPGInADC(double energy, const EcalTrigTowerDetId &towerId) const
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_