Go to the documentation of this file. 1 #ifndef CandUtils_NamedCandCombiner_h
2 #define CandUtils_NamedCandCombiner_h
19 template<
typename Ptr,
typename CMP>
26 template<
typename CMP>
28 if(
c->numberOfDaughters()==0)
138 Cloner::addDaughter(
cmp,
c,
n);
static void addDaughter(CMP &cmp, const Ptr &c, std::string name)
NamedCandCombiner(std::string name, const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
PairSelector selectPair_
candidate pair selector
Functor that operates on <T>
NamedCandCombiner(std::string name, int q1, int q2, int q3)
constructor from a selector and three charges
virtual bool select(const reco::Candidate &c) const
select a candidate
virtual void addDaughter(reco::NamedCompositeCandidate &cmp, const reco::CandidatePtr &c, std::string n) const
add candidate daughter
Setup & setup()
return reference to setup object to allow its initialization
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair)
constructor from selector
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup)
NamedCandCombiner(std::string name, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
Setup setup_
utility to setup composite candidate kinematics from daughters
NamedCandCombiner(std::string name)
default constructor
Selector select_
candidate selector
NamedCandCombiner(std::string name, int q1, int q2)
constructor from a selector and two charges
NamedCandCombiner(std::string name, 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
NamedCandCombiner(std::string name, const Selector &select, int q1, int q2)
constructor from a selector and two charges
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
constructor from a selector and three charges
NamedCandCombiner(std::string name, 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
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
def checkOverlap(process)
static void addDaughter(CMP &cmp, const reco::CandidatePtr &c, std::string name)
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
constructor from a selector and two charges
virtual void setup(reco::NamedCompositeCandidate &c) const
set kinematics to reconstructed composite
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2)
constructor from a selector and two charges
NamedCandCombiner(std::string name, const Selector &select)
default constructor
NamedCandCombiner(std::string name, const Selector &select, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
NamedCandCombiner(std::string name, const Selector &select, int q1, int q2, int q3)
constructor from a selector and three charges
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
NamedCandCombiner(std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3, int q4)
constructor from a selector and four charges