1 #ifndef CandUtils_NamedCandCombiner_h 2 #define CandUtils_NamedCandCombiner_h 19 template<
typename Ptr,
typename CMP>
21 cmp.addDaughter(*c, name);
26 template<
typename CMP>
28 if(c->numberOfDaughters()==0)
31 cmp.addDaughter(*c, name);
46 select_(), selectPair_(), setup_(), name_(name) { }
50 select_(), selectPair_(), setup_(), name_(name) { }
54 select_(), selectPair_(), setup_(), name_(name) { }
58 select_(), selectPair_(), setup_(), name_(name) { }
62 select_(select), selectPair_(), setup_(), name_(name) { }
66 select_(select), selectPair_(), setup_(), name_(name) { }
70 select_(select), selectPair_(), setup_(), name_(name) { }
74 select_(select), selectPair_(), setup_(), name_(name) { }
78 select_(select), selectPair_(selectPair), setup_(), name_(name) { }
82 select_(select), selectPair_(selectPair), setup_(), name_(name) { }
86 select_(select), selectPair_(selectPair), setup_(), name_(name) { }
90 select_(select), selectPair_(selectPair), setup_(), name_(name) { }
93 select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
97 select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
101 select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
105 select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
119 select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
130 return selectPair_(c1, c2);
138 Cloner::addDaughter(cmp, c, n);
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, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
static void addDaughter(CMP &cmp, const Ptr &c, std::string name)
static void addDaughter(CMP &cmp, const reco::CandidatePtr &c, std::string name)
def setup(process, global_tag, zero_tesla=False)
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, const PairSelector &selectPair, const Setup &setup)
NamedCandCombiner(std::string name, const std::vector< int > &dauCharge)
constructor from a selector, specifying to check for charge
PairSelector selectPair_
candidate pair selector
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
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
NamedCandCombiner(std::string name)
default constructor
virtual bool selectPair(const reco::Candidate &c1, const reco::Candidate &c2) const
select a candidate
NamedCandCombiner(std::string name, int q1, int q2, int q3, int q4)
constructor from a selector and four charges
Functor that operates on <T>
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, 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)
constructor from a selector and two charges
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, 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
virtual void setup(reco::NamedCompositeCandidate &c) const
set kinematics to reconstructed composite
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)
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, int q1, int q2)
constructor from a selector and two charges
Setup setup_
utility to setup composite candidate kinematics from daughters
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)
default constructor
Selector select_
candidate selector