19 reco::TrackCollection::const_iterator trkItr,
34 double maxNearP = -1.0;
38 reco::TrackCollection::const_iterator trkItr2;
39 for (trkItr2 = trkCollection->begin(); trkItr2 != trkCollection->end(); ++trkItr2) {
42 bool trkQuality = pTrack2->
quality(trackQuality_);
43 if ((trkItr2 != trkItr) && trkQuality) {
53 std::cout <<
"chargeIsolation:: EB cell " << (
EBDetId)(anyCell) <<
" for pt " << pTrack2->
p()
57 if (maxNearP < pTrack2->
p())
58 maxNearP = pTrack2->
p();
64 std::cout <<
"chargeIsolation:: EE cell " << (
EEDetId)(anyCell) <<
" for pt " << pTrack2->
p()
68 if (maxNearP < pTrack2->
p())
69 maxNearP = pTrack2->
p();
81 bool isIsolated =
false;
90 if (thisDet !=
DetId(0)) {
91 if (thisDet == anyCell) {
105 const DetId& coreDet,
106 reco::TrackCollection::const_iterator trkItr,
122 std::cout <<
"chargeIsolation:: eta/phi/dets " <<
ieta <<
" " <<
iphi <<
" " << vdets.size() << std::endl;
124 double maxNearP = -1.0;
128 reco::TrackCollection::const_iterator trkItr2;
129 for (trkItr2 = trkCollection->begin(); trkItr2 != trkCollection->end(); ++trkItr2) {
132 bool trkQuality = pTrack2->
quality(trackQuality_);
133 if ((trkItr2 != trkItr) && trkQuality) {
143 std::cout <<
"chargeIsolation:: EB cell " << (
EBDetId)(anyCell) <<
" for pt " << pTrack2->
p()
147 if (maxNearP < pTrack2->
p())
148 maxNearP = pTrack2->
p();
154 std::cout <<
"chargeIsolation:: EE cell " << (
EEDetId)(anyCell) <<
" for pt " << pTrack2->
p()
158 if (maxNearP < pTrack2->
p())
159 maxNearP = pTrack2->
p();
172 reco::TrackCollection::const_iterator trkItr,
174 const DetId ClosestCell,
183 std::vector<DetId> dets(1, ClosestCell);
193 for (
unsigned int i = 0;
i < vdets.size();
i++) {
198 double maxNearP = -1.0;
201 reco::TrackCollection::const_iterator trkItr2;
202 for (trkItr2 = trkCollection->begin(); trkItr2 != trkCollection->end(); ++trkItr2) {
205 bool trkQuality = pTrack2->
quality(trackQuality_);
206 if ((trkItr2 != trkItr) && trkQuality) {
213 std::cout <<
"Track2 (p,eta,phi) " << pTrack2->
p() <<
" " << pTrack2->
eta() <<
" " << pTrack2->
phi()
221 std::cout <<
"chargeIsolation:: HCAL cell " << (
HcalDetId)(anyCell) <<
" for pt " << pTrack2->
p()
225 if (maxNearP < pTrack2->
p())
226 maxNearP = pTrack2->
p();