Go to the documentation of this file. 1 #ifndef CandUtils_CandCombiner_h
2 #define CandUtils_CandCombiner_h
21 template <
typename Ref>
99 const std::vector<int>& dauCharge)
112 const std::vector<int>& dauCharge)
CandCombiner(const Selector &select, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
CandCombiner(const Selector &select, int q1, int q2, int q3)
constructor from a selector and three charges
Functor that operates on <T>
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup)
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
bool select(const reco::Candidate &c) const override
select a candidate
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
CandCombiner(const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, bool checkCharge, bool checkOverlap, const std::vector< int > &dauCharge)
constructor from a selector, specifying optionally to check for charge
reco::CandidatePtr CandPtr
Setup & setup()
return reference to setup object to allow its initialization
static void addDaughter(reco::CompositeCandidate &cmp, const reco::CandidateBaseRef &c, const std::string name="")
CandCombiner(const Selector &select, const PairSelector &selectPair, int q1, int q2)
constructor from a selector and two charges
CandCombiner(const Selector &select, const PairSelector &selectPair)
constructor from selector
CandCombiner(const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
CandCombiner(int q1, int q2)
constructor from a selector and two charges
std::vector< CompositeCandidate > CompositeCandidateCollection
collection of Candidate objects
CandCombiner(const Selector &select, int q1, int q2)
constructor from a selector and two charges
CandCombiner()
default constructor
bool selectPair(const reco::Candidate &c1, const reco::Candidate &c2) const override
select a candidate
CandCombiner(const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
constructor from a selector and three charges
Selector select_
candidate selector
CandCombiner(int q1, int q2, int q3)
constructor from a selector and three charges
reco::CandidateBaseRef CandPtr
def checkOverlap(process)
CandCombinerBase< OutputCollection, CandPtr > base
PairSelector selectPair_
candidate pair selector
Container::value_type value_type
CandCombiner(int q1, int q2, int q3, int q4)
constructor from a selector and four charges
void setup(typename OutputCollection::value_type &c) const override
set kinematics to reconstructed composite
edm::Ref< Container > Ref
void addDaughter(typename OutputCollection::value_type &cmp, const CandPtr &c, const std::string name="") const override
add candidate daughter
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
constructor from a selector and three charges
Setup setup_
utility to setup composite candidate kinematics from daughters
reco::CandidateBaseRef CandPtr
CandCombiner(const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
constructor from a selector and two charges
CandCombiner(const Selector &select)
default constructor
static void addDaughter(reco::CompositeCandidate &cmp, const reco::CandidatePtr &c, const std::string name="")
static void addDaughter(reco::CompositeCandidate &cmp, const Ref &c, const std::string name="")