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) {
54 std::cout <<
"chargeIsolation:: EB cell " << (
EBDetId)(anyCell) <<
" for pt " << pTrack2->
p()
58 if (maxNearP < pTrack2->
p())
59 maxNearP = pTrack2->
p();
65 std::cout <<
"chargeIsolation:: EE cell " << (
EEDetId)(anyCell) <<
" for pt " << pTrack2->
p()
69 if (maxNearP < pTrack2->
p())
70 maxNearP = pTrack2->
p();
82 bool isIsolated =
false;
91 if (thisDet !=
DetId(0)) {
92 if (thisDet == anyCell) {
106 const DetId& coreDet,
107 reco::TrackCollection::const_iterator trkItr,
123 std::cout <<
"chargeIsolation:: eta/phi/dets " <<
ieta <<
" " <<
iphi <<
" " << vdets.size() << std::endl;
125 double maxNearP = -1.0;
129 reco::TrackCollection::const_iterator trkItr2;
130 for (trkItr2 = trkCollection->begin(); trkItr2 != trkCollection->end(); ++trkItr2) {
133 bool trkQuality = pTrack2->
quality(trackQuality_);
134 if ((trkItr2 != trkItr) && trkQuality) {
145 std::cout <<
"chargeIsolation:: EB cell " << (
EBDetId)(anyCell) <<
" for pt " << pTrack2->
p()
149 if (maxNearP < pTrack2->
p())
150 maxNearP = pTrack2->
p();
156 std::cout <<
"chargeIsolation:: EE cell " << (
EEDetId)(anyCell) <<
" for pt " << pTrack2->
p()
160 if (maxNearP < pTrack2->
p())
161 maxNearP = pTrack2->
p();
174 reco::TrackCollection::const_iterator trkItr,
176 const DetId ClosestCell,
185 std::vector<DetId> dets(1, ClosestCell);
195 for (
unsigned int i = 0;
i < vdets.size();
i++) {
200 double maxNearP = -1.0;
203 reco::TrackCollection::const_iterator trkItr2;
204 for (trkItr2 = trkCollection->begin(); trkItr2 != trkCollection->end(); ++trkItr2) {
207 bool trkQuality = pTrack2->
quality(trackQuality_);
208 if ((trkItr2 != trkItr) && trkQuality) {
216 std::cout <<
"Track2 (p,eta,phi) " << pTrack2->
p() <<
" " << pTrack2->
eta() <<
" " << pTrack2->
phi()
224 std::cout <<
"chargeIsolation:: HCAL cell " << (
HcalDetId)(anyCell) <<
" for pt " << pTrack2->
p()
228 if (maxNearP < pTrack2->
p())
229 maxNearP = pTrack2->
p();