#include <BPHRecoBuilder.h>
Classes | |
struct | BPHCompSource |
class | BPHGenericCollection |
common object to interface with edm collections More... | |
class | BPHInterfaceCollection |
struct | BPHRecoSource |
class | BPHSpecificCollection |
class | BPHSpecificCollection< BPHRecoBuilder::rcpV > |
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 BPHEventSetupWrapper &es) | |
BPHRecoBuilder (const BPHRecoBuilder &x)=delete | |
std::vector< ComponentSet > | build () const |
build a set of combinations of particles fulfilling the selections More... | |
const BPHEventSetupWrapper * | 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... | |
BPHRecoConstCandPtr | getComp (const std::string &name) const |
const reco::Candidate * | getDaug (const std::string &name) const |
get simple or previously recontructed particle in current combination More... | |
BPHRecoBuilder & | operator= (const BPHRecoBuilder &x)=delete |
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 Types | |
typedef std::vector< const reco::Candidate * > | rcpV |
Private Member Functions | |
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 |
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 BPHEventSetupWrapper * | 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 |
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 47 of file BPHRecoBuilder.h.
|
private |
Definition at line 143 of file BPHRecoBuilder.h.
BPHRecoBuilder::BPHRecoBuilder | ( | const BPHEventSetupWrapper & | es | ) |
Constructor
Definition at line 38 of file BPHRecoBuilder.cc.
References msList, and vsList.
|
delete |
|
virtual |
Destructor
Definition at line 46 of file BPHRecoBuilder.cc.
References compCollectList, evSetup, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, sourceList, and srCompList.
bool BPHRecoBuilder::accept | ( | const BPHRecoCandidate & | cand | ) | const |
Definition at line 153 of file BPHRecoBuilder.cc.
References fsList, mps_fire::i, msList, dqmiodumpmetadata::n, and vsList.
Referenced by 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(), BPHDecayToFlyingCascadeBuilder< BPHRecoCandidate, BPHPlusMinusCandidate >::addFlyCollection(), BPHDecayToResResBuilder< BPHRecoCandidate, BPHPlusMinusCandidate, BPHPlusMinusCandidate >::addRes2Collection(), BPHDecayConstrainedBuilder< BPHRecoCandidate, BPHRecoCandidate >::addResCollection(), BPHDecayToResTrkBuilderBase::fill(), BPHOniaToMuMuBuilder::fillRecList(), 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 232 of file BPHRecoBuilder.h.
References add(), universalConfigTemplate::collection, EgHLTOffHistBins_cfi::mass, and Skims_PA_cff::name.
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 239 of file BPHRecoBuilder.h.
References add(), universalConfigTemplate::collection, compCollectList, mps_fire::i, dqmiodumpmetadata::n, and Skims_PA_cff::name.
Referenced by counter.Counter::register().
vector< BPHRecoBuilder::ComponentSet > BPHRecoBuilder::build | ( | ) | const |
build a set of combinations of particles fulfilling the selections
Definition at line 179 of file BPHRecoBuilder.cc.
References compMap, daugMap, sourceList, and srCompList.
Referenced by build(), and BPHRecoCandidate::fill().
|
private |
Definition at line 218 of file BPHRecoBuilder.cc.
References accept(), build(), universalConfigTemplate::collection, AlCaHLTBitMon_QueryRunRegistry::comp, BPHRecoBuilder::ComponentSet::compMap, compMap, contained(), BPHRecoBuilder::ComponentSet::daugMap, daugMap, mps_fire::i, dqmiolumiharvest::j, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, collectionMerger::selector, optionsL1T::skip, and source.
|
private |
Definition at line 313 of file BPHRecoBuilder.cc.
References BPHRecoBuilder::ComponentSet::daugMap, and sameTrack().
Referenced by build().
|
private |
Definition at line 327 of file BPHRecoBuilder.cc.
References compMap, BPHRecoBuilder::ComponentSet::daugMap, mps_splice::entry, dqmiolumiharvest::j, dqmdumpme::k, MainPageGenerator::l, visualization-live-secondInstance_cfg::m, and sameTrack().
|
static |
Definition at line 226 of file BPHRecoBuilder.h.
References universalConfigTemplate::collection.
Referenced by BPHWriteSpecificDecay::fill(), and BPHDecayToResTrkBuilderBase::fill().
|
static |
const BPHEventSetupWrapper * BPHRecoBuilder::eventSetup | ( | ) | const |
get the EventSetup set in the constructor
Definition at line 188 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 BPHDecayToResFlyingBuilderBase::fill(), BPHDecayToResResBuilderBase::fill(), BPHDecayToResTrkBuilderBase::fill(), and BPHOniaToMuMuBuilder::fillRecList().
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 138 of file BPHRecoBuilder.cc.
References msList, and EgammaValidation_Wenu_cff::sel.
void BPHRecoBuilder::filter | ( | const BPHVertexSelect & | sel | ) |
vertex reconstruction
Definition at line 143 of file BPHRecoBuilder.cc.
References EgammaValidation_Wenu_cff::sel, and vsList.
void BPHRecoBuilder::filter | ( | const BPHFitSelect & | sel | ) |
kinematical fit
Definition at line 148 of file BPHRecoBuilder.cc.
References fsList, and EgammaValidation_Wenu_cff::sel.
BPHRecoConstCandPtr BPHRecoBuilder::getComp | ( | const std::string & | name | ) | const |
Definition at line 195 of file BPHRecoBuilder.cc.
References compMap, and Skims_PA_cff::name.
Referenced by BPHDecayToResResBuilderBase::DZSelect::accept().
const reco::Candidate * BPHRecoBuilder::getDaug | ( | const std::string & | name | ) | const |
get simple or previously recontructed particle in current combination
Definition at line 190 of file BPHRecoBuilder.cc.
References daugMap, and Skims_PA_cff::name.
|
delete |
|
static |
compare two particles with their track reference and return true or false for same or different particles, including a check with momentum difference
Definition at line 200 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 366 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 174 of file BPHRecoBuilder.cc.
References minPDiff, and ALCARECOTkAlMinBias_cff::pMin.
Referenced by BPHDecayToResFlyingBuilderBase::fill(), BPHDecayToResResBuilderBase::fill(), and BPHDecayToResTrkBuilderBase::fill().
|
private |
Definition at line 195 of file BPHRecoBuilder.h.
Referenced by add(), and ~BPHRecoBuilder().
|
mutableprivate |
Definition at line 184 of file BPHRecoBuilder.h.
Referenced by build(), contained(), and getComp().
|
mutableprivate |
Definition at line 183 of file BPHRecoBuilder.h.
|
private |
Definition at line 186 of file BPHRecoBuilder.h.
Referenced by eventSetup(), and ~BPHRecoBuilder().
|
private |
Definition at line 200 of file BPHRecoBuilder.h.
|
private |
Definition at line 187 of file BPHRecoBuilder.h.
Referenced by sameTrack(), and setMinPDiffererence().
|
private |
Definition at line 198 of file BPHRecoBuilder.h.
Referenced by accept(), BPHRecoBuilder(), and filter().
|
private |
Definition at line 203 of file BPHRecoBuilder.h.
|
private |
Definition at line 190 of file BPHRecoBuilder.h.
Referenced by build(), and ~BPHRecoBuilder().
|
private |
Definition at line 204 of file BPHRecoBuilder.h.
|
private |
Definition at line 191 of file BPHRecoBuilder.h.
Referenced by build(), and ~BPHRecoBuilder().
|
private |
Definition at line 199 of file BPHRecoBuilder.h.
Referenced by accept(), BPHRecoBuilder(), and filter().