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) {
DetId find_DetId_of_HCAL_cell_in_constituent_of(const CaloTower *calotower)
void update_HadEtInHB_HadEtInHE_HadEtInHO_HadEtInHF_EmEtInHF(float &HadEtInHB, float &HadEtInHE, float &HadEtInHO, float &HadEtInHF, float &EmEtInHF, const CaloTower *calotower, bool noHF)
void remove_HF_from_MET(CommonMETData &met, double sumEtInpHF, double MExInpHF, double MEyInpHF, double sumEtInmHF, double MExInmHF, double MEyInmHF)
void add_MET_in_HF(SpecificCaloMETData &specific, double sumEtInpHF, double MExInpHF, double MEyInpHF, double sumEtInmHF, double MExInmHF, double MEyInmHF)
ret
prodAgent to be discontinued
Sin< T >::type sin(const T &t)
void update_EmEtInEB_EmEtInEE(float &EmEtInEB, float &EmEtInEE, const CaloTower *calotower)
void update_totalEt_totalEm(double &totalEt, double &totalEm, const CaloTower *calotower, bool noHF)
constexpr bool null() const
is this a null id ?
constexpr HcalSubdetector subdet() const
get the subdetector
void update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF(double &sumEtInpHF, double &MExInpHF, double &MEyInpHF, double &sumEtInmHF, double &MExInmHF, double &MEyInmHF, const CaloTower *calotower)
Cos< T >::type cos(const T &t)
Structure containing data common to all types of MET.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
reco::CaloMET addInfo(edm::Handle< edm::View< reco::Candidate > > towers, const CommonMETData &met, bool noHF, double globalThreshold)
void update_MaxTowerEm_MaxTowerHad(float &MaxTowerEm, float &MaxTowerHad, const CaloTower *calotower, bool noHF)
math::XYZTLorentzVector LorentzVector
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Structure Point Contains parameters of Gaussian fits to DMRs.
DetId find_DetId_of_ECAL_cell_in_constituent_of(const CaloTower *calotower)