#include <CandCombinerBase.h>
Public Types | |
typedef std::vector< std::string > | vstring |
Public Member Functions | |
CandCombinerBase (const std::string="") | |
default construct More... | |
CandCombinerBase (int, int, const std::string="") | |
construct from two charge values More... | |
CandCombinerBase (int, int, int, const std::string="") | |
construct from three charge values More... | |
CandCombinerBase (int, int, int, int, const std::string="") | |
construct from four charge values More... | |
CandCombinerBase (bool checkCharge, bool checkOverlap, const std::vector< int > &, const std::string="") | |
constructor from a selector, specifying optionally to check for charge More... | |
std::unique_ptr< OutputCollection > | combine (const std::vector< edm::Handle< reco::CandidateView > > &, const vstring &=vstring()) const |
return all selected candidate pairs More... | |
std::unique_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const vstring &=vstring()) const |
return all selected candidate pairs More... | |
std::unique_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const vstring &=vstring()) const |
return all selected candidate pairs More... | |
std::unique_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const vstring &=vstring()) const |
return all selected candidate pairs More... | |
std::unique_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const vstring &=vstring()) const |
return all selected candidate pairs More... | |
virtual | ~CandCombinerBase () |
destructor More... | |
Private Types | |
typedef std::vector< std::pair< std::pair< CandPtr, size_t >, std::vector< edm::Handle< reco::CandidateView > >::const_iterator > > | CandStack |
temporary candidate stack More... | |
typedef std::vector< int > | ChargeStack |
Private Member Functions | |
virtual void | addDaughter (typename OutputCollection::value_type &cmp, const CandPtr &c, const std::string="") const =0 |
add candidate daughter More... | |
void | combine (typename OutputCollection::value_type &, const CandPtr &, const CandPtr &, const std::string="", const std::string="") const |
returns a composite candidate combined from two daughters More... | |
void | combine (size_t collectionIndex, CandStack &, ChargeStack &, std::vector< edm::Handle< reco::CandidateView > >::const_iterator begin, std::vector< edm::Handle< reco::CandidateView > >::const_iterator end, OutputCollection *comps, const vstring &name=vstring()) 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 (typename OutputCollection::value_type &) 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_ |
composite name (if applies) More... | |
OverlapChecker | overlap_ |
utility to check candidate daughters overlap More... | |
Definition at line 14 of file CandCombinerBase.h.
|
private |
temporary candidate stack
Definition at line 60 of file CandCombinerBase.h.
|
private |
Definition at line 61 of file CandCombinerBase.h.
typedef std::vector<std::string> CandCombinerBase< OutputCollection, CandPtr >::vstring |
Definition at line 16 of file CandCombinerBase.h.
|
explicit |
default construct
Definition at line 89 of file CandCombinerBase.h.
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | int | q1, |
int | q2, | ||
const std::string | name = "" |
||
) |
construct from two charge values
Definition at line 94 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, q1, and q2.
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | int | q1, |
int | q2, | ||
int | q3, | ||
const std::string | name = "" |
||
) |
construct from three charge values
Definition at line 101 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, q1, and q2.
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | int | q1, |
int | q2, | ||
int | q3, | ||
int | q4, | ||
const std::string | name = "" |
||
) |
construct from four charge values
Definition at line 109 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, q1, and q2.
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | bool | checkCharge, |
bool | checkOverlap, | ||
const std::vector< int > & | dauCharge, | ||
const std::string | name = "" |
||
) |
constructor from a selector, specifying optionally to check for charge
Definition at line 118 of file CandCombinerBase.h.
|
virtual |
|
privatepure virtual |
add candidate daughter
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine().
std::unique_ptr< OutputCollection > CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const std::vector< edm::Handle< reco::CandidateView > > & | src, |
const vstring & | names = vstring() |
||
) | const |
return all selected candidate pairs
Definition at line 148 of file CandCombinerBase.h.
References EnergyCorrector::c, alignmentValidation::c1, egammaForCoreTracking_cff::cands, CandCombinerBase< OutputCollection, CandPtr >::checkCharge_, edm::errors::Configuration, CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, Exception, edm::ProductID::id(), edm::HandleBase::id(), gen::n, names, cscdqm::h::namesSize, CandCombinerBase< OutputCollection, CandPtr >::preselect(), CandCombinerBase< OutputCollection, CandPtr >::select(), edm::View< T >::size(), TrackRefitter_38T_cff::src, svgfig::stack, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine().
std::unique_ptr< OutputCollection > CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const edm::Handle< reco::CandidateView > & | src, |
const vstring & | names = vstring() |
||
) | const |
return all selected candidate pairs
Definition at line 214 of file CandCombinerBase.h.
References EnergyCorrector::c, alignmentValidation::c1, egammaForCoreTracking_cff::cands, CandCombinerBase< OutputCollection, CandPtr >::checkCharge_, CandCombinerBase< OutputCollection, CandPtr >::combine(), edm::errors::Configuration, CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, Exception, gen::n, cscdqm::h::namesSize, CandCombinerBase< OutputCollection, CandPtr >::preselect(), CandCombinerBase< OutputCollection, CandPtr >::select(), edm::View< T >::size(), TrackRefitter_38T_cff::src, and AlCaHLTBitMon_QueryRunRegistry::string.
std::unique_ptr< OutputCollection > CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const edm::Handle< reco::CandidateView > & | src1, |
const edm::Handle< reco::CandidateView > & | src2, | ||
const vstring & | names = vstring() |
||
) | const |
return all selected candidate pairs
Definition at line 254 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::combine(), and TrackRefitter_38T_cff::src.
std::unique_ptr< OutputCollection > CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const edm::Handle< reco::CandidateView > & | src1, |
const edm::Handle< reco::CandidateView > & | src2, | ||
const edm::Handle< reco::CandidateView > & | src3, | ||
const vstring & | names = vstring() |
||
) | const |
return all selected candidate pairs
Definition at line 265 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::combine(), and TrackRefitter_38T_cff::src.
std::unique_ptr< OutputCollection > CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const edm::Handle< reco::CandidateView > & | src1, |
const edm::Handle< reco::CandidateView > & | src2, | ||
const edm::Handle< reco::CandidateView > & | src3, | ||
const edm::Handle< reco::CandidateView > & | src4, | ||
const vstring & | names = vstring() |
||
) | const |
return all selected candidate pairs
Definition at line 278 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::combine(), and TrackRefitter_38T_cff::src.
|
private |
returns a composite candidate combined from two daughters
Definition at line 138 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::addDaughter(), and CandCombinerBase< OutputCollection, CandPtr >::setup().
|
private |
returns a composite candidate combined from two daughters
Definition at line 292 of file CandCombinerBase.h.
References CandCombinerBase< OutputCollection, CandPtr >::addDaughter(), EnergyCorrector::c, reco::Candidate::charge(), CandCombinerBase< OutputCollection, CandPtr >::checkCharge_, CandCombinerBase< OutputCollection, CandPtr >::checkOverlap_, CandCombinerBase< OutputCollection, CandPtr >::combine(), CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, mps_fire::i, edm::HandleBase::id(), CandCombinerBase< OutputCollection, CandPtr >::overlap_, lumiQueryAPI::q, CandCombinerBase< OutputCollection, CandPtr >::select(), CandCombinerBase< OutputCollection, CandPtr >::setup(), edm::View< T >::size(), and TrackRefitter_38T_cff::src.
|
private |
verify that the two candidate don't overlap and check charge
Definition at line 127 of file CandCombinerBase.h.
References reco::Candidate::charge(), CandCombinerBase< OutputCollection, CandPtr >::checkCharge_, CandCombinerBase< OutputCollection, CandPtr >::checkOverlap_, CandCombinerBase< OutputCollection, CandPtr >::dauCharge_, CandCombinerBase< OutputCollection, CandPtr >::overlap_, q1, q2, and CandCombinerBase< OutputCollection, CandPtr >::selectPair().
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine().
|
privatepure virtual |
select a candidate
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().
|
privatepure virtual |
select a candidate pair
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::preselect().
|
privatepure virtual |
set kinematics to reconstructed composite
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine(), and o2olib.O2OTool::execute().
|
private |
flag to specify the checking of electric charge
Definition at line 77 of file CandCombinerBase.h.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine(), and CandCombinerBase< OutputCollection, CandPtr >::preselect().
|
private |
flag to specify the checking of overlaps
Definition at line 79 of file CandCombinerBase.h.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine(), and CandCombinerBase< OutputCollection, CandPtr >::preselect().
|
private |
electric charges of the daughters
Definition at line 81 of file CandCombinerBase.h.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase(), CandCombinerBase< OutputCollection, CandPtr >::combine(), and CandCombinerBase< OutputCollection, CandPtr >::preselect().
|
private |
composite name (if applies)
Definition at line 85 of file CandCombinerBase.h.
|
private |
utility to check candidate daughters overlap
Definition at line 83 of file CandCombinerBase.h.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::combine(), and CandCombinerBase< OutputCollection, CandPtr >::preselect().