#include <BPHRecoBuilder.h>
Classes | |
struct | BPHCompSource |
class | BPHGenericCollection |
struct | BPHRecoSource |
class | BPHSpecificCollection |
struct | ComponentSet |
Public Member Functions | |
bool | accept (const BPHRecoCandidate &cand) const |
void | add (const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0) |
template<class T > | |
void | add (const std::string &name, const edm::Handle< T > &collection, double mass=-1.0, double msig=-1.0) |
void | add (const std::string &name, const std::vector< BPHRecoConstCandPtr > &collection) |
template<class T > | |
void | add (const std::string &name, const std::vector< T > &collection) |
BPHRecoBuilder (const edm::EventSetup &es) | |
std::vector< ComponentSet > | build () const |
build a set of combinations of particles fulfilling the selections More... | |
const edm::EventSetup * | eventSetup () const |
get the EventSetup set in the constructor More... | |
void | filter (const std::string &name, const BPHRecoSelect &sel) const |
void | filter (const std::string &name, const BPHMomentumSelect &sel) const |
previously reconstructed particles, at simple momentum sum level More... | |
void | filter (const std::string &name, const BPHVertexSelect &sel) const |
previously reconstructed particles, at vertex reconstruction level More... | |
void | filter (const std::string &name, const BPHFitSelect &sel) const |
previously reconstructed particles, at kinematical fit level More... | |
void | filter (const BPHMomentumSelect &sel) |
void | filter (const BPHVertexSelect &sel) |
vertex reconstruction More... | |
void | filter (const BPHFitSelect &sel) |
kinematical fit More... | |
void | setMinPDiffererence (double pMin) |
virtual | ~BPHRecoBuilder () |
Static Public Member Functions | |
template<class T > | |
static BPHGenericCollection * | createCollection (const edm::Handle< T > &collection, const std::string &list="cfhpmig") |
static BPHGenericCollection * | createCollection (const std::vector< const reco::Candidate * > &candList, const std::string &list="cfhpmig") |
static bool | sameTrack (const reco::Candidate *lCand, const reco::Candidate *rCand, double minPDifference) |
Private Member Functions | |
BPHRecoBuilder (const BPHRecoBuilder &x) | |
void | build (std::vector< ComponentSet > &compList, ComponentSet &compSet, std::vector< BPHRecoSource * >::const_iterator r_iter, std::vector< BPHRecoSource * >::const_iterator r_iend, std::vector< BPHCompSource * >::const_iterator c_iter, std::vector< BPHCompSource * >::const_iterator c_iend) const |
bool | contained (ComponentSet &compSet, const reco::Candidate *cand) const |
bool | contained (ComponentSet &compSet, BPHRecoConstCandPtr cand) const |
BPHRecoBuilder & | operator= (const BPHRecoBuilder &x) |
bool | sameTrack (const reco::Candidate *lCand, const reco::Candidate *rCand) const |
Private Attributes | |
std::set< const std::vector < BPHRecoConstCandPtr > * > | compCollectList |
std::map< std::string, BPHRecoConstCandPtr > | compMap |
std::map< std::string, const reco::Candidate * > | daugMap |
const edm::EventSetup * | evSetup |
std::vector< const BPHFitSelect * > | fsList |
double | minPDiff |
std::vector< const BPHMomentumSelect * > | msList |
std::map< std::string, int > | sourceId |
std::vector< BPHRecoSource * > | sourceList |
std::map< std::string, int > | srCompId |
std::vector< BPHCompSource * > | srCompList |
std::vector< const BPHVertexSelect * > | vsList |
Friends | |
class | BPHRecoSelect |
Description: Class to build all the combinations of decay products starting from reco::Candidate collections and applying selection cuts to decay products and reconstructed candidates
Definition at line 51 of file BPHRecoBuilder.h.
BPHRecoBuilder::BPHRecoBuilder | ( | const edm::EventSetup & | es | ) |
Constructor
Definition at line 41 of file BPHRecoBuilder.cc.
References msList, and vsList.
|
virtual |
Destructor
Definition at line 51 of file BPHRecoBuilder.cc.
References compCollectList, visualization-live-secondInstance_cfg::m, gen::n, sourceList, and srCompList.
|
private |
bool BPHRecoBuilder::accept | ( | const BPHRecoCandidate & | cand | ) | const |
Definition at line 146 of file BPHRecoBuilder.cc.
References fsList, i, msList, gen::n, and vsList.
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), build(), BPHRecoCandidate::fill(), and esMonitoring.FDJsonServer::handle_accept().
void BPHRecoBuilder::add | ( | const std::string & | name, |
const BPHGenericCollection * | collection, | ||
double | mass = -1.0 , |
||
double | msig = -1.0 |
||
) |
add collection of particles giving them a name collections can be added as
Referenced by add(), BPHBdToJPsiKxBuilder::build(), BPHBsToJPsiPhiBuilder::build(), BPHKx0ToKPiBuilder::build(), BPHPhiToKKBuilder::build(), BPHBuToJPsiKBuilder::build(), BPHOniaToMuMuBuilder::build(), and counter.Counter::register().
void BPHRecoBuilder::add | ( | const std::string & | name, |
const edm::Handle< T > & | collection, | ||
double | mass = -1.0 , |
||
double | msig = -1.0 |
||
) |
Definition at line 252 of file BPHRecoBuilder.h.
References add().
Referenced by counter.Counter::register().
void BPHRecoBuilder::add | ( | const std::string & | name, |
const std::vector< BPHRecoConstCandPtr > & | collection | ||
) |
Referenced by counter.Counter::register().
void BPHRecoBuilder::add | ( | const std::string & | name, |
const std::vector< T > & | collection | ||
) |
Definition at line 264 of file BPHRecoBuilder.h.
References add(), compCollectList, i, and gen::n.
Referenced by counter.Counter::register().
vector< BPHRecoBuilder::ComponentSet > BPHRecoBuilder::build | ( | ) | const |
build a set of combinations of particles fulfilling the selections
Definition at line 171 of file BPHRecoBuilder.cc.
References compMap, daugMap, sourceList, and srCompList.
Referenced by build(), and BPHRecoCandidate::fill().
|
private |
Definition at line 256 of file BPHRecoBuilder.cc.
References accept(), build(), BPHDecayMomentum::Component::cand, BPHRecoBuilder::BPHRecoSource::collection, BPHRecoBuilder::BPHCompSource::collection, AlCaHLTBitMon_QueryRunRegistry::comp, BPHRecoBuilder::ComponentSet::compMap, compMap, contained(), BPHRecoBuilder::ComponentSet::daugMap, daugMap, BPHRecoBuilder::BPHCompSource::fitSelector, BPHRecoBuilder::BPHGenericCollection::get(), i, j, visualization-live-secondInstance_cfg::m, BPHDecayMomentum::Component::mass, BPHRecoBuilder::BPHRecoSource::mass, BPHRecoBuilder::BPHCompSource::momSelector, BPHDecayMomentum::Component::msig, BPHRecoBuilder::BPHRecoSource::msig, gen::n, BPHRecoBuilder::BPHRecoSource::name, BPHRecoBuilder::BPHCompSource::name, BPHRecoBuilder::BPHGenericCollection::searchList(), BPHDecayMomentum::Component::searchList, BPHRecoBuilder::BPHRecoSource::selector, BPHRecoBuilder::BPHGenericCollection::size(), createPayload::skip, source, and BPHRecoBuilder::BPHCompSource::vtxSelector.
|
private |
Definition at line 337 of file BPHRecoBuilder.cc.
References BPHRecoBuilder::ComponentSet::daugMap, and sameTrack().
Referenced by build().
|
private |
Definition at line 352 of file BPHRecoBuilder.cc.
References compMap, BPHRecoBuilder::ComponentSet::daugMap, mps_splice::entry, j, relval_2017::k, cmsLHEtoEOSManager::l, visualization-live-secondInstance_cfg::m, and sameTrack().
|
static |
Definition at line 244 of file BPHRecoBuilder.h.
References universalConfigTemplate::collection, and list().
Referenced by BPHWriteSpecificDecay::fill().
|
static |
const edm::EventSetup * BPHRecoBuilder::eventSetup | ( | ) | const |
get the EventSetup set in the constructor
Definition at line 183 of file BPHRecoBuilder.cc.
References evSetup.
Referenced by BPHRecoCandidate::fill().
void BPHRecoBuilder::filter | ( | const std::string & | name, |
const BPHRecoSelect & | sel | ||
) | const |
define selections to particles to be used in the reconstruction: simple particles
Referenced by BPHBdToJPsiKxBuilder::build(), BPHBsToJPsiPhiBuilder::build(), BPHKx0ToKPiBuilder::build(), BPHPhiToKKBuilder::build(), BPHBuToJPsiKBuilder::build(), BPHOniaToMuMuBuilder::build(), and BPHPlusMinusCandidate::build().
void BPHRecoBuilder::filter | ( | const std::string & | name, |
const BPHMomentumSelect & | sel | ||
) | const |
previously reconstructed particles, at simple momentum sum level
void BPHRecoBuilder::filter | ( | const std::string & | name, |
const BPHVertexSelect & | sel | ||
) | const |
previously reconstructed particles, at vertex reconstruction level
void BPHRecoBuilder::filter | ( | const std::string & | name, |
const BPHFitSelect & | sel | ||
) | const |
previously reconstructed particles, at kinematical fit level
void BPHRecoBuilder::filter | ( | const BPHMomentumSelect & | sel | ) |
define selections to recontructed particles, at different levels: simple momentum sum
Definition at line 128 of file BPHRecoBuilder.cc.
References msList.
void BPHRecoBuilder::filter | ( | const BPHVertexSelect & | sel | ) |
void BPHRecoBuilder::filter | ( | const BPHFitSelect & | sel | ) |
|
private |
|
static |
Definition at line 188 of file BPHRecoBuilder.cc.
References reco::Candidate::charge(), BPHTrackReference::getFromPF(), BPHTrackReference::getFromRC(), and reco::Candidate::momentum().
Referenced by contained(), BPHWriteSpecificDecay::fill(), and sameTrack().
|
private |
Definition at line 393 of file BPHRecoBuilder.cc.
References minPDiff, and sameTrack().
void BPHRecoBuilder::setMinPDiffererence | ( | double | pMin | ) |
define a min. squared momentum difference between two particles (relative difference to squared momentum sum is used)
Definition at line 165 of file BPHRecoBuilder.cc.
References minPDiff, and HLT_25ns10e33_v2_cff::pMin.
Referenced by BPHBdToJPsiKxBuilder::build(), BPHBsToJPsiPhiBuilder::build(), and BPHBuToJPsiKBuilder::build().
|
friend |
Definition at line 53 of file BPHRecoBuilder.h.
|
private |
Definition at line 208 of file BPHRecoBuilder.h.
Referenced by add(), and ~BPHRecoBuilder().
|
mutableprivate |
Definition at line 197 of file BPHRecoBuilder.h.
Referenced by build(), and contained().
|
mutableprivate |
Definition at line 196 of file BPHRecoBuilder.h.
Referenced by build(), and BPHRecoSelect::get().
|
private |
Definition at line 199 of file BPHRecoBuilder.h.
Referenced by eventSetup().
|
private |
Definition at line 213 of file BPHRecoBuilder.h.
|
private |
Definition at line 200 of file BPHRecoBuilder.h.
Referenced by sameTrack(), and setMinPDiffererence().
|
private |
Definition at line 211 of file BPHRecoBuilder.h.
Referenced by accept(), BPHRecoBuilder(), and filter().
|
private |
Definition at line 216 of file BPHRecoBuilder.h.
|
private |
Definition at line 203 of file BPHRecoBuilder.h.
Referenced by build(), and ~BPHRecoBuilder().
|
private |
Definition at line 217 of file BPHRecoBuilder.h.
|
private |
Definition at line 204 of file BPHRecoBuilder.h.
Referenced by build(), and ~BPHRecoBuilder().
|
private |
Definition at line 212 of file BPHRecoBuilder.h.
Referenced by accept(), BPHRecoBuilder(), and filter().