1 #ifndef CandUtils_CandCombiner_h 2 #define CandUtils_CandCombiner_h 21 template <
typename Ref>
58 CandCombiner(
int q1,
int q2,
int q3) : base(q1, q2, q3), select_(), selectPair_(), setup_() {}
60 CandCombiner(
int q1,
int q2,
int q3,
int q4) : base(q1, q2, q3, q4), select_(), selectPair_(), setup_() {}
67 : base(q1, q2, q3), select_(select), selectPair_(), setup_() {}
70 : base(q1, q2, q3, q4), select_(select), selectPair_(), setup_() {}
73 : base(), select_(select), selectPair_(selectPair), setup_() {}
76 : base(q1, q2), select_(select), selectPair_(selectPair), setup_() {}
79 : base(q1, q2, q3), select_(select), selectPair_(selectPair), setup_() {}
82 : base(q1, q2, q3, q4), select_(select), selectPair_(selectPair), setup_() {}
84 : base(), select_(select), selectPair_(selectPair), setup_(setup) {}
87 : base(q1, q2), select_(select), selectPair_(selectPair), setup_(setup) {}
90 : base(q1, q2, q3), select_(select), selectPair_(selectPair), setup_(setup) {}
94 : base(q1, q2, q3, q4), select_(select), selectPair_(selectPair), setup_(setup) {}
97 const PairSelector& selectPair,
99 const std::vector<int>& dauCharge)
100 : base(
true, dauCharge), select_(select), selectPair_(selectPair), setup_(setup) {}
103 : base(
true, dauCharge), select_(select), selectPair_(selectPair), setup_() {}
105 CandCombiner(
const std::vector<int>& dauCharge) : base(
true, dauCharge), select_(), selectPair_(), setup_() {}
108 const PairSelector& selectPair,
112 const std::vector<int>& dauCharge)
113 : base(checkCharge, checkOverlap, dauCharge), select_(select), selectPair_(selectPair), setup_(setup) {}
128 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
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
select
when omitted electron plots will be filled w/o cut on electronId electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), cutValue = cms.double(0.5) ), when omitted electron plots will be filled w/o additional pre- selection of the electron candidates
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