27 std::vector<CaloHit>::iterator itr;
28 for (itr =
input.begin(); itr !=
input.end(); itr++) {
29 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder::getClusters_1 - input : e " << itr->e() <<
" eta " 30 << itr->eta() <<
" phi " << itr->phi() <<
" subdet " << itr->det();
35 for (itr =
input.begin(); itr !=
input.end(); itr++) {
36 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder::getClusters_2 - input : e " << itr->e() <<
" eta " 37 << itr->eta() <<
" phi " << itr->phi() <<
" subdet " << itr->det();
40 std::vector<SimG4HcalHitCluster>
temp;
47 std::vector<CaloHit>::iterator itr_hits;
49 int j, first_seed = 0;
50 for (
j = 0, itr_hits =
input.begin(); itr_hits !=
input.end();
j++, itr_hits++) {
51 int h_type = itr_hits->det();
57 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder:: First seed hit ..................\n" << (*itr_hits);
63 temp.push_back(cluster);
65 std::vector<SimG4HcalHitCluster>::iterator itr_clus;
67 for (
j = 0, itr_hits =
input.begin(); itr_hits !=
input.end();
j++, itr_hits++) {
68 int h_type = itr_hits->det();
74 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder:: ........... Consider hit ..................\n" 80 for (itr_clus =
temp.begin(), iclus = 0; itr_clus !=
temp.end(); itr_clus++, iclus++) {
81 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder::=======> Cluster " << iclus <<
"\n" << (*itr_clus);
83 double d =
rDist(&(*itr_clus), &(*itr_hits));
86 temp[iclus] += *itr_hits;
97 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder:: ************ NEW CLUSTER !\n" <<
cl;
107 double etac = cluster->
eta();
108 double phic = cluster->
phi();
110 double etah =
hit->eta();
111 double phih =
hit->phi();
113 return rDist(etac, phic, etah, phih);
127 edm::LogVerbatim(
"ValidHcal") <<
"HcalHitJetFinder::rDist:\n Clus. eta, phi = " << etac <<
" " << phic
128 <<
"\n hit eta, phi = " << etah <<
" " << phih <<
" rDist = " <<
tmp;
Log< level::Info, true > LogVerbatim
void setInput(std::vector< CaloHit > *)
std::vector< CaloHit > input
SimG4HcalHitJetFinder(double cone=0.5)
std::vector< SimG4HcalHitCluster > clusvector
std::vector< SimG4HcalHitCluster > * getClusters(bool)
virtual ~SimG4HcalHitJetFinder()
double rDist(const SimG4HcalHitCluster *, const CaloHit *) const