49 std::vector<metsig::SigInputObj> signInputVec;
51 for (; towerCand !=
towers->end(); towerCand++) {
52 const Candidate* candidate = &(*towerCand);
61 double sign_tower_sigma_et = 0;
62 double sign_tower_sigma_phi = 0;
65 bool hadIsDone =
false;
66 bool emIsDone =
false;
69 while (--cell >= 0 && (!hadIsDone || !emIsDone)) {
74 sign_tower_type =
"hadcalotower";
78 sign_tower_sigma_phi =
81 sign_tower_type =
"hadcalotower";
85 sign_tower_sigma_phi =
88 sign_tower_type =
"hadcalotower";
92 sign_tower_sigma_phi =
95 sign_tower_type =
"hadcalotower";
99 sign_tower_sigma_phi =
103 <<
" HCAL tower cell not assigned to an HCAL subdetector!!!" << std::endl;
107 sign_tower_type, sign_tower_et, sign_tower_phi, sign_tower_sigma_et, sign_tower_sigma_phi);
109 signInputVec.push_back(
temp);
117 sign_tower_type =
"emcalotower";
119 sign_tower_sigma_et =
121 sign_tower_sigma_phi =
124 sign_tower_type =
"emcalotower";
126 sign_tower_sigma_et =
128 sign_tower_sigma_phi =
133 <<
" ECAL tower cell not assigned to an ECAL subdetector!!!" << std::endl;
136 sign_tower_type, sign_tower_et, sign_tower_phi, sign_tower_sigma_et, sign_tower_sigma_phi);
137 signInputVec.push_back(
temp);
143 edm::LogWarning(
"SignCaloSpecificAlgo") <<
"found non-assigned cell, " << std::endl;
166 double sign_calo_met_total = 0;
167 double sign_calo_met_phi = 0;
168 double sign_calo_met_set = 0;
176 signInputVec.clear();
const void addObjects(const std::vector< metsig::SigInputObj > &EventVec)
std::vector< metsig::SigInputObj > makeVectorOutOfCaloTowers(edm::Handle< edm::View< reco::Candidate > > towers, const metsig::SignAlgoResolutions &resolutions, bool noHF, double globalthreshold)
const double significance(double &met_r, double &met_phi, double &met_set)
reco::METCovMatrix matrix_
void usePreviousSignif(const std::vector< double > &values)
constexpr HcalSubdetector subdet() const
get the subdetector
Structure containing data common to all types of MET.
const void addSignifMatrix(const reco::METCovMatrix &input)
void calculateBaseCaloMET(edm::Handle< edm::View< reco::Candidate > > towers, const CommonMETData &met, const metsig::SignAlgoResolutions &resolutions, bool noHF, double globalthreshold)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Log< level::Warning, false > LogWarning
reco::METCovMatrix getSignifMatrix() const