17 for (
unsigned i = 0;
i < hcalTPs.
size(); ++
i) {
18 short ieta = (short)hcalTPs[
i].
id().ieta();
19 unsigned short absIeta = (
unsigned short)
abs(
ieta);
22 unsigned short cal_iphi = (
unsigned short)hcalTPs[
i].
id().iphi();
23 unsigned short iphi = (72 + 18 - cal_iphi) % 72;
28 unsigned short compEt = hcalTPs[
i].SOI_compressedEt();
30 if (hcalScale_ !=
nullptr)
31 et = hcalScale_->et(compEt, absIeta,
sign);
33 unsigned short fineGrain = (
unsigned short)hcalTPs[
i].SOI_fineGrain();
36 tp_.hcalTPCaliphi.push_back(cal_iphi);
37 tp_.hcalTPiphi.push_back(
iphi);
38 tp_.hcalTPet.push_back(
et);
39 tp_.hcalTPcompEt.push_back(compEt);
40 tp_.hcalTPfineGrain.push_back(fineGrain);
49 for (
unsigned i = 0;
i < ecalTPs.
size(); ++
i) {
50 short ieta = (short)ecalTPs[
i].
id().ieta();
51 unsigned short absIeta = (
unsigned short)
abs(
ieta);
54 unsigned short cal_iphi = (
unsigned short)ecalTPs[
i].
id().iphi();
56 (72 + 18 - cal_iphi) % 72;
58 unsigned short compEt = ecalTPs[
i].compressedEt();
60 if (ecalScale_ !=
nullptr)
61 et = ecalScale_->et(compEt, absIeta,
sign);
63 unsigned short fineGrain = (
unsigned short)ecalTPs[
i].fineGrain();
66 tp_.ecalTPCaliphi.push_back(cal_iphi);
67 tp_.ecalTPiphi.push_back(
iphi);
68 tp_.ecalTPet.push_back(
et);
69 tp_.ecalTPcompEt.push_back(compEt);
70 tp_.ecalTPfineGrain.push_back(fineGrain);
void SetHCAL(const HcalTrigPrimDigiCollection &hcalTPs)
void push_back(T const &t)
Abs< T >::type abs(const T &t)
Log< level::Info, false > LogInfo
void SetECAL(const EcalTrigPrimDigiCollection &ecalTPs)