1 #ifndef CandUtils_CandCombiner_h
2 #define CandUtils_CandCombiner_h
21 template<
typename Ref>
30 if(c->numberOfDaughters()==0)
36 struct ShallowClonePtr {
39 if(c->numberOfDaughters()==0)
103 base(q1, q2, q3, q4),
118 base(q1, q2, q3, q4),
131 bool checkCharge,
const std::vector <int> & dauCharge) :
132 base(checkCharge, dauCharge),
152 Cloner::addDaughter(cmp, c,
name);
virtual void setup(typename OutputCollection::value_type &c) const
set kinematics to reconstructed composite
std::vector< ProtoJet > OutputCollection
edm::Ref< Container > Ref
Setup & setup()
return reference to setup object to allow its initialization
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
std::vector< CompositeCandidate > CompositeCandidateCollection
collection of Candidate objects
CandCombinerBase< OutputCollection, CandPtr > base
static void addDaughter(reco::CompositeCandidate &cmp, const reco::CandidateBaseRef &c, const std::string name="")
CandCombiner(int q1, int q2, int q3)
constructor from a selector and three charges
CandCombiner()
default constructor
CandCombiner(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)
constructor from a selector and three charges
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
constructor from a selector and three charges
virtual bool selectPair(const reco::Candidate &c1, const reco::Candidate &c2) const
select a candidate
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)
default constructor
Setup setup_
utility to setup composite candidate kinematics from daughters
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, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
virtual void addDaughter(typename OutputCollection::value_type &cmp, const CandPtr &c, const std::string name="") const
add candidate daughter
virtual bool select(const reco::Candidate &c) const
select a candidate
PairSelector selectPair_
candidate pair selector
CandCombiner(const Selector &select, int q1, int q2, int q3)
constructor from a selector and three charges
CandCombiner(const Selector &select, int q1, int q2)
constructor from a selector and two charges
reco::CandidateBaseRef CandPtr
Container::value_type value_type
Functor that operates on <T>
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter
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
reco::CandidateBaseRef CandPtr
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, bool checkCharge, const std::vector< int > &dauCharge)
constructor from a selector, specifying optionally to check for charge
reco::CandidatePtr CandPtr
CandCombiner(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(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, int q1, int q2)
constructor from a selector and two charges
static void addDaughter(reco::CompositeCandidate &cmp, const Ref &c, const std::string name="")
static void addDaughter(reco::CompositeCandidate &cmp, const reco::CandidatePtr &c, const std::string name="")
Selector select_
candidate selector