#include <CandCombinerBase.h>
Public Types | |
typedef std::vector< std::string > | vstring |
typedef std::vector< std::string > | vstring |
Public Member Functions | |
CandCombinerBase (const std::string="") | |
default construct More... | |
CandCombinerBase (const std::string="") | |
default construct More... | |
CandCombinerBase (int, int, const std::string="") | |
construct from two charge values 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, const std::string="") | |
construct from three charge values More... | |
CandCombinerBase (int, int, int, int, const std::string="") | |
construct from four charge values More... | |
CandCombinerBase (int, int, int, int, const std::string="") | |
construct from four charge values More... | |
CandCombinerBase (bool checkCharge, const std::vector< int > &, const std::string="") | |
constructor from a selector, specifying optionally to check for charge 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::auto_ptr< OutputCollection > | combine (const std::vector< edm::Handle< reco::CandidateView > > &, const vstring=vstring()) const |
return all selected candidate pairs More... | |
std::auto_ptr< OutputCollection > | combine (const std::vector< edm::Handle< reco::CandidateView > > &, const vstring=vstring()) const |
return all selected candidate pairs More... | |
std::auto_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const vstring=vstring()) const |
return all selected candidate pairs More... | |
std::auto_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const vstring=vstring()) const |
return all selected candidate pairs More... | |
std::auto_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const vstring=vstring()) const |
return all selected candidate pairs More... | |
std::auto_ptr< OutputCollection > | combine (const edm::Handle< reco::CandidateView > &, const edm::Handle< reco::CandidateView > &, const vstring=vstring()) const |
return all selected candidate pairs More... | |
std::auto_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::auto_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::auto_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... | |
std::auto_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... | |
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< 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 |
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... | |
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 (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, std::auto_ptr< OutputCollection > &comps, const vstring name=vstring()) 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, std::auto_ptr< 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... | |
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 | 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 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... | |
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 |
temporary candidate stack
Definition at line 60 of file CandCombinerBase.h.
|
private |
Definition at line 61 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.
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 |
|
explicit |
default construct
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | int | , |
int | , | ||
const std::string | = "" |
||
) |
construct from two charge values
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | int | , |
int | , | ||
int | , | ||
const std::string | = "" |
||
) |
construct from three charge values
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
const std::string | = "" |
||
) |
construct from four charge values
CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase | ( | bool | checkCharge, |
const std::vector< int > & | dauCharge, | ||
const std::string | name = "" |
||
) |
constructor from a selector, specifying optionally to check for charge
Definition at line 116 of file CandCombinerBase.h.
|
virtual |
destructor
|
privatepure virtual |
add candidate daughter
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
|
privatepure virtual |
add candidate daughter
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
std::auto_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 trackerHits::c, alignmentValidation::c1, funct::combine(), edm::errors::Configuration, edm::hlt::Exception, edm::ProductID::id(), edm::HandleBase::id(), n, cscdqm::h::names, cscdqm::h::namesSize, benchmark_cfg::select, edm::View< T >::size(), alcazmumu_cfi::src, readCalibrations2004_v2_cff::src1, readConfiguration2006_v0_cff::src2, and svgfig::stack.
std::auto_ptr<OutputCollection> CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const std::vector< edm::Handle< reco::CandidateView > > & | , |
const vstring | = vstring() |
||
) | const |
return all selected candidate pairs
std::auto_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 trackerHits::c, alignmentValidation::c1, funct::combine(), edm::errors::Configuration, edm::hlt::Exception, n, cscdqm::h::namesSize, benchmark_cfg::select, edm::View< T >::size(), and alcazmumu_cfi::src.
std::auto_ptr<OutputCollection> CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const edm::Handle< reco::CandidateView > & | , |
const vstring | = vstring() |
||
) | const |
return all selected candidate pairs
std::auto_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 funct::combine(), and alcazmumu_cfi::src.
std::auto_ptr<OutputCollection> CandCombinerBase< OutputCollection, CandPtr >::combine | ( | const edm::Handle< reco::CandidateView > & | , |
const edm::Handle< reco::CandidateView > & | , | ||
const vstring | = vstring() |
||
) | const |
return all selected candidate pairs
std::auto_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 funct::combine(), and alcazmumu_cfi::src.
std::auto_ptr<OutputCollection> CandCombinerBase< OutputCollection, CandPtr >::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
std::auto_ptr<OutputCollection> CandCombinerBase< OutputCollection, CandPtr >::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
std::auto_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 funct::combine(), and alcazmumu_cfi::src.
|
private |
returns a composite candidate combined from two daughters
|
private |
returns a composite candidate combined from two daughters
Definition at line 138 of file CandCombinerBase.h.
References HcalObjRepresent::setup().
|
private |
returns a composite candidate combined from two daughters
Definition at line 292 of file CandCombinerBase.h.
References trackerHits::c, reco::Candidate::charge(), funct::combine(), i, edm::HandleBase::id(), lumiQueryAPI::q, benchmark_cfg::select, HcalObjRepresent::setup(), edm::View< T >::size(), and alcazmumu_cfi::src.
|
private |
returns a composite candidate combined from two daughters
|
private |
verify that the two candidate don't overlap and check charge
Definition at line 127 of file CandCombinerBase.h.
References reco::Candidate::charge(), q1, and q2.
|
private |
verify that the two candidate don't overlap and check charge
|
privatepure virtual |
select a candidate
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
Referenced by 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
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
|
privatepure virtual |
select a candidate pair
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
|
privatepure virtual |
select a candidate pair
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
|
privatepure virtual |
set kinematics to reconstructed composite
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
|
privatepure virtual |
set kinematics to reconstructed composite
Implemented in CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >, and CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.
|
private |
flag to specify the checking of electric charge
Definition at line 77 of file CandCombinerBase.h.
|
private |
flag to specify the checking of overlaps
Definition at line 79 of file CandCombinerBase.h.
|
private |
electric charges of the daughters
Definition at line 81 of file CandCombinerBase.h.
Referenced by CandCombinerBase< OutputCollection, CandPtr >::CandCombinerBase().
|
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.