#include <NamedCandCombinerBase.h>
Public Types | |
typedef std::vector< std::string > | string_coll |
Public Member Functions | |
std::unique_ptr< reco::NamedCompositeCandidateCollection > | combine (const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, string_coll const &) const |
return all selected candidate pairs More... | |
std::unique_ptr< reco::NamedCompositeCandidateCollection > | combine (const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, string_coll const &) const |
return all selected candidate pairs More... | |
std::unique_ptr< reco::NamedCompositeCandidateCollection > | combine (const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, string_coll const &) const |
return all selected candidate pairs More... | |
std::unique_ptr< reco::NamedCompositeCandidateCollection > | combine (const reco::CandidatePtrVector &, string_coll const &) const |
return all selected candidate pairs More... | |
std::unique_ptr< reco::NamedCompositeCandidateCollection > | combine (const std::vector< reco::CandidatePtrVector > &, string_coll const &) const |
return all selected candidate pairs More... | |
NamedCandCombinerBase (std::string name) | |
default construct More... | |
NamedCandCombinerBase (std::string name, bool checkCharge, bool checkOverlap, const std::vector< int > &) | |
constructor from a selector, specifying optionally to check for charge More... | |
NamedCandCombinerBase (std::string name, int, int) | |
construct from two charge values More... | |
NamedCandCombinerBase (std::string name, int, int, int) | |
construct from three charge values More... | |
NamedCandCombinerBase (std::string name, int, int, int, int) | |
construct from four charge values More... | |
virtual | ~NamedCandCombinerBase () |
destructor More... | |
Private Types | |
typedef std::vector< std::pair< std::pair< reco::CandidatePtr, size_t >, std::vector< reco::CandidatePtrVector >::const_iterator > > | CandStack |
temporary candidate stack More... | |
typedef std::vector< int > | ChargeStack |
Private Member Functions | |
virtual void | addDaughter (reco::NamedCompositeCandidate &cmp, const reco::CandidatePtr &c, std::string name) const =0 |
add candidate daughter More... | |
void | combine (reco::NamedCompositeCandidate &, const reco::CandidatePtr &, const reco::CandidatePtr &, std::string, std::string) const |
returns a composite candidate combined from two daughters More... | |
void | combine (size_t collectionIndex, CandStack &, ChargeStack &, string_coll const &names, std::vector< reco::CandidatePtrVector >::const_iterator begin, std::vector< reco::CandidatePtrVector >::const_iterator end, std::unique_ptr< reco::NamedCompositeCandidateCollection > &comps) const |
returns a composite candidate combined from two daughters More... | |
bool | preselect (const reco::Candidate &, const reco::Candidate &) const |
verify that the two candidate don't overlap and check charge More... | |
virtual bool | select (const reco::Candidate &) const =0 |
select a candidate More... | |
virtual bool | selectPair (const reco::Candidate &c1, const reco::Candidate &c2) const =0 |
select a candidate pair More... | |
virtual void | setup (reco::NamedCompositeCandidate &) const =0 |
set kinematics to reconstructed composite More... | |
Private Attributes | |
bool | checkCharge_ |
flag to specify the checking of electric charge More... | |
bool | checkOverlap_ |
flag to specify the checking of overlaps More... | |
std::vector< int > | dauCharge_ |
electric charges of the daughters More... | |
std::string | name_ |
Name. More... | |
OverlapChecker | overlap_ |
utility to check candidate daughters overlap More... | |
Definition at line 13 of file NamedCandCombinerBase.h.
|
private |
temporary candidate stack
Definition at line 62 of file NamedCandCombinerBase.h.
|
private |
Definition at line 63 of file NamedCandCombinerBase.h.
typedef std::vector<std::string> NamedCandCombinerBase::string_coll |
Definition at line 15 of file NamedCandCombinerBase.h.
NamedCandCombinerBase::NamedCandCombinerBase | ( | std::string | name | ) |
NamedCandCombinerBase::NamedCandCombinerBase | ( | std::string | name, |
int | q1, | ||
int | q2 | ||
) |
construct from two charge values
Definition at line 9 of file NamedCandCombinerBase.cc.
References dauCharge_, q1, and q2.
NamedCandCombinerBase::NamedCandCombinerBase | ( | std::string | name, |
int | q1, | ||
int | q2, | ||
int | q3 | ||
) |
construct from three charge values
Definition at line 15 of file NamedCandCombinerBase.cc.
References dauCharge_, q1, and q2.
NamedCandCombinerBase::NamedCandCombinerBase | ( | std::string | name, |
int | q1, | ||
int | q2, | ||
int | q3, | ||
int | q4 | ||
) |
construct from four charge values
Definition at line 22 of file NamedCandCombinerBase.cc.
References dauCharge_, q1, and q2.
NamedCandCombinerBase::NamedCandCombinerBase | ( | std::string | name, |
bool | checkCharge, | ||
bool | checkOverlap, | ||
const std::vector< int > & | dauCharge | ||
) |
constructor from a selector, specifying optionally to check for charge
Definition at line 30 of file NamedCandCombinerBase.cc.
|
virtual |
|
privatepure virtual |
add candidate daughter
Implemented in NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.
Referenced by combine().
unique_ptr< NamedCompositeCandidateCollection > NamedCandCombinerBase::combine | ( | const reco::CandidatePtrVector & | src1, |
const reco::CandidatePtrVector & | src2, | ||
const reco::CandidatePtrVector & | src3, | ||
const reco::CandidatePtrVector & | src4, | ||
string_coll const & | names | ||
) | const |
return all selected candidate pairs
Definition at line 162 of file NamedCandCombinerBase.cc.
References combine(), names, and TrackRefitter_38T_cff::src.
unique_ptr< NamedCompositeCandidateCollection > NamedCandCombinerBase::combine | ( | const reco::CandidatePtrVector & | src1, |
const reco::CandidatePtrVector & | src2, | ||
const reco::CandidatePtrVector & | src3, | ||
string_coll const & | names | ||
) | const |
return all selected candidate pairs
Definition at line 151 of file NamedCandCombinerBase.cc.
References combine(), names, and TrackRefitter_38T_cff::src.
unique_ptr< NamedCompositeCandidateCollection > NamedCandCombinerBase::combine | ( | const reco::CandidatePtrVector & | src1, |
const reco::CandidatePtrVector & | src2, | ||
string_coll const & | names | ||
) | const |
unique_ptr< NamedCompositeCandidateCollection > NamedCandCombinerBase::combine | ( | const reco::CandidatePtrVector & | src, |
string_coll const & | names | ||
) | const |
return all selected candidate pairs
Definition at line 113 of file NamedCandCombinerBase.cc.
References c, alignmentValidation::c1, checkCharge_, combine(), edm::errors::Configuration, dauCharge_, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, dqmiodumpmetadata::n, names, preselect(), select(), and TrackRefitter_38T_cff::src.
unique_ptr< NamedCompositeCandidateCollection > NamedCandCombinerBase::combine | ( | const std::vector< reco::CandidatePtrVector > & | src, |
string_coll const & | names | ||
) | const |
return all selected candidate pairs
Definition at line 60 of file NamedCandCombinerBase.cc.
References c, alignmentValidation::c1, checkCharge_, edm::errors::Configuration, dauCharge_, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, dqmiodumpmetadata::n, callgraph::n2, names, preselect(), select(), edm::PtrVectorBase::size(), TrackRefitter_38T_cff::src, and svgfig::stack.
Referenced by combine().
|
private |
returns a composite candidate combined from two daughters
Definition at line 50 of file NamedCandCombinerBase.cc.
References addDaughter(), alignmentValidation::c1, fileCollector::cmp, callgraph::n2, and setup().
|
private |
returns a composite candidate combined from two daughters
Definition at line 175 of file NamedCandCombinerBase.cc.
References addDaughter(), cms::cuda::assert(), c, checkCharge_, checkOverlap_, combine(), dauCharge_, mps_fire::i, cuy::ii, names, overlap_, submitPVResolutionJobs::q, select(), setup(), TrackRefitter_38T_cff::src, and svgfig::stack.
|
private |
verify that the two candidate don't overlap and check charge
Definition at line 38 of file NamedCandCombinerBase.cc.
References alignmentValidation::c1, reco::Candidate::charge(), checkCharge_, checkOverlap_, dauCharge_, pfCandidateManager_cfi::matchCharge, overlap_, q1, q2, and selectPair().
Referenced by combine().
|
privatepure virtual |
select a candidate
Implemented in NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.
Referenced by combine().
|
privatepure virtual |
select a candidate pair
Implemented in NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.
Referenced by preselect().
|
privatepure virtual |
set kinematics to reconstructed composite
Implemented in NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.
Referenced by combine(), and o2olib.O2OTool::execute().
|
private |
flag to specify the checking of electric charge
Definition at line 81 of file NamedCandCombinerBase.h.
Referenced by combine(), and preselect().
|
private |
flag to specify the checking of overlaps
Definition at line 83 of file NamedCandCombinerBase.h.
Referenced by combine(), and preselect().
|
private |
electric charges of the daughters
Definition at line 85 of file NamedCandCombinerBase.h.
Referenced by combine(), NamedCandCombinerBase(), and preselect().
|
private |
Name.
Definition at line 89 of file NamedCandCombinerBase.h.
|
private |
utility to check candidate daughters overlap
Definition at line 87 of file NamedCandCombinerBase.h.
Referenced by combine(), and preselect().