9 using std::setprecision;
61 #ifdef THIS_IS_AN_EVENT_EXAMPLE
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!";
static std::string const input
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
std::vector< edm::EDGetTokenT< int > > tokens_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Warning, false > LogWarning