26 std::vector<metsig::SigInputObj> vobj;
28 vobj.push_back(resolutions_->evalPFJet(&(*
jet)));
29 std::vector<reco::PFCandidatePtr> pfs =
jet->getPFConstituents();
30 for (std::vector<reco::PFCandidatePtr>::const_iterator it = pfs.begin(); it != pfs.end(); ++it) {
32 clusteredParticlePtrs_.insert(ptr);
35 algo_.addObjects(vobj);
40 std::set<reco::CandidatePtr>::const_iterator it = clusteredParticlePtrs_.begin();
42 if (ptr.
id() == productID)
45 std::set<reco::CandidatePtr>
temp;
46 for (; it != clusteredParticlePtrs_.end(); ++it) {
48 while (ptr.
id() != productID) {
49 ptr = ptr->sourceCandidatePtr(0);
55 clusteredParticlePtrs_.clear();
56 clusteredParticlePtrs_ =
temp;
61 if (clusteredParticlePtrs_.find(
pf) != clusteredParticlePtrs_.end()) {
64 std::vector<metsig::SigInputObj> vobj;
65 vobj.push_back(resolutions_->evalPF(&(*
pf)));
66 algo_.addObjects(vobj);
75 const reco::PFCandidate* pfCandidate = dynamic_cast<const reco::PFCandidate*>(&(*iParticle));
81 if (!dau.isAvailable())
86 return getSignifMatrix();