2 #include "Math/GenVector/VectorUtil.h"
42 vector<PFCandidateRefVector>
48 for(
unsigned int i=0;
i<candidates.
size();++
i)
55 std::vector<PFCandidateRefVector>
strips;
59 while(cands.
size()>0) {
68 stripVector=cands.
at(0)->p4();
71 for(
unsigned int i=1;
i<cands.
size();++
i) {
75 stripVector+=cands.
at(
i)->p4();
82 strips.push_back(strip);
85 cands.
swap(notAssociated);
87 notAssociated.
clear();
T getParameter(std::string const &) const
std::vector< reco::PFCandidateRefVector > mergeCandidates(const reco::PFCandidateRefVector &)
std::vector< int > inputPdgIds_
double etaAssociationDistance_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
void swap(RefVector< C, T, F > &other) noexcept
Swap two vectors.
~PFCandidateStripMerger()
bool candidateMatches(const reco::PFCandidateRef &)
void clear()
Clear the vector.
double phiAssociationDistance_
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.