49 std::vector<metsig::SigInputObj> signInputVec;
51 for (; towerCand != towers->end(); towerCand++) {
52 const Candidate* candidate = &(*towerCand);
56 double sign_tower_et = calotower->
et();
60 double sign_tower_phi = calotower->
phi();
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";
75 sign_tower_et = calotower->
hadEt();
78 sign_tower_sigma_phi =
81 sign_tower_type =
"hadcalotower";
82 sign_tower_et = calotower->
outerEt();
85 sign_tower_sigma_phi =
88 sign_tower_type =
"hadcalotower";
89 sign_tower_et = calotower->
hadEt();
92 sign_tower_sigma_phi =
95 sign_tower_type =
"hadcalotower";
96 sign_tower_et = calotower->
et();
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";
118 sign_tower_et = calotower->
emEt();
119 sign_tower_sigma_et =
121 sign_tower_sigma_phi =
124 sign_tower_type =
"emcalotower";
125 sign_tower_et = calotower->
emEt();
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;
size_t constituentsSize() const
DetId constituent(size_t i) const
double eval(const resolutionType &type, const resolutionFunc &func, const double &et, const double &phi, const double &eta, const double &p) const
constexpr HcalSubdetector subdet() const
get the subdetector
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
double et(double vtxZ) const
Log< level::Warning, false > LogWarning
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity