1 #ifndef CandUtils_CandCombiner_h 2 #define CandUtils_CandCombiner_h 21 template<
typename Ref>
54 select_(), selectPair_(), setup_() { }
58 select_(), selectPair_(), setup_() { }
62 select_(), selectPair_(), setup_() { }
66 select_(), selectPair_(), setup_() { }
70 select_(select), selectPair_(), setup_() { }
74 select_(select), selectPair_(), setup_() { }
78 select_(select), selectPair_(), setup_() { }
82 select_(select), selectPair_(), setup_() { }
86 select_(select), selectPair_(selectPair), setup_() { }
90 select_(select), selectPair_(selectPair), setup_() { }
94 select_(select), selectPair_(selectPair), setup_() { }
98 select_(select), selectPair_(selectPair), setup_() { }
101 select_(select), selectPair_(selectPair), setup_(setup) { }
105 select_(select), selectPair_(selectPair), setup_(setup) { }
109 select_(select), selectPair_(selectPair), setup_(setup) { }
112 base(q1, q2, q3, q4),
113 select_(select), selectPair_(selectPair), setup_(setup) { }
116 base(
true, dauCharge), select_(select), selectPair_(selectPair), setup_(setup) { }
119 base(
true, dauCharge), select_(select), selectPair_(selectPair), setup_() { }
122 base(
true, dauCharge), select_(), selectPair_(), setup_() { }
126 base(checkCharge, checkOverlap, dauCharge),
127 select_(select), selectPair_(selectPair), setup_(setup) { }
138 return selectPair_(c1, c2);
146 Cloner::addDaughter(cmp, c,
name);
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
def setup(process, global_tag, zero_tesla=False)
CandCombiner()
default constructor
CandCombiner(int q1, int q2, int q3, int q4)
constructor from a selector and four charges
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, int q1, int q2, int q3)
constructor from a selector and three charges
void setup(typename OutputCollection::value_type &c) const override
set kinematics to reconstructed composite
CandCombiner(const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
constructor from a selector and three charges
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
Container::value_type value_type
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
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
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
bool select(const reco::Candidate &c) const override
select a candidate
bool selectPair(const reco::Candidate &c1, const reco::Candidate &c2) const override
select a candidate
reco::CandidateBaseRef CandPtr
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
def checkOverlap(process)
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