26 for (
unsigned i=0;
i<hcalTPs.
size(); ++
i) {
28 short ieta = (short) hcalTPs[
i].
id().ieta();
29 unsigned short absIeta = (
unsigned short)
abs(ieta);
30 short sign = ieta/absIeta;
32 unsigned short cal_iphi = (
unsigned short) hcalTPs[
i].
id().iphi();
33 unsigned short iphi = (72 + 18 - cal_iphi) % 72;
38 unsigned short compEt = hcalTPs[
i].SOI_compressedEt();
42 unsigned short fineGrain = (
unsigned short) hcalTPs[
i].SOI_fineGrain();
60 for (
unsigned i=0;
i<ecalTPs.
size(); ++
i) {
62 short ieta = (short) ecalTPs[
i].
id().ieta();
63 unsigned short absIeta = (
unsigned short)
abs(ieta);
64 short sign = ieta/absIeta;
66 unsigned short cal_iphi = (
unsigned short) ecalTPs[
i].
id().iphi();
67 unsigned short iphi = (72 + 18 - cal_iphi) % 72;
69 unsigned short compEt = ecalTPs[
i].compressedEt();
73 unsigned short fineGrain = (
unsigned short) ecalTPs[
i].fineGrain();
void SetHCAL(const HcalTrigPrimDigiCollection &hcalTPs)
L1AnalysisCaloTPDataFormat tp_
const L1CaloHcalScale * hcalScale_
double et(unsigned short rank, unsigned short eta, short etaSign) const
convert from rank to physically meaningful quantity
double et(unsigned short rank, unsigned short eta, short etaSign) const
convert from rank to physically meaningful quantity
Abs< T >::type abs(const T &t)
const L1CaloEcalScale * ecalScale_
et
define resolution functions of each parameter
void SetECAL(const EcalTrigPrimDigiCollection &ecalTPs)