35 double sumEtInpHF = 0.0;
36 double sumEtInmHF = 0.0;
37 double MExInpHF = 0.0;
38 double MEyInpHF = 0.0;
39 double MExInmHF = 0.0;
40 double MEyInmHF = 0.0;
51 update_HadEtInHB_HadEtInHE_HadEtInHO_HadEtInHF_EmEtInHF(
specific.HadEtInHB,
58 update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF(
59 sumEtInpHF, MExInpHF, MEyInpHF, sumEtInmHF, MExInmHF, MEyInmHF,
calotower);
62 double totalHad = totalEt - totalEm;
65 remove_HF_from_MET(
met, sumEtInpHF, MExInpHF, MEyInpHF, sumEtInmHF, MExInmHF, MEyInmHF);
68 add_MET_in_HF(
specific, sumEtInpHF, MExInpHF, MEyInpHF, sumEtInmHF, MExInmHF, MEyInmHF);
70 specific.EtFractionHadronic = (totalEt == 0.0) ? 0.0 : totalHad / totalEt;
71 specific.EtFractionEm = (totalEt == 0.0) ? 0.0 : totalEm / totalEt;
82 DetId detIdHcal = find_DetId_of_HCAL_cell_in_constituent_of(
calotower);
83 if (!detIdHcal.
null()) {
99 DetId detIdHcal = find_DetId_of_HCAL_cell_in_constituent_of(
calotower);
100 DetId detIdEcal = find_DetId_of_ECAL_cell_in_constituent_of(
calotower);
102 if (!detIdHcal.
null()) {
112 if (!detIdEcal.
null()) {
120 DetId detIdEcal = find_DetId_of_ECAL_cell_in_constituent_of(
calotower);
121 if (detIdEcal.
null())
140 DetId detIdHcal = find_DetId_of_HCAL_cell_in_constituent_of(
calotower);
141 if (detIdHcal.
null())
168 DetId detIdHcal = find_DetId_of_HCAL_cell_in_constituent_of(
calotower);
169 if (detIdHcal.
null())
195 met.mex -= (MExInmHF + MExInpHF);
196 met.mey -= (MEyInmHF + MEyInpHF);
197 met.sumet -= (sumEtInpHF + sumEtInmHF);
209 LorentzVector METpHF(MExInpHF, MEyInpHF, 0,
sqrt(MExInpHF * MExInpHF + MEyInpHF * MEyInpHF));
210 LorentzVector METmHF(MExInmHF, MEyInmHF, 0,
sqrt(MExInmHF * MExInmHF + MEyInmHF * MEyInmHF));
211 specific.CaloMETInpHF = METpHF.pt();
212 specific.CaloMETInmHF = METmHF.pt();
213 specific.CaloMETPhiInpHF = METpHF.Phi();
214 specific.CaloMETPhiInmHF = METmHF.Phi();
222 for (
int cell =
calotower->constituentsSize() - 1; cell >= 0; --cell) {
235 for (
int cell =
calotower->constituentsSize() - 1; cell >= 0; --cell) {