9 using std::setprecision;
61 #ifdef THIS_IS_AN_EVENT_EXAMPLE 63 iEvent.getByLabel(
"example", pIn);
66 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE 68 iSetup.
get<SetupRecord>().
get(pSetup);
77 bool ecalIsConsistent =
true;
78 bool hcalIsConsistent =
true;
92 for (
unsigned short absIeta = 1; absIeta <= 17; absIeta++) {
95 ecal2 = caloEcalScale->
et(
input, absIeta, 1);
97 if (!(ecal1 == ecal2)) {
98 ecalIsConsistent =
false;
108 ecal2 = caloEcalScale->
et(
input, absIeta, -1);
110 if (!(ecal1 == ecal2)) {
111 ecalIsConsistent =
false;
120 for (
unsigned short absIeta = 18; absIeta <= 28; absIeta++) {
123 ecal2 = caloEcalScale->
et(
input, absIeta, 1);
125 if (!(ecal1 == ecal2)) {
126 ecalIsConsistent =
false;
136 ecal2 = caloEcalScale->
et(
input, absIeta, -1);
138 if (!(ecal1 == ecal2)) {
139 ecalIsConsistent =
false;
149 if (!ecalIsConsistent) {
152 LogWarning(
"InconsistentData") <<
"ECAL scales not consistent!";
162 for (
unsigned short absIeta = 1; absIeta <= 32; absIeta++) {
163 hcal1 = caloTPGTranscoder->hcaletValue(absIeta,
input);
164 hcal2 = caloHcalScale->
et(
input, absIeta, 1);
165 hcal3 = caloTPGTranscoder->hcaletValue(-absIeta,
input);
166 hcal4 = caloHcalScale->
et(
input, absIeta, -1);
168 if ((!(hcal1 == hcal2)) || (!(hcal3 == hcal4))) {
169 hcalIsConsistent =
false;
177 if (!hcalIsConsistent) {
180 LogWarning(
"InconsistentData") <<
"HCAL scales not consistent!";
double et(unsigned short rank, unsigned short eta, short etaSign) const
convert from rank to physically meaningful quantity
static std::string const input
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::vector< edm::EDGetTokenT< int > > tokens_
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
double et(unsigned short rank, unsigned short eta, short etaSign) const
convert from rank to physically meaningful quantity
Log< level::Warning, false > LogWarning